2026-02-15, 07:50 PM
(This post was last modified: 2026-02-15, 07:59 PM by tmulle. Edited 3 times in total.)
I just installed a new install of Jellyfin on my Windows 11 PC. I added all my media, scanned, etc and things were working perfectly.
Then while a movie was streaming from another machine, the PC running Jellyfin Server needed a reboot, so I let it and figured JF would start up automatically.
But after the PC restarted JF DID NOT restart automatically and when I checked the logs I find this error: "Error: "SQLite Error 1: 'no such table: __EFMigrationsHistory'.""
So my JF will not restart now.. I installed JF as a user installation and not as a service since the installer says that is NOT recommended. I used the "Windows->Restart" command in Windows 11 and things shutdown/restarted under Windows control.
I just installed this and hope I didn't lose all my work. More importantly, I need to make sure that JF survives future reboots. I have it also running on Linux and it works fine on restarts.
UGH!!!! my jellyfin.db is EMPTY! I just lost all my data... why? there isn't even a backup file.
UPDATE: Thank Goodness Windows 11 made a restore point for me and I was able to recover the old file.. but WOW that is a nasty bug!!!
Thanks...
LOG DUMP
-------------
[2026-02-15 14:33:22.958 -05:00] [INF] [2] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.065 -05:00] [INF] [8] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0"
[2026-02-15 14:33:23.075 -05:00] [INF] [8] Main: Jellyfin version: "10.11.6"
[2026-02-15 14:33:23.077 -05:00] [INF] [8] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[2026-02-15 14:33:23.078 -05:00] [INF] [8] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[2026-02-15 14:33:23.080 -05:00] [INF] [8] Main: Operating system: "Microsoft Windows 10.0.26200"
[2026-02-15 14:33:23.080 -05:00] [INF] [8] Main: Architecture: X64
[2026-02-15 14:33:23.081 -05:00] [INF] [8] Main: 64-Bit Process: True
[2026-02-15 14:33:23.081 -05:00] [INF] [8] Main: User Interactive: True
[2026-02-15 14:33:23.082 -05:00] [INF] [8] Main: Processor count: 24
[2026-02-15 14:33:23.082 -05:00] [INF] [8] Main: Program data path: "C:\ProgramData\Jellyfin\Server"
[2026-02-15 14:33:23.083 -05:00] [INF] [8] Main: Log directory path: "C:\ProgramData\Jellyfin\Server\log"
[2026-02-15 14:33:23.084 -05:00] [INF] [8] Main: Config directory path: "C:\ProgramData\Jellyfin\Server\config"
[2026-02-15 14:33:23.084 -05:00] [INF] [8] Main: Cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.085 -05:00] [INF] [8] Main: Temp directory path: "C:\Users\mulle\AppData\Local\Temp\jellyfin"
[2026-02-15 14:33:23.085 -05:00] [INF] [8] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2026-02-15 14:33:23.086 -05:00] [INF] [8] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2026-02-15 14:33:23.091 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
[2026-02-15 14:33:23.092 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
[2026-02-15 14:33:23.093 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
[2026-02-15 14:33:23.096 -05:00] [INF] [8] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.122 -05:00] [INF] [8] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=C:\ProgramData\Jellyfin\Server\data\jellyfin.db;Cache=Default;Default Timeout=30;Pooling=True"
[2026-02-15 14:33:23.125 -05:00] [INF] [8] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLITE connection pragma command set to:
"PRAGMA locking_mode=NORMAL;
PRAGMA journal_size_limit=134217728;
PRAGMA synchronous=1;
PRAGMA temp_store=2;
"
[2026-02-15 14:33:23.127 -05:00] [INF] [8] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock.
[2026-02-15 14:33:23.140 -05:00] [INF] [8] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service.
[2026-02-15 14:33:23.536 -05:00] [INF] [8] Jellyfin.Server.Migrations.JellyfinMigrationService: There are 5 migrations for stage PreInitialisation.
[2026-02-15 14:33:23.538 -05:00] [INF] [8] InternalCodeMigration: Perform migration "20250420000000_CreateNetworkConfiguration"
[2026-02-15 14:33:23.549 -05:00] [ERR] [8] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']"
""INSERT INTO \"__EFMigrationsHistory\" (\"MigrationId\", \"ProductVersion\")
VALUES ('20250420000000_CreateNetworkConfiguration', '10.11.6.0');"
[2026-02-15 14:33:23.551 -05:00] [FTL] [8] InternalCodeMigration: Error: "SQLite Error 1: 'no such table: __EFMigrationsHistory'."
[2026-02-15 14:33:23.552 -05:00] [ERR] [8] InternalCodeMigration: Migration "20250420000000_CreateNetworkConfiguration" failed
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: __EFMigrationsHistory'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable
at Jellyfin.Server.Migrations.JellyfinMigrationService.InternalCodeMigration.PerformAsync(IStartupLogger logger)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.<Main>(String[] args)
Then while a movie was streaming from another machine, the PC running Jellyfin Server needed a reboot, so I let it and figured JF would start up automatically.
But after the PC restarted JF DID NOT restart automatically and when I checked the logs I find this error: "Error: "SQLite Error 1: 'no such table: __EFMigrationsHistory'.""
So my JF will not restart now.. I installed JF as a user installation and not as a service since the installer says that is NOT recommended. I used the "Windows->Restart" command in Windows 11 and things shutdown/restarted under Windows control.
I just installed this and hope I didn't lose all my work. More importantly, I need to make sure that JF survives future reboots. I have it also running on Linux and it works fine on restarts.
UGH!!!! my jellyfin.db is EMPTY! I just lost all my data... why? there isn't even a backup file.
UPDATE: Thank Goodness Windows 11 made a restore point for me and I was able to recover the old file.. but WOW that is a nasty bug!!!
Thanks...
LOG DUMP
-------------
[2026-02-15 14:33:22.958 -05:00] [INF] [2] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.065 -05:00] [INF] [8] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0"
[2026-02-15 14:33:23.075 -05:00] [INF] [8] Main: Jellyfin version: "10.11.6"
[2026-02-15 14:33:23.077 -05:00] [INF] [8] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[2026-02-15 14:33:23.078 -05:00] [INF] [8] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[2026-02-15 14:33:23.080 -05:00] [INF] [8] Main: Operating system: "Microsoft Windows 10.0.26200"
[2026-02-15 14:33:23.080 -05:00] [INF] [8] Main: Architecture: X64
[2026-02-15 14:33:23.081 -05:00] [INF] [8] Main: 64-Bit Process: True
[2026-02-15 14:33:23.081 -05:00] [INF] [8] Main: User Interactive: True
[2026-02-15 14:33:23.082 -05:00] [INF] [8] Main: Processor count: 24
[2026-02-15 14:33:23.082 -05:00] [INF] [8] Main: Program data path: "C:\ProgramData\Jellyfin\Server"
[2026-02-15 14:33:23.083 -05:00] [INF] [8] Main: Log directory path: "C:\ProgramData\Jellyfin\Server\log"
[2026-02-15 14:33:23.084 -05:00] [INF] [8] Main: Config directory path: "C:\ProgramData\Jellyfin\Server\config"
[2026-02-15 14:33:23.084 -05:00] [INF] [8] Main: Cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.085 -05:00] [INF] [8] Main: Temp directory path: "C:\Users\mulle\AppData\Local\Temp\jellyfin"
[2026-02-15 14:33:23.085 -05:00] [INF] [8] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2026-02-15 14:33:23.086 -05:00] [INF] [8] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2026-02-15 14:33:23.091 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
"C:\ProgramData\Jellyfin\Server\data" (Fixed) successfully checked with "506GiB" free which is over the minimum of "2GiB".[2026-02-15 14:33:23.092 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
"C:\ProgramData\Jellyfin\Server\cache" (Fixed) successfully checked with "506GiB" free which is over the minimum of "2GiB".[2026-02-15 14:33:23.093 -05:00] [INF] [8] Jellyfin.Server.Startup: Storage path
"C:\ProgramData\Jellyfin\Server" (Fixed) successfully checked with "506GiB" free which is over the minimum of "2GiB".[2026-02-15 14:33:23.096 -05:00] [INF] [8] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2026-02-15 14:33:23.122 -05:00] [INF] [8] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=C:\ProgramData\Jellyfin\Server\data\jellyfin.db;Cache=Default;Default Timeout=30;Pooling=True"
[2026-02-15 14:33:23.125 -05:00] [INF] [8] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLITE connection pragma command set to:
"PRAGMA locking_mode=NORMAL;
PRAGMA journal_size_limit=134217728;
PRAGMA synchronous=1;
PRAGMA temp_store=2;
"
[2026-02-15 14:33:23.127 -05:00] [INF] [8] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock.
[2026-02-15 14:33:23.140 -05:00] [INF] [8] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service.
[2026-02-15 14:33:23.536 -05:00] [INF] [8] Jellyfin.Server.Migrations.JellyfinMigrationService: There are 5 migrations for stage PreInitialisation.
[2026-02-15 14:33:23.538 -05:00] [INF] [8] InternalCodeMigration: Perform migration "20250420000000_CreateNetworkConfiguration"
[2026-02-15 14:33:23.549 -05:00] [ERR] [8] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']"
""INSERT INTO \"__EFMigrationsHistory\" (\"MigrationId\", \"ProductVersion\")
VALUES ('20250420000000_CreateNetworkConfiguration', '10.11.6.0');"
[2026-02-15 14:33:23.551 -05:00] [FTL] [8] InternalCodeMigration: Error: "SQLite Error 1: 'no such table: __EFMigrationsHistory'."
[2026-02-15 14:33:23.552 -05:00] [ERR] [8] InternalCodeMigration: Migration "20250420000000_CreateNetworkConfiguration" failed
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: __EFMigrationsHistory'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable
1 parameters, CancellationToken cancellationToken)
at Jellyfin.Server.Migrations.JellyfinMigrationService.InternalCodeMigration.PerformAsync(IStartupLogger logger)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
[2026-02-15 14:33:23.560 -05:00] [FTL] [2] Main: Unhandled Exception
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: __EFMigrationsHistory'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable1 parameters, CancellationToken cancellationToken)at Jellyfin.Server.Migrations.JellyfinMigrationService.InternalCodeMigration.PerformAsync(IStartupLogger logger)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.<Main>(String[] args)
