[Bug]: Library not updated after uploading from the upload page #1216

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

Originally created by @kymahi on GitHub (Jun 27, 2023).

Describe the issue

Myself and another user have recently uploaded books to our server, but the books are not showing up in the library until I kick off a manual scan of the library.

Steps to reproduce the issue

  1. Go to server
  2. click Upload icon
  3. upload audiobook (I filled out author and series)
  4. go to library
  5. find no new book

Audiobookshelf version

2.2.23

How are you running audiobookshelf?

Docker

Originally created by @kymahi on GitHub (Jun 27, 2023). ### Describe the issue Myself and another user have recently uploaded books to our server, but the books are not showing up in the library until I kick off a manual scan of the library. ### Steps to reproduce the issue 1. Go to server 2. click Upload icon 3. upload audiobook (I filled out author and series) 4. go to library 5. find no new book ### Audiobookshelf version 2.2.23 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:36:00 +02:00
adam closed this issue 2026-04-24 23:36:00 +02:00
Author
Owner

@advplyr commented on GitHub (Jun 28, 2023):

Do you have the Watcher disabled?

@advplyr commented on GitHub (Jun 28, 2023): Do you have the Watcher disabled?
Author
Owner

@kymahi commented on GitHub (Jun 28, 2023):

No it's not disabled :\

@kymahi commented on GitHub (Jun 28, 2023): No it's not disabled :\
Author
Owner

@advplyr commented on GitHub (Jun 28, 2023):

If you can upload then share the logs with debug logs turned on that can be helpful to see why the watcher is not picking it up.

@advplyr commented on GitHub (Jun 28, 2023): If you can upload then share the logs with debug logs turned on that can be helpful to see why the watcher is not picking it up.
Author
Owner

@AquaMorph commented on GitHub (Jul 12, 2023):

I also ran into this and I deleted the book file and tried to collect a log this time but it fails to upload now full out.

@AquaMorph commented on GitHub (Jul 12, 2023): I also ran into this and I deleted the book file and tried to collect a log this time but it fails to upload now full out.
Author
Owner

@AquaMorph commented on GitHub (Jul 12, 2023):

I think the issue of not being able to upload was unrelated. I did a full reboot of my entire tech stack and I was able to upload and the error reproduced. I should also clarify I am running the same environment as the person who opened the bug. Here is the log:

2023-07-12 01:20:26

INFO

Uploading 1 files to /audiobooks/WeAreSatellites_ep7

2023-07-12 01:20:28

DEBUG

[Watcher] File Added /audiobooks/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b

2023-07-12 01:20:28

DEBUG

[Watcher] Modified file in library "Christian's Audiobooks" and folder "fol_0axqmpomam0yt18q4y" with relPath "/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b"

2023-07-12 01:20:32

INFO

[Server] 1 Files Changed

2023-07-12 01:20:32

DEBUG

[Scanner] Scanning file update groups in folder "fol_0axqmpomam0yt18q4y" of library "Christian's Audiobooks"

2023-07-12 01:20:32

DEBUG

[Scanner] scanFolderUpdates fileUpdateGroup [object Object]

2023-07-12 01:20:32

DEBUG

[Scanner] Folder update group must be a new item "WeAreSatellites_ep7" in library "Christian's Audiobooks"

2023-07-12 01:20:32

DEBUG

[Scanner] Scanning new item "/audiobooks/WeAreSatellites_ep7"

2023-07-12 01:20:32

ERROR

[MediaFileScanner] Invalid data found when processing input : "/audiobooks/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b"

2023-07-12 01:20:32

WARN

[Scanner] Library item has no media files "/audiobooks/WeAreSatellites_ep7"

2023-07-12 01:20:32

DEBUG

[Scanner] Folder scan results [object Object]

2023-07-12 01:20:35

DEBUG

Setting permission "484" for uid 99 and gid 100 | "/audiobooks"
@AquaMorph commented on GitHub (Jul 12, 2023): I think the issue of not being able to upload was unrelated. I did a full reboot of my entire tech stack and I was able to upload and the error reproduced. I should also clarify I am running the same environment as the person who opened the bug. Here is the log: ``` 2023-07-12 01:20:26 INFO Uploading 1 files to /audiobooks/WeAreSatellites_ep7 2023-07-12 01:20:28 DEBUG [Watcher] File Added /audiobooks/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b 2023-07-12 01:20:28 DEBUG [Watcher] Modified file in library "Christian's Audiobooks" and folder "fol_0axqmpomam0yt18q4y" with relPath "/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b" 2023-07-12 01:20:32 INFO [Server] 1 Files Changed 2023-07-12 01:20:32 DEBUG [Scanner] Scanning file update groups in folder "fol_0axqmpomam0yt18q4y" of library "Christian's Audiobooks" 2023-07-12 01:20:32 DEBUG [Scanner] scanFolderUpdates fileUpdateGroup [object Object] 2023-07-12 01:20:32 DEBUG [Scanner] Folder update group must be a new item "WeAreSatellites_ep7" in library "Christian's Audiobooks" 2023-07-12 01:20:32 DEBUG [Scanner] Scanning new item "/audiobooks/WeAreSatellites_ep7" 2023-07-12 01:20:32 ERROR [MediaFileScanner] Invalid data found when processing input : "/audiobooks/WeAreSatellites_ep7/WeAreSatellites_ep7.m4b" 2023-07-12 01:20:32 WARN [Scanner] Library item has no media files "/audiobooks/WeAreSatellites_ep7" 2023-07-12 01:20:32 DEBUG [Scanner] Folder scan results [object Object] 2023-07-12 01:20:35 DEBUG Setting permission "484" for uid 99 and gid 100 | "/audiobooks" ```
Author
Owner

@AquaMorph commented on GitHub (Jul 12, 2023):

Going to libraries and selecting the library drop down and running a scan caused it to show up as expected.

@AquaMorph commented on GitHub (Jul 12, 2023): Going to libraries and selecting the library drop down and running a scan caused it to show up as expected.
Author
Owner

@advplyr commented on GitHub (Jul 12, 2023):

Ah, I understand what happened. This is the same issue as #1362 and we can merge this issue into that one.

tldr; the watcher is detecting the file before it has finished uploading so the scanner fails to scan it. For the most part this is handled well by the watcher library but I think slow file transfer can cause this.

@advplyr commented on GitHub (Jul 12, 2023): Ah, I understand what happened. This is the same issue as #1362 and we can merge this issue into that one. tldr; the watcher is detecting the file before it has finished uploading so the scanner fails to scan it. For the most part this is handled well by the watcher library but I think slow file transfer can cause this.
Author
Owner

@advplyr commented on GitHub (Jul 12, 2023):

Duplicate of #1362

@advplyr commented on GitHub (Jul 12, 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#1216