Kareadita / Kavita

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
http://www.kavitareader.com
GNU General Public License v3.0
5.88k stars 300 forks source link

Library not scanning #3058

Open pedroponte opened 1 month ago

pedroponte commented 1 month ago

What happened?

Can't seem to have library scan working properly.

Had a problem when scanning the first library.

I have then recreated the server and it worked with the first library/folder.

Now, having added new library and folder mounted on

/mnt/pdf/lib2

it can't find any files on the second one.

The first library is mounted on /mnt/pdf/lib1

TIA

What did you expect?

Are there any logs I can share to allow troubleshooting? Could this be about file/ownership permissions?

The pdf files are hosted on the host server. The server is running on a docker engine. The pdf files are mapped from the host docker engine into the container /mnt/pdf folder.

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

0.8.2 - Stable

What operating system is Kavita being hosted from?

Docker (Other)

If the issue is being seen on Desktop, what OS are you running where you see the issue?

None

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

Firefox

If the issue is being seen on Mobile, what OS are you running where you see the issue?

None

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

No response

Relevant log output

Kavita] [2024-07-16 15:14:27.694 +00:00  75] [Information] API.Services.Tasks.ScannerService [ScannerService] Beginning file scan on myfiles

[Kavita] [2024-07-16 15:14:27.694 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 1: Scan Files

[Kavita] [2024-07-16 15:14:27.694 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 1.A: Process 1 folders

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Debug] API.Services.Tasks.ScannerService     [ScannerService] Library myfiles Step 1.B: Scan files in /mnt/pdf/myfiles

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Debug] API.Services.Tasks.ScannerService     [ScannerService] Library myfiles Step 1.C: Process files in /mnt/pdf/myfiles

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 2: Track Found Series

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 3: Process Parsed Series

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished file scan in 0 milliseconds. Updating database

[Kavita] [2024-07-16 15:14:27.695 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 4: Save Library

[Kavita] [2024-07-16 15:14:27.711 +00:00  75] [Information] API.Services.Tasks.ScannerService [ScannerService] Finished library scan of 0 series in 18 milliseconds for myfiles. There were no changes

[Kavita] [2024-07-16 15:14:27.711 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Library myfiles Step 5: Remove Deleted Series

[Kavita] [2024-07-16 15:14:27.711 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Removing Series that were not found during the scan

[Kavita] [2024-07-16 15:14:27.711 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Found 0 series that needs to be removed: []

[Kavita] [2024-07-16 15:14:27.711 +00:00  75] [Debug] API.Services.Tasks.ScannerService [ScannerService] Removing Series that were not found during the scan - complete

[Kavita] [2024-07-16 15:14:27.713 +00:00  37] [Information] API.Services.Tasks.CleanupService Performing cleanup of Cache directories

[Kavita] [2024-07-16 15:14:27.713 +00:00  37] [Information] API.Services.Tasks.CleanupService Cache directory purged

[Kavita] [2024-07-16 15:14:29.635 +00:00  77] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 1.0041 ms

[Kavita] [2024-07-16 15:14:29.636 +00:00  76] [Information] API.Controllers.AccountController confirm-email failed from invalid registered email: redacted@gmail.com

[Kavita] [2024-07-16 15:14:29.636 +00:00  76] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP POST /api/account/confirm-email-update responded 400 in 0.7940 ms

[Kavita] [2024-07-16 15:14:29.691 +00:00  76] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.4332 ms

[Kavita] [2024-07-16 15:14:29.740 +00:00  76] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.3881 ms

[Kavita] [2024-07-16 15:14:47.659 +00:00  77] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.8325 ms

[Kavita] [2024-07-16 15:14:47.711 +00:00  73] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.6615 ms

[Kavita] [2024-07-16 15:14:47.768 +00:00  73] [Information] Serilog.AspNetCore.RequestLoggingMiddleware HTTP GET /api/theme responded 200 in 0.6120 ms

Additional Notes

docker engine, running on linux

DieselTech commented 1 month ago

Take a look at the wiki to see if you are following the scanners requirements:

https://wiki.kavitareader.com/guides/scanner

Generally when Kavita isn't scanning anything it's because the structure of the files / folders isn't correct.