claude-memory/graph/solutions/jellyfin-db-corruption-recovery-full-procedure-1e0f47.md

1.3 KiB

id type title tags importance confidence created updated
1e0f4762-6a4b-450f-861f-47a9e7952770 solution Jellyfin DB corruption recovery - full procedure
jellyfin
watchstate
sqlite
database
recovery
ubuntu-manticore
0.9 0.8 2026-02-16T16:24:45.699403+00:00 2026-02-16T16:24:45.699403+00:00

Jellyfin DB corruption recovery - SQLite Error 11 'database disk image is malformed'. Root cause: corrupted jellyfin.db on ubuntu-manticore. Recovery steps: 1) Stop watchstate first to prevent blank data sync. 2) Cannot dump/recover - corruption too severe. 3) Must do full config wipe (not just DB delete) due to Jellyfin 10.11.4 migration bug - old config files cause migrations to fail against fresh DB with 'no such table: __EFMigrationsHistory' and 'ObjectDisposedException'. 4) Fresh install + library rescan. 5) Restore watch history from watchstate Feb 13 backups using backend:restore command. Key learnings: watchstate IMPORT_METADATA_ONLY=true means only metadata not play state. Jellyfin export:enabled in watchstate could overwrite good data with blank state after rescan - disable before recovery. watchstate backend:restore needs --assume-yes --execute -i flags. For multi-user restore, add temporary backend entries per user in servers.yaml. Old config preserved at ~/docker/jellyfin/config.bak/ on ubuntu-manticore.