• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification Removing Album Broke Music Discovery

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Removing Album Broke Music Discovery

    Yodamann
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2026 Feb
    Reputation: 0
    #11
    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(IReadOnlyList
    1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList
    1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IReadOnlyList
    1 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(IReadOnlyList
    1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteAsync(IReadOnlyList
    1 migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, Boolean beginTransaction, Boolean commitTransaction, Nullable1 isolationLevel, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IReadOnlyList
    1 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, Func
    3 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, Func2 onItem, IEnumerable value)
      at Morestachio.Document.Items.ForEachDocumentItem.CoreAction(IByteCounterStream outputStream, ContextObject context, ScopeData scopeData, Func
    2 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."'
    theguymadmax
    Offline

    Team Member

    Posts: 1,632
    Threads: 1
    Joined: 2024 Jun
    Reputation: 96
    #12
    2026-06-21, 08:46 PM
    Backups are only meant to be run on the same version you made the backup on. So if you made the backup on 10.11.5. Reinstall 10.11.5 and then restore from backup. Then you can upgrade from 10.11.5 to the latest version.
    Yodamann
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2026 Feb
    Reputation: 0
    #13
    2026-06-21, 11:33 PM
    (2026-06-21, 08:46 PM)theguymadmax Wrote: Backups are only meant to be run on the same version you made the backup on. So if you made the backup on 10.11.5. Reinstall 10.11.5 and then restore from backup. Then you can upgrade from 10.11.5 to the latest version.

    I tried that, and got the same error. I also tried stepping through the in-between versions. It stopped working at 10.11.10.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,667
    Threads: 11
    Joined: 2023 Jun
    Reputation: 473
    Country:United States
    #14
    2026-06-22, 05:46 PM
    Can you find the jellyfin logs from when you were stepping through the upgrades and share them via pastebin? If they are too large, maybe zip them and attach to a forum post?
    Jellyfin 10.11.11 (Docker)
    Debian 13 w/Xanmod amd64v3 LTS kernel
    AMD Ryzen 5500 w/32GB DDR4
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    ZFS Storage pool
        vdev1 - 6x WD Red Pro 6TB CMR in RAIDZ1
        vdev2 - 3x WD Red Pro 18TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Yodamann
    Offline

    Junior Member

    Posts: 10
    Threads: 2
    Joined: 2026 Feb
    Reputation: 0
    #15
    2026-07-02, 02:32 AM
    I created a new backup, and this time the migration worked! I still have the bad backup, and if you are interested in the log of that, I'd be happy to generate the logs from that migration if they'd be of use to the project.
    theguymadmax
    Offline

    Team Member

    Posts: 1,632
    Threads: 1
    Joined: 2024 Jun
    Reputation: 96
    #16
    2026-07-02, 05:21 AM
    Glad it works. Sharing your logs won't be necessary.
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode