Jellyfin Forum
SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker (/t-sqlite-error-6-database-is-locked-on-jellyfin-10-9-3-via-docker)



SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker - nothingveryobvious - 2024-05-27

I am posting this thread because it is not exactly the same as this one: https://forum.jellyfin.org/t-library-scan-keeps-failing--6086

I'm on Jellyfin 10.9.3 running on Docker Desktop 4.30.0 on a Mac Mini 2018 running Sonoma 14.5.

Upon full library scan, scan fails after a few minutes and I get the following error:

SQLite Error 6: 'database is locked'


There are a number of GitHub issues with the same or similar problem (SQLiteError 5 or 6):
https://github.com/jellyfin/jellyfin/issues/11834
https://github.com/jellyfin/jellyfin/issues/11839
https://github.com/jellyfin/jellyfin/issues/11728
https://github.com/jellyfin/jellyfin/issues/11589 (lots of comments on this one)

I even tried a fresh install of Jellyfin 10.9.3 and added one library. Same issue.

I've since had to do a fresh install of 10.8.13. Any suggestions would be appreciated. Thank you.


RE: SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker - TheDreadPirate - 2024-05-27

Which of the suggested setting changes have you tried?

I've seen both gnattu's suggestion to change the parallel library scan setting and also the trickplay thread setting to 1.


RE: SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker - nothingveryobvious - 2024-05-28

@TheDreadPirate

I changed the parallel library scan to 1 and the result was the same. I don't use trickplay, so there was nothing to change.


RE: SQLite Error 6: 'database is locked' on Jellyfin 10.9.3 via Docker - gnattu - 2024-05-28

Use a volume instead of a bind mount for docker desktop if are using bind mount.