[Bug]: Books not added automatically after being uploaded - Scan Error #1320

Closed
opened 2026-04-24 23:39:36 +02:00 by adam · 6 comments
Owner

Originally created by @kymahi on GitHub (Aug 15, 2023).

Describe the issue

I uploaded a book, and it did not show up in the library. The logs are below.

The books show up after doing a regular scan from settings.

Log 1:

2023-08-15 15:33:43
INFO
Uploading 1 files to /audiobooks/Kurt Vonnegut/Cats Cradle

2023-08-15 15:33:46
DEBUG
[Watcher] File Added /audiobooks/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b

2023-08-15 15:33:46
DEBUG
[Watcher] Modified file in library "Audiobooks" and folder "c9df7773-8c97-490f-8dcb-383d198c9f45" with relPath "/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b"

2023-08-15 15:33:50
INFO
[Server] 1 Files Changed

2023-08-15 15:33:50
DEBUG
[Scanner] Scanning file update groups in folder "c9df7773-8c97-490f-8dcb-383d198c9f45" of library "Audiobooks"

2023-08-15 15:33:50
DEBUG
[Scanner] scanFolderUpdates fileUpdateGroup [object Object]

2023-08-15 15:33:50
DEBUG
[Scanner] Folder update group must be a new item "Kurt Vonnegut/Cats Cradle" in library "Audiobooks"

2023-08-15 15:33:50
DEBUG
[Scanner] Scanning new item "/audiobooks/Kurt Vonnegut/Cats Cradle"

2023-08-15 15:33:50
ERROR
[MediaFileScanner] Invalid data found when processing input : "/audiobooks/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b"

2023-08-15 15:33:50
WARN
[Scanner] Library item has no media files "/audiobooks/Kurt Vonnegut/Cats Cradle"

2023-08-15 15:33:50
DEBUG
[Scanner] Folder scan results [object Object]

2023-08-15 15:34:06
DEBUG
Setting permission "484" for uid 99 and gid 100 | "/audiobooks/Kurt Vonnegut"

Log 2:

2023-08-15 15:50:48
INFO
Uploading 1 files to /audiobooks/Neil Gaiman/American Gods

2023-08-15 15:50:51
DEBUG
[Watcher] File Added /audiobooks/Neil Gaiman/American Gods/American Gods.m4b

2023-08-15 15:50:51
DEBUG
[Watcher] Modified file in library "Audiobooks" and folder "c9df7773-8c97-490f-8dcb-383d198c9f45" with relPath "/Neil Gaiman/American Gods/American Gods.m4b"

2023-08-15 15:50:55
INFO
[Server] 1 Files Changed

2023-08-15 15:50:55
DEBUG
[Scanner] Scanning file update groups in folder "c9df7773-8c97-490f-8dcb-383d198c9f45" of library "Audiobooks"

2023-08-15 15:50:55
DEBUG
[Scanner] scanFolderUpdates fileUpdateGroup [object Object]

2023-08-15 15:50:55
DEBUG
[Scanner] Folder update group must be a new item "Neil Gaiman/American Gods" in library "Audiobooks"

2023-08-15 15:50:55
DEBUG
[Scanner] Scanning new item "/audiobooks/Neil Gaiman/American Gods"

2023-08-15 15:50:55
ERROR
[MediaFileScanner] Invalid data found when processing input : "/audiobooks/Neil Gaiman/American Gods/American Gods.m4b"

2023-08-15 15:50:55
WARN
[Scanner] Library item has no media files "/audiobooks/Neil Gaiman/American Gods"

2023-08-15 15:50:55
DEBUG
[Scanner] Folder scan results [object Object]

2023-08-15 15:51:51
DEBUG
Setting permission "484" for uid 99 and gid 100 | "/audiobooks/Neil Gaiman"

Steps to reproduce the issue

  1. Upload a book
  2. Go to the library
  3. Do not see book
  4. Be sad

Audiobookshelf version

v2.3.3

How are you running audiobookshelf?

Docker

Originally created by @kymahi on GitHub (Aug 15, 2023). ### Describe the issue I uploaded a book, and it did not show up in the library. The logs are below. The books show up after doing a regular scan from settings. Log 1: ``` 2023-08-15 15:33:43 INFO Uploading 1 files to /audiobooks/Kurt Vonnegut/Cats Cradle 2023-08-15 15:33:46 DEBUG [Watcher] File Added /audiobooks/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b 2023-08-15 15:33:46 DEBUG [Watcher] Modified file in library "Audiobooks" and folder "c9df7773-8c97-490f-8dcb-383d198c9f45" with relPath "/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b" 2023-08-15 15:33:50 INFO [Server] 1 Files Changed 2023-08-15 15:33:50 DEBUG [Scanner] Scanning file update groups in folder "c9df7773-8c97-490f-8dcb-383d198c9f45" of library "Audiobooks" 2023-08-15 15:33:50 DEBUG [Scanner] scanFolderUpdates fileUpdateGroup [object Object] 2023-08-15 15:33:50 DEBUG [Scanner] Folder update group must be a new item "Kurt Vonnegut/Cats Cradle" in library "Audiobooks" 2023-08-15 15:33:50 DEBUG [Scanner] Scanning new item "/audiobooks/Kurt Vonnegut/Cats Cradle" 2023-08-15 15:33:50 ERROR [MediaFileScanner] Invalid data found when processing input : "/audiobooks/Kurt Vonnegut/Cats Cradle/Cats Cradle.m4b" 2023-08-15 15:33:50 WARN [Scanner] Library item has no media files "/audiobooks/Kurt Vonnegut/Cats Cradle" 2023-08-15 15:33:50 DEBUG [Scanner] Folder scan results [object Object] 2023-08-15 15:34:06 DEBUG Setting permission "484" for uid 99 and gid 100 | "/audiobooks/Kurt Vonnegut" ``` Log 2: ``` 2023-08-15 15:50:48 INFO Uploading 1 files to /audiobooks/Neil Gaiman/American Gods 2023-08-15 15:50:51 DEBUG [Watcher] File Added /audiobooks/Neil Gaiman/American Gods/American Gods.m4b 2023-08-15 15:50:51 DEBUG [Watcher] Modified file in library "Audiobooks" and folder "c9df7773-8c97-490f-8dcb-383d198c9f45" with relPath "/Neil Gaiman/American Gods/American Gods.m4b" 2023-08-15 15:50:55 INFO [Server] 1 Files Changed 2023-08-15 15:50:55 DEBUG [Scanner] Scanning file update groups in folder "c9df7773-8c97-490f-8dcb-383d198c9f45" of library "Audiobooks" 2023-08-15 15:50:55 DEBUG [Scanner] scanFolderUpdates fileUpdateGroup [object Object] 2023-08-15 15:50:55 DEBUG [Scanner] Folder update group must be a new item "Neil Gaiman/American Gods" in library "Audiobooks" 2023-08-15 15:50:55 DEBUG [Scanner] Scanning new item "/audiobooks/Neil Gaiman/American Gods" 2023-08-15 15:50:55 ERROR [MediaFileScanner] Invalid data found when processing input : "/audiobooks/Neil Gaiman/American Gods/American Gods.m4b" 2023-08-15 15:50:55 WARN [Scanner] Library item has no media files "/audiobooks/Neil Gaiman/American Gods" 2023-08-15 15:50:55 DEBUG [Scanner] Folder scan results [object Object] 2023-08-15 15:51:51 DEBUG Setting permission "484" for uid 99 and gid 100 | "/audiobooks/Neil Gaiman" ``` ### Steps to reproduce the issue 1. Upload a book 2. Go to the library 3. Do not see book 4. Be sad ### Audiobookshelf version v2.3.3 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:39:36 +02:00
adam closed this issue 2026-04-24 23:39:36 +02:00
Author
Owner

@nichwall commented on GitHub (Aug 15, 2023):

Have you verified the upload is completed by manually looking at the file in the filesystem?

Are you routing traffic through CloudFlare? I believe CloudFlare has a 100 MB upload limit.

@nichwall commented on GitHub (Aug 15, 2023): Have you verified the upload is completed by manually looking at the file in the filesystem? Are you routing traffic through CloudFlare? I believe CloudFlare has a 100 MB upload limit.
Author
Owner

@kymahi commented on GitHub (Aug 16, 2023):

Yes, I verified that the file was finished uploading.

No, this was a local upload. Accessed the server directly through my server's internal IP. However, this has happened to other users of the server from outside the network as well, but either way, not routing traffic through CloudFlare

@kymahi commented on GitHub (Aug 16, 2023): Yes, I verified that the file was finished uploading. No, this was a local upload. Accessed the server directly through my server's internal IP. However, this has happened to other users of the server from outside the network as well, but either way, not routing traffic through CloudFlare
Author
Owner

@nichwall commented on GitHub (Aug 16, 2023):

Ah, so you uploaded through the filesystem, not through the ABS interface?

Are these two book files "good"? Can you run ffprobe on them to see if there's any problems?

@nichwall commented on GitHub (Aug 16, 2023): Ah, so you uploaded through the filesystem, not through the ABS interface? Are these two book files "good"? Can you run ffprobe on them to see if there's any problems?
Author
Owner

@kymahi commented on GitHub (Aug 16, 2023):

I uploaded through ABS, just at my LAN address (192.168.xxx.xxx) instead of from outside the network, but I've had other users have this same issue uploading from outside the network, so it's the same issue regardless of where it's uploaded from.

Yes, these files are good. Nothing in ffprobe and they play in ABS. Also, this happens with all books, not just these two. These are just the two most recent that I had could easily find logs for.

@kymahi commented on GitHub (Aug 16, 2023): I uploaded through ABS, just at my LAN address (192.168.xxx.xxx) instead of from outside the network, but I've had other users have this same issue uploading from outside the network, so it's the same issue regardless of where it's uploaded from. Yes, these files are good. Nothing in ffprobe and they play in ABS. Also, this happens with all books, not just these two. These are just the two most recent that I had could easily find logs for.
Author
Owner

@advplyr commented on GitHub (Aug 22, 2023):

@nichwall has the correct idea here. The watcher is detecting the file before it has finished uploading. That is why it gets picked up after a regular scan.

There is another issue open for this #1362 that breaks down the issue

@advplyr commented on GitHub (Aug 22, 2023): @nichwall has the correct idea here. The watcher is detecting the file before it has finished uploading. That is why it gets picked up after a regular scan. There is another issue open for this #1362 that breaks down the issue
Author
Owner

@advplyr commented on GitHub (Aug 22, 2023):

Duplicate of #1362

@advplyr commented on GitHub (Aug 22, 2023): Duplicate of #1362
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1320