2026-06-21, 08:30 PM
(2026-06-21, 06:13 PM)TheDreadPirate Wrote: Can you try restoring the backup and just going straight to 10.11.11 without first starting in 10.11.5? If you haven't done that already. It LOOKS like a migration wasn't applied correctly or was interrupted, but I don't know if you stepped back and forth between versions or something. Some of the migrations take several minutes so try to be patient when upgrading.
I tried on a fresh config. I remade the server as 10.11.11, and moved the backup into the
config/data/backups directory. I started the server, and went to restore from my backup, and I got the same error.
[*]6/21/2026 8:23:51 PM +00:00 - Error while starting server
[*]6/21/2026 8:23:50 PM +00:00 - Migration "20260522092303_AddNormalizedUsername" failed
[*]6/21/2026 8:23:50 PM +00:00 - Error: "SQLite Error 1: 'duplicate column name: NormalizedUsername'."
[*]6/21/2026 8:23:50 PM +00:00 - Failed executing DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']" ""ALTER TABLE \"Users\" ADD \"NormalizedUsername\" TEXT NOT NULL DEFAULT '';"
[*]6/21/2026 8:23:50 PM +00:00 - Migrate stage CoreInitialisation.- 6/21/2026 8:23:50 PM +00:00 - 20260522092303_AddNormalizedUsername
- 6/21/2026 8:23:50 PM +00:00 - Attempt to rollback JellyfinDb.
- 6/21/2026 8:23:50 PM +00:00 - Migration 20260522092303_AddNormalizedUsername failed
- 6/21/2026 8:23:50 PM +00:00 - Error: SQLite Error 1: 'duplicate column name: NormalizedUsername'.
- 6/21/2026 8:23:50 PM +00:00 - Perform migration 20260522092303_AddNormalizedUsername
- 6/21/2026 8:23:50 PM +00:00 - There are 1 migrations for stage CoreInitialisation.
[*]and from the more full logs:
[*][2026-06-21 20:23:50.364 +00:00] [INF] [21] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock.
[2026-06-21 20:23:50.366 +00:00] [INF] [21] Main: Prepare system for possible migrations
[2026-06-21 20:23:50.373 +00:00] [INF] [21] Main: A migration will attempt to modify the jellyfin.db, will attempt to backup the file now.
[2026-06-21 20:23:50.449 +00:00] [INF] [21] Main: Jellyfin database has been backed up as "20260621082350"
[2026-06-21 20:23:50.451 +00:00] [INF] [21] Jellyfin.Server.Migrations.JellyfinMigrationService: There are 1 migrations for stage CoreInitialisation.
[2026-06-21 20:23:50.451 +00:00] [INF] [21] InternalDatabaseMigration: Perform migration "20260522092303_AddNormalizedUsername"
[2026-06-21 20:23:50.588 +00:00] [ERR] [21] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("0"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']"
""ALTER TABLE \"Users\" ADD \"NormalizedUsername\" TEXT NOT NULL DEFAULT '';"
[2026-06-21 20:23:50.589 +00:00] [FTL] [21] InternalDatabaseMigration: Error: "SQLite Error 1: 'duplicate column name: NormalizedUsername'."
[2026-06-21 20:23:50.589 +00:00] [ERR] [21] InternalDatabaseMigration: Migration "20260522092303_AddNormalizedUsername" failed
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'duplicate column name: NormalizedUsername'.
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 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.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<>c.<<MigrateAsync>b__22_1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at Jellyfin.Server.Migrations.JellyfinMigrationService.InternalDatabaseMigration.PerformAsync(IStartupLogger logger)
at Jellyfin.Server.Migrations.JellyfinMigrationService.MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)
[2026-06-21 20:23:50.594 +00:00] [INF] [21] InternalDatabaseMigration: Attempt to rollback JellyfinDb.
[2026-06-21 20:23:51.266 +00:00] [FTL] [21] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'duplicate column name: NormalizedUsername'.
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 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.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IReadOnlyList1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateImplementationAsync(DbContext context, String targetMigration, MigrationExecutionState state, Boolean useTransaction, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.<>c.<<MigrateAsync>b__22_1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at Jellyfin.Server.Migrations.JellyfinMigrationService.InternalDatabaseMigration.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.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2026-06-21 20:24:07.662 +00:00] [ERR] [26] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0396ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:24:37.765 +00:00] [ERR] [17] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0092ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:25:07.857 +00:00] [ERR] [21] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0169ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:25:07.876 +00:00] [ERR] [12] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HNMFQAFUP1D3"", Request id ""0HNMFQAFUP1D3:00000001"": An unhandled exception was thrown by the application.
System.NullReferenceException: Object reference not set to an instance of an object.
at Morestachio.Formatter.Framework.MorestachioFormatterService.Execute(FormatterCache formatter, Object sourceValue, ParserOptions parserOptions, FormatterArgumentType[] args)
at Morestachio.Framework.Expression.MorestachioOperatorExpression.<>c__DisplayClass32_0.<<Compile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.IfExpressionScopeDocumentItem.<>c__DisplayClass15_0.<<Compile>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.DocumentCompiler.<>c__DisplayClass2_0.<<CompileItemsAndChildren>b__2>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.ImportPartialDocumentItem.<>c__DisplayClass11_1.<<Compile>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.ImportPartialDocumentItem.CoreAction(ContextObject context, ScopeData scopeData, Func3 obtainPartialFromStore, String partialName)at Morestachio.Document.Items.ImportPartialDocumentItem.<>c__DisplayClass11_0.<<Compile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.DocumentCompiler.<>c__DisplayClass2_0.<<CompileItemsAndChildren>b__2>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.ForEachDocumentItem.<>c__DisplayClass7_1.<<Compile>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.ForEachDocumentItem.LoopEnumerable(IByteCounterStream outputStream, ContextObject loopContext, ScopeData scopeData, Func
2 onItem, IEnumerable value)
at Morestachio.Document.Items.ForEachDocumentItem.CoreAction(IByteCounterStream outputStream, ContextObject context, ScopeData scopeData, Func2 onItem)at Morestachio.Document.Items.ForEachDocumentItem.<>c__DisplayClass7_0.<<Compile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.DocumentCompiler.<>c__DisplayClass2_0.<<CompileItemsAndChildren>b__2>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.IfExpressionScopeDocumentItem.<>c__DisplayClass15_0.<<Compile>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.DocumentCompiler.<>c__DisplayClass2_0.<<CompileItemsAndChildren>b__2>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.Items.MorestachioDocument.<>c__DisplayClass11_0.<<Compile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Document.DocumentCompiler.<>c__DisplayClass0_0.<<Compile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Morestachio.Rendering.CompiledRenderer.<RenderAsync>b__8_0(IByteCounterStream stream, ContextObject context, ScopeData scopeData)
at Morestachio.Rendering.Renderer.Render(Object data, CancellationToken token, CompilationAsync executer, IByteCounterStream targetStream)
at Morestachio.Rendering.CompiledRenderer.RenderAsync(Object data, CancellationToken cancellationToken, IByteCounterStream targetStream)
at Jellyfin.Server.ServerSetupApp.SetupServer.<>c__DisplayClass19_0.<<RunAsync>b__9>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
[2026-06-21 20:25:37.957 +00:00] [ERR] [28] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.015ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:26:08.056 +00:00] [ERR] [3] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0137ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:26:38.126 +00:00] [ERR] [32] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.013ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:27:08.216 +00:00] [ERR] [3] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0093ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:27:38.318 +00:00] [ERR] [35] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0131ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:28:08.403 +00:00] [ERR] [33] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.0108ms with message '"Server is could not complete startup. Check logs."'
[2026-06-21 20:28:38.493 +00:00] [ERR] [38] Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService: Health check "StartupCheck" with status Unhealthy completed after 0.007ms with message '"Server is could not complete startup. Check logs."'

