[Bug]: Multiple instances of library scan which do not complete. #881

Open
opened 2025-10-14 17:50:07 -06:00 by navan · 0 comments
Owner

Originally created by @grv688 on 12/19/2024

What happened?

Within the last few versions / during modest growth of my library, scheduled scans of the library have begun failing to complete. Clicking on the active tasks icon at the top of the page and canceling each task sometimes causes them to terminate, but this is not always true. Restarting the container (docker on Ubuntu 24.04 LTS managed with Portainer) also works. Upon restarting the container, a manually initiated library scan will complete, but the problem eventually returns.

In the logs, the "scan" items that are present look to complete, but I do see running scans in the UI as described.

This can happen with my modest Podcast library or my larger Audiobook library. My libraries are mounted NFS shares on the Ubuntu server.

I have about 4,300 items in my library, comprised of about 25,600 tracks.

The folder watcher is enabled for the library as well as hourly scans, so that could be a conflict. With that said, it has always been that way, even before the problem started.

image

What did you expect to happen?

Library scans eventually complete, even for larger libraries.

Steps to reproduce the issue

  1. Start the container.
  2. Configure hourly scans and watched folder for library/libraries.
  3. Wait.

Audiobookshelf version

2.17.5

How are you running audiobookshelf?

Docker

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?

Chrome

Logs

2024-12-19 13:01:56.923

INFO

[LibraryScanner] Library scan "922e0d20-c93f-495b-aa92-1288c6b6a03d" completed in 1:56.0 | 0 Added | 0 Updated | 0 Missing

2024-12-19 13:01:56.954

INFO

[LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_922e0d20-c93f-495b-aa92-1288c6b6a03d.txt"

2024-12-19 14:00:00.220

INFO

[LibraryScanner] Starting library scan a0371066-b69d-4c3e-a9e9-7e9d0192d60d for Podcasts

2024-12-19 14:00:00.227

INFO

[LibraryScanner] Starting library scan 7d796acc-068c-40b0-9003-dd8e1c000533 for Audiobooks

2024-12-19 14:00:02.952

INFO

[LibraryScanner] Library scan "a0371066-b69d-4c3e-a9e9-7e9d0192d60d" completed in 0:02.0 | 0 Added | 2 Updated | 0 Missing

2024-12-19 14:00:02.977

INFO

[LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_a0371066-b69d-4c3e-a9e9-7e9d0192d60d.txt"

2024-12-19 14:00:42.440

INFO

[LibraryScanner] Library scan "7d796acc-068c-40b0-9003-dd8e1c000533" completed in 0:42.0 | 0 Added | 0 Updated | 0 Missing

2024-12-19 14:00:42.471

INFO

[LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_7d796acc-068c-40b0-9003-dd8e1c000533.txt"

Additional Notes

No response

*Originally created by @grv688 on 12/19/2024* ### What happened? Within the last few versions / during modest growth of my library, scheduled scans of the library have begun failing to complete. Clicking on the active tasks icon at the top of the page and canceling each task sometimes causes them to terminate, but this is not always true. Restarting the container (docker on Ubuntu 24.04 LTS managed with Portainer) also works. Upon restarting the container, a manually initiated library scan will complete, but the problem eventually returns. In the logs, the "scan" items that are present look to complete, but I do see running scans in the UI as described. This can happen with my modest Podcast library or my larger Audiobook library. My libraries are mounted NFS shares on the Ubuntu server. I have about 4,300 items in my library, comprised of about 25,600 tracks. The folder watcher is enabled for the library as well as hourly scans, so that could be a conflict. With that said, it has always been that way, even before the problem started. ![image](https://github.com/user-attachments/assets/65796006-8aa7-4665-b51e-00bb01daaf35) ### What did you expect to happen? Library scans eventually complete, even for larger libraries. ### Steps to reproduce the issue 1. Start the container. 2. Configure hourly scans and watched folder for library/libraries. 3. Wait. ### Audiobookshelf version 2.17.5 ### How are you running audiobookshelf? Docker ### 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? Chrome ### Logs ```shell 2024-12-19 13:01:56.923 INFO [LibraryScanner] Library scan "922e0d20-c93f-495b-aa92-1288c6b6a03d" completed in 1:56.0 | 0 Added | 0 Updated | 0 Missing 2024-12-19 13:01:56.954 INFO [LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_922e0d20-c93f-495b-aa92-1288c6b6a03d.txt" 2024-12-19 14:00:00.220 INFO [LibraryScanner] Starting library scan a0371066-b69d-4c3e-a9e9-7e9d0192d60d for Podcasts 2024-12-19 14:00:00.227 INFO [LibraryScanner] Starting library scan 7d796acc-068c-40b0-9003-dd8e1c000533 for Audiobooks 2024-12-19 14:00:02.952 INFO [LibraryScanner] Library scan "a0371066-b69d-4c3e-a9e9-7e9d0192d60d" completed in 0:02.0 | 0 Added | 2 Updated | 0 Missing 2024-12-19 14:00:02.977 INFO [LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_a0371066-b69d-4c3e-a9e9-7e9d0192d60d.txt" 2024-12-19 14:00:42.440 INFO [LibraryScanner] Library scan "7d796acc-068c-40b0-9003-dd8e1c000533" completed in 0:42.0 | 0 Added | 0 Updated | 0 Missing 2024-12-19 14:00:42.471 INFO [LibraryScan] Scan log saved "/metadata/logs/scans/2024-12-19_7d796acc-068c-40b0-9003-dd8e1c000533.txt" ``` ### Additional Notes _No response_
navan added the
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
labels 2025-10-14 17:50:09 -06:00
Sign in to join this conversation.
No labels
authentication
awaiting release
awaiting release
awaiting release
awaiting release
backlog
backlog
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
chapter editor
chapter editor
chapter editor
chapter editor
chapter editor
ebooks
ebooks
ebooks
ebooks
ebooks
ebooks
ebooks
ebooks
ebooks
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
possible plugin
progress sync
sorting/filtering/searching
sorting/filtering/searching
sorting/filtering/searching
sorting/filtering/searching
sorting/filtering/searching
sorting/filtering/searching
sorting/filtering/searching
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
unable to reproduce
upload
users & permissions
users & permissions
users & permissions
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/audiobookshelf#881
No description provided.