2026-09-22, 10:13 AM
(This post was last modified: 2026-09-22, 03:48 PM by TheDreadPirate. Edited 1 time in total.)
jellyfin12.1 new installing on debian13 amd64 successful but failure on initializing, the log shows an error on the migration of database:
Code:
[2026-09-22 17:55:34.734 +08:00] [INF] Architecture: X64
[2026-09-22 17:55:34.735 +08:00] [INF] 64-Bit Process: True
[2026-09-22 17:55:34.735 +08:00] [INF] User Interactive: True
[2026-09-22 17:55:34.735 +08:00] [INF] Processor count: 4
[2026-09-22 17:55:34.735 +08:00] [INF] Program data path: "/var/lib/jellyfin"
[2026-09-22 17:55:34.735 +08:00] [INF] Log directory path: "/var/log/jellyfin"
[2026-09-22 17:55:34.736 +08:00] [INF] Config directory path: "/etc/jellyfin"
[2026-09-22 17:55:34.736 +08:00] [INF] Cache path: "/var/cache/jellyfin"
[2026-09-22 17:55:34.736 +08:00] [INF] Temp directory path: "/tmp/jellyfin"
[2026-09-22 17:55:34.736 +08:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2026-09-22 17:55:34.736 +08:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2026-09-22 17:55:34.742 +08:00] [INF] Storage path `"/var/lib/jellyfin/data"` (Fixed) successfully checked with "223.9GiB" free which is over the minimum of "2GiB".
[2026-09-22 17:55:34.743 +08:00] [INF] Storage path `"/var/cache/jellyfin"` (Fixed) successfully checked with "223.9GiB" free which is over the minimum of "2GiB".
[2026-09-22 17:55:34.743 +08:00] [INF] Storage path `"/var/lib/jellyfin"` (Fixed) successfully checked with "223.9GiB" free which is over the minimum of "2GiB".
[2026-09-22 17:55:34.749 +08:00] [INF] Setting cache path: "/var/cache/jellyfin"
[2026-09-22 17:55:34.849 +08:00] [INF] SQLite connection string: "Data Source=/var/lib/jellyfin/data/jellyfin.db;Cache=Private;Default Timeout=60;Pooling=True"
[2026-09-22 17:55:34.860 +08:00] [INF] SQLITE connection pragma command set to:
"PRAGMA locking_mode=NORMAL;
PRAGMA journal_size_limit=134217728;
PRAGMA synchronous=1;
PRAGMA temp_store=2;
"
[2026-09-22 17:55:34.862 +08:00] [INF] The database locking mode has been set to: NoLock.
[2026-09-22 17:55:34.923 +08:00] [INF] Initialise Migration service.
[2026-09-22 17:55:36.766 +08:00] [INF] There are 5 migrations for stage PreInitialisation.
[2026-09-22 17:55:36.768 +08:00] [INF] Perform migration "20250420000000_CreateNetworkConfiguration"
[2026-09-22 17:55:36.809 +08:00] [ERR] Failed executing DbCommand ("3"ms) [Parameters=[""], CommandType='Text', CommandTimeout='60']"
""INSERT INTO \"__EFMigrationsHistory\" (\"MigrationId\", \"ProductVersion\")
VALUES ('20250420000000_CreateNetworkConfiguration', '12.1.0.0');"
[2026-09-22 17:55:36.810 +08:00] [FTL] Error: "SQLite Error 1: 'no such table: __EFMigrationsHistory'."
[2026-09-22 17:55:36.810 +08:00] [ERR] 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-09-22 17:55:36.828 +08:00] [FTL] 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, 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)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig, StartupOptions startupOptions)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.<Main>(String[] args)


