[Bug]: scanning of the folder with media not possible #2675

Open
opened 2026-04-25 00:09:32 +02:00 by adam · 2 comments
Owner

Originally created by @Proxyyy87 on GitHub (Mar 19, 2025).

What happened?

`2025-03-19 21:10:47.023

DEBUG

[LibraryScan] "Hörbücher": Found metadata file "/usr/share/audiobookshelf/metadata/items/c0fdd990-ecc0-4a7b-91b0-8dadacf618e3/metadata.json"

2025-03-19 21:10:47.033

DEBUG

[FfmpegHelpers] Extract Cover Cmd: ffmpeg -i /mnt/audio/Ingo Bottt)/001 - Kapitel 1.mp3 -y -map 0:v:0 -frames:v 1 /mnt/audio/Ingo Bottkürzt)/cover.jpg

2025-03-19 21:10:47.088

ERROR

[FfmpegHelpers] Extract Cover Error Error: ffmpeg exited with code 1: av_interleaved_write_frame(): Input/output error frame= 1 fps=0.0 q=9.8 size=N/A time=00:00:00.00 bitrate=N/A speed= 11x frame= 1 fps=0.0 q=9.8 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.000478x video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed!

2025-03-19 21:10:47.091

ERROR

[parseEpubMetadata] Failed to extract image OEBPS/images/U1_978-3-10-492033-7.jpg from epub at "/mnt/audio/Ingo Bott/eBook/Ingoltes Spiel.epub" [Error: EACCES: permission denied, open '/mnt/audio/Ingo Bottrzt)/cover.jpg'] { errno: -13, code: 'EACCES', syscall: 'open', path: '/mnt/audio/Ingo Bottrzt)/cover.jpg' }

2025-03-19 21:10:47.092

DEBUG

Book Search: title: "Pirlo ", author: "Ingo Bott", provider: openlibrary

2025-03-19 21:10:47.094

FATAL

[Server] Uncaught exception origin: uncaughtException, error: [Error: EBADF: bad file descriptor, read] { errno: -9, code: 'EBADF', syscall: 'read' }`

Got this error and the connection to the Webinterface shut down for a short time and the scan is broken. So its not possible to scan the entire folder with the audio files

What did you expect to happen?

the folder with media should be scanned

Steps to reproduce the issue

Audiobookshelf version

v2.20.0

How are you running audiobookshelf?

Debian/PPA

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox

Logs

FATAL

[Server] Uncaught exception origin: uncaughtException, error: [Error: EBADF: bad file descriptor, read] { errno: -9, code: 'EBADF', syscall: 'read' }

Additional Notes

No response

Originally created by @Proxyyy87 on GitHub (Mar 19, 2025). ### What happened? `2025-03-19 21:10:47.023 DEBUG [LibraryScan] "Hörbücher": Found metadata file "/usr/share/audiobookshelf/metadata/items/c0fdd990-ecc0-4a7b-91b0-8dadacf618e3/metadata.json" 2025-03-19 21:10:47.033 DEBUG [FfmpegHelpers] Extract Cover Cmd: ffmpeg -i /mnt/audio/Ingo Bottt)/001 - Kapitel 1.mp3 -y -map 0:v:0 -frames:v 1 /mnt/audio/Ingo Bottkürzt)/cover.jpg 2025-03-19 21:10:47.088 ERROR [FfmpegHelpers] Extract Cover Error Error: ffmpeg exited with code 1: av_interleaved_write_frame(): Input/output error frame= 1 fps=0.0 q=9.8 size=N/A time=00:00:00.00 bitrate=N/A speed= 11x frame= 1 fps=0.0 q=9.8 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.000478x video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Conversion failed! 2025-03-19 21:10:47.091 ERROR [parseEpubMetadata] Failed to extract image OEBPS/images/U1_978-3-10-492033-7.jpg from epub at "/mnt/audio/Ingo Bott/eBook/Ingoltes Spiel.epub" [Error: EACCES: permission denied, open '/mnt/audio/Ingo Bottrzt)/cover.jpg'] { errno: -13, code: 'EACCES', syscall: 'open', path: '/mnt/audio/Ingo Bottrzt)/cover.jpg' } 2025-03-19 21:10:47.092 DEBUG Book Search: title: "Pirlo ", author: "Ingo Bott", provider: openlibrary 2025-03-19 21:10:47.094 FATAL [Server] Uncaught exception origin: uncaughtException, error: [Error: EBADF: bad file descriptor, read] { errno: -9, code: 'EBADF', syscall: 'read' }` Got this error and the connection to the Webinterface shut down for a short time and the scan is broken. So its not possible to scan the entire folder with the audio files ### What did you expect to happen? the folder with media should be scanned ### Steps to reproduce the issue 1. ### Audiobookshelf version v2.20.0 ### How are you running audiobookshelf? Debian/PPA ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? Firefox ### Logs ```shell FATAL [Server] Uncaught exception origin: uncaughtException, error: [Error: EBADF: bad file descriptor, read] { errno: -9, code: 'EBADF', syscall: 'read' } ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:09:32 +02:00
Author
Owner

@Proxyyy87 commented on GitHub (Mar 19, 2025):

If this is unchecked it is working correct

Image

@Proxyyy87 commented on GitHub (Mar 19, 2025): If this is unchecked it is working correct ![Image](https://github.com/user-attachments/assets/072aada6-3e4f-4432-9d86-21c784c76860)
Author
Owner

@advplyr commented on GitHub (Mar 19, 2025):

If you want to use those settings Abs needs to have permission to write to those folders.

@advplyr commented on GitHub (Mar 19, 2025): If you want to use those settings Abs needs to have permission to write to those folders.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2675