mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: Import fails to ffprobe or create metadata for audiobooks with whitespace in the target directory/book name on CIFS NAS share #1657
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deddc23efb on GitHub (Jan 13, 2024).
Describe the issue
Importing books that have spaces in the name fail to be imported and no metadata is created. Forcing a scan doesn't fix it and errors are shown in the logs. Renaming the directory in CLI to have NO whitespace and rerunning the scan succeeds.
LOG Excerpt:
2024-01-13 17:14:47.515 ERROR [Utils] Failed to get ino for path /audiobooks/Neal Asher/Polity/The Engineer ReConditioned Error: ENOENT: no such file or directory, stat '/audiobooks/Neal Asher/Polity/The Engineer ReConditioned'
2024-01-13 17:14:47.529 ERROR [fileUtils] Recurse files error Error: ENOENT: no such file or directory, scandir '/audiobooks/Neal Asher/Polity/The Engineer ReConditioned/'
2024-01-13 17:14:47.529 ERROR [fileUtils] Failed to getFileTimestampsWithIno Error: ENOENT: no such file or directory, stat '/audiobooks/Neal Asher/Polity/The Engineer ReConditioned'
2024-01-13 17:15:13.135 INFO [Audnexus] Searching for author "https://api.audnex.us/authors?name=the%20engineer%20reconditioned"
2024-01-13 17:15:13.141 INFO [Audnexus] Searching for author "https://api.audnex.us/authors?name=neal%20asher"
2024-01-13 17:15:38.749 INFO Uploading 1 files to /audiobooks/Neal Asher/Polity/The Engineer ReConditioned
2024-01-13 17:15:47.223 ERROR [AudioFileScanner] Invalid data found when processing input : "/audiobooks/Neal Asher/Polity/The Engineer ReConditioned/The Engineer ReConditioned.m4b"
2024-01-13 17:17:22.254 INFO [LibraryScanner] Starting library scan 77c4c8d5-e158-4a4a-8f1c-d0b91ed53ce1 for audiobooks
2024-01-13 17:17:25.713 ERROR [LibraryScanner] Library scan 77c4c8d5-e158-4a4a-8f1c-d0b91ed53ce1 completed in 0:03.0 | 0 Added | 0 Updated | 0 Missing
2024-01-13 17:17:26.159 INFO [LibraryController] Scan complete
Renaming the book directory to "Engineer" and rerunning the scan succeeds with no errors in the log.
Steps to reproduce the issue
Audiobookshelf version
2.7.1 UPDATED
How are you running audiobookshelf?
Docker
@advplyr commented on GitHub (Jan 13, 2024):
It's most likely a coincidence that removing the space fixed the issue for you. Can you double check the audiobookshelf version you are running because 4.7.1 is not a valid version.
When you are importing a book are you doing this with the uploader in the web client or in your file system directly?
@deddc23efb commented on GitHub (Jan 13, 2024):
Sorry - fingerpokin problem - version is 2.7.1
Upload is being done through Web interface (drag and drop of a directory - haven't seen the issue with a lone file), Brave browser, switching between Audible.com and google.com for metadata fetch.
I did try moving the folder around manually from CLI on the filesystem and then running a scan - same failure.
@advplyr commented on GitHub (Feb 28, 2024):
This is an issue with CIFS not persisting inode values. Same as #2509
@advplyr commented on GitHub (Feb 28, 2024):
Duplicate of #2509