mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[Issue]: Database Becomes Locked On Startup #5848
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @michaelharrigan on GitHub (May 24, 2024).
Please describe your bug
After updating to the latest server version, on startup, the database seems to getting locked preventing the server to finish its setup.
Reproduction Steps
Jellyfin Version
10.9.0
if other:
10.9.2
Environment
Jellyfin logs
FFmpeg logs
No response
Please attach any browser or client logs here
No response
Please attach any screenshots here
Code of Conduct
@jellyfin-bot commented on GitHub (May 24, 2024):
Hi, it seems like your issue report has the following item(s) that need to be addressed:
This is an automated message, currently under testing. Please file an issue here if you encounter any problems.
@SteveDinn commented on GitHub (May 24, 2024):
I'm running v10.9.2 via the official docker image on Debian 11 and I see this error in the log constantly. I see it whether I am using the Android app, Android TV client, or the web client, and also the server on its own running background or scheduled tasks. Most of the time, there is only ever one user connected to Jellyfin, so it's not even that multiple people are doing things simultaneously.
Was this an consequence of the database connection pooling? Seems like if tables are going to get locked then there needs to be some sort of serialization funnel for db access. Maybe that could be a stop-gap solution on the way to implementing support for a full-fledged database like postgres or mariadb? SQLite is great and all, but it's clearly not meant for multi-threaded contexts.
@isgallagher commented on GitHub (May 27, 2024):
I host my sqlite db on my NAS so this issue has forced me back to 10.8.13 which is working perfectly.
@holow29 commented on GitHub (Aug 24, 2024):
Seems like it could be related to #11589
@jumoog commented on GitHub (Aug 25, 2024):
This shouldn't happen anymore in the latest jellyfin release.
@felix920506 commented on GitHub (Aug 25, 2024):
Reported by user as fixed.