2026-07-09, 02:34 PM
Having constant Database is locked errors until I changed a few things.
Jellyfin server is located on a QNAP TS-853 Pro (Intel Celeron 4 core Turbo 2.42ghz).
Noticed that no -shm or -wal files.
Stopped the Docker instance.
Opened jellyfin.db with DB Browser in SQLite.
On Tab Execute SQL:
Executed:
PRAGMA main.page_size = 4096;
PRAGMA main.cache_size=10000;
PRAGMA main.locking_mode=EXCLUSIVE;
PRAGMA main.synchronous=NORMAL;
PRAGMA main.temp_store = MEMORY;
pragma mmap_size = 30000000000;
pragma vacuum;
pragma optimize;
Closed DB file saving changes.
Restarted instance and the entire interface sped up. No more Database is locked.
shm and wal files are present.
Is this safe? Was there a reason why the DB is set to "delete" instead of "WAL" like is it a change in 12.0 and designed this way?
Images load so much faster. Selecting a movie is so much faster...
Jellyfin server is located on a QNAP TS-853 Pro (Intel Celeron 4 core Turbo 2.42ghz).
Noticed that no -shm or -wal files.
Stopped the Docker instance.
Opened jellyfin.db with DB Browser in SQLite.
On Tab Execute SQL:
Executed:
PRAGMA main.page_size = 4096;
PRAGMA main.cache_size=10000;
PRAGMA main.locking_mode=EXCLUSIVE;
PRAGMA main.synchronous=NORMAL;
PRAGMA main.temp_store = MEMORY;
pragma mmap_size = 30000000000;
pragma vacuum;
pragma optimize;
Closed DB file saving changes.
Restarted instance and the entire interface sped up. No more Database is locked.
shm and wal files are present.
Is this safe? Was there a reason why the DB is set to "delete" instead of "WAL" like is it a change in 12.0 and designed this way?
Images load so much faster. Selecting a movie is so much faster...

