mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[10.11.0 RC6] 'FOREIGN KEY constraint failed' Error on database migration #7349
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 @lutzbat on GitHub (Sep 25, 2025).
Description of the bug
I wanted to upgrade for testing from version 10.10.7 to 10.11.0 RC6 but the startup migration throws an 'FOREIGN KEY constraint failed' error on saving ItemValues.
Before I updated, I removed all Plugins from the UI and the plugins folder, if that's relevant.
Reproduction steps
I can reproduce this behavior by replacing the config folder with a backup I made from version 10.10.7 and attempt to upgrade to 10.11.0 RC6 again.
What is the current bug behavior?
Database migration throws an error and therefore does not successfully migrate.
What is the expected correct behavior?
Database migration successfully migrate the current database to the new EFCore database.
Jellyfin Server version
Master
Specify commit id
2aa39226c6Specify unstable release number
No response
Specify version number
No response
Specify the build version
Can not get into the dashboard
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response