Macos - having same Jellyfin.Server.Migrations.JellyfinMigrationService issue as Linux users #7477

Open
opened 2026-02-07 05:02:57 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @PacoH on GitHub (Oct 21, 2025).

Description of the bug

I installed jellyfin_10.11.0-amd64 because jellyfin_10.10.7-amd64, which had been working perfectly until I tried to scan all libraries yesterday, and newly added folders were not showing up in Jellycon on Kodi.

I ran the new version and launched the Dashboard and when I again tried to scan all libraries, the app hung up at around 68% and I had no choice but to force quit the server.

When I again restarted the server and launched the Dashboard, I got
localhost refused to connect.
ERR_CONNECTION_REFUSED

I tried to run version 10.10.7 but now got the same error.

I tried many 'fixes' for this error involving various caches, specifying the Port Forwarding TCP address, and many more, but nothing worked.

I looked at the log and found many entries for Jellyfin.Server.Migrations.JellyfinMigrationService that indicated problems:

Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations
System.InvalidOperationException: Sequence contains no elements

System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
[2025-10-21 07:43:09.959 -07:00] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
   at Jellyfin.Server.Program.<Main>(String[] args)

Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations System.InvalidOperationException: Sequence contains no elements

So apparently the new version managed to corrupt the database.

How can I recover from this without losing everything I have added over years?

Reproduction steps

Run Jellyfin app.
Launch

What is the current bug behavior?

localhost refused to connect.
ERR_CONNECTION_REFUSED

What is the expected correct behavior?

Dashboard should open in browser.

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

There is no dashboard.

Environment

- OS:
- Linux Kernel:
- Virtualization:
- Clients:
- Browser:
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- GPU Model:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Jellyfin Data Storage:
- Media Storage:
- External Integrations:

Jellyfin logs

[2025-10-21 07:43:08.425 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 07:43:08.766 -07:00] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0"
[2025-10-21 07:43:08.791 -07:00] [INF] [9] Main: Jellyfin version: "10.11.0"
[2025-10-21 07:43:08.793 -07:00] [INF] [9] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"]
[2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"]
[2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64"
[2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Architecture: X64
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: 64-Bit Process: True
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: User Interactive: True
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Processor count: 6
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Program data path: "~/.local/share/jellyfin"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Log directory path: "~/.local/share/jellyfin/log"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Config directory path: "~/.local/share/jellyfin/config"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web"
[2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/"
[2025-10-21 07:43:08.809 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/data"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB".
[2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/log"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "512MB".
[2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/cache"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB".
[2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB".
[2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB".
[2025-10-21 07:43:08.821 -07:00] [INF] [9] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 07:43:08.898 -07:00] [INF] [9] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=~/.local/share/jellyfin/data/jellyfin.db;Cache=Default;Pooling=True"
[2025-10-21 07:43:08.904 -07:00] [INF] [9] 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;
"
[2025-10-21 07:43:08.905 -07:00] [INF] [9] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock.
[2025-10-21 07:43:08.963 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service.
[2025-10-21 07:43:08.972 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Old migration style migration.xml detected. Migrate now.
[2025-10-21 07:43:09.953 -07:00] [FTL] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
[2025-10-21 07:43:09.959 -07:00] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
   at Jellyfin.Server.Program.<Main>(String[] args)
[2025-10-21 09:28:16.397 -07:00] [INF] [1] Main: Jellyfin version: "10.10.7"
[2025-10-21 09:28:16.426 -07:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"]
[2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"]
[2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64"
[2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Architecture: X64
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: 64-Bit Process: True
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: User Interactive: True
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Processor count: 6
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Program data path: "~/.local/share/jellyfin"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Log directory path: "~/.local/share/jellyfin/log"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Config directory path: "~/.local/share/jellyfin/config"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web"
[2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/"
[2025-10-21 09:28:16.540 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 09:28:16.807 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2025-10-21 09:28:16.812 -07:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "21.0.0.0" of "Open Subtitles" 
[2025-10-21 09:28:16.873 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2025-10-21 09:28:16.873 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2025-10-21 09:28:16.874 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "192.168.1.9", "10.2.0.2"]
[2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[2025-10-21 09:28:17.991 -07:00] [ERR] [1] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']"
""SELECT \"u\".\"Id\", \"u\".\"AudioLanguagePreference\", \"u\".\"AuthenticationProviderId\", \"u\".\"CastReceiverId\", \"u\".\"DisplayCollectionsView\", \"u\".\"DisplayMissingEpisodes\", \"u\".\"EnableAutoLogin\", \"u\".\"EnableLocalPassword\", \"u\".\"EnableNextEpisodeAutoPlay\", \"u\".\"EnableUserPreferenceAccess\", \"u\".\"HidePlayedInLatest\", \"u\".\"InternalId\", \"u\".\"InvalidLoginAttemptCount\", \"u\".\"LastActivityDate\", \"u\".\"LastLoginDate\", \"u\".\"LoginAttemptsBeforeLockout\", \"u\".\"MaxActiveSessions\", \"u\".\"MaxParentalAgeRating\", \"u\".\"MustUpdatePassword\", \"u\".\"Password\", \"u\".\"PasswordResetProviderId\", \"u\".\"PlayDefaultAudioTrack\", \"u\".\"RememberAudioSelections\", \"u\".\"RememberSubtitleSelections\", \"u\".\"RemoteClientBitrateLimit\", \"u\".\"RowVersion\", \"u\".\"SubtitleLanguagePreference\", \"u\".\"SubtitleMode\", \"u\".\"SyncPlayAccess\", \"u\".\"Username\", \"i\".\"Id\", \"i\".\"LastModified\", \"i\".\"Path\", \"i\".\"UserId\"
FROM \"Users\" AS \"u\"
LEFT JOIN \"ImageInfos\" AS \"i\" ON \"u\".\"Id\" = \"i\".\"UserId\"
ORDER BY \"u\".\"Id\", \"i\".\"Id\""
[2025-10-21 09:28:17.998 -07:00] [ERR] [1] Microsoft.EntityFrameworkCore.Query: An exception occurred while iterating over the results of a query for context type '"Jellyfin.Server.Implementations.JellyfinDbContext"'."
""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'.
   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.ExecuteDbDataReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext()"
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'.
   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.ExecuteDbDataReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext()
   at Jellyfin.Server.Implementations.Users.UserManager..ctor(IDbContextFactory`1 dbProvider, IEventManager eventManager, INetworkManager networkManager, IApplicationHost appHost, IImageProcessor imageProcessor, ILogger`1 logger, IServerConfigurationManager serverConfigurationManager, IEnumerable`1 passwordResetProviders, IEnumerable`1 authenticationProviders)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Emby.Server.Implementations.ApplicationHost.Resolve[T]()
   at Emby.Server.Implementations.ApplicationHost.InitializeServices()
[2025-10-21 09:28:18.000 -07:00] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'.
   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.ExecuteDbDataReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext()
   at Jellyfin.Server.Implementations.Users.UserManager..ctor(IDbContextFactory`1 dbProvider, IEventManager eventManager, INetworkManager networkManager, IApplicationHost appHost, IImageProcessor imageProcessor, ILogger`1 logger, IServerConfigurationManager serverConfigurationManager, IEnumerable`1 passwordResetProviders, IEnumerable`1 authenticationProviders)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Emby.Server.Implementations.ApplicationHost.Resolve[T]()
   at Emby.Server.Implementations.ApplicationHost.InitializeServices()
   at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2025-10-21 09:28:18.001 -07:00] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[2025-10-21 09:28:18.014 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2025-10-21 09:28:18.014 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "PluginManager"
[2025-10-21 09:30:29.865 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 09:30:30.046 -07:00] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0"
[2025-10-21 09:30:30.068 -07:00] [INF] [9] Main: Jellyfin version: "10.11.0"
[2025-10-21 09:30:30.070 -07:00] [INF] [9] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"]
[2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"]
[2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64"
[2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Architecture: X64
[2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: 64-Bit Process: True
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: User Interactive: True
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Processor count: 6
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Program data path: "~/.local/share/jellyfin"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Log directory path: "~/.local/share/jellyfin/log"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Config directory path: "~/.local/share/jellyfin/config"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web"
[2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/"
[2025-10-21 09:30:30.083 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/data"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB".
[2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/log"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "512MB".
[2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/cache"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB".
[2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB".
[2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB".
[2025-10-21 09:30:30.087 -07:00] [INF] [9] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache"
[2025-10-21 09:30:30.139 -07:00] [INF] [9] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=~/.local/share/jellyfin/data/jellyfin.db;Cache=Default;Pooling=True"
[2025-10-21 09:30:30.145 -07:00] [INF] [9] 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;
"
[2025-10-21 09:30:30.146 -07:00] [INF] [9] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock.
[2025-10-21 09:30:30.172 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service.
[2025-10-21 09:30:30.179 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Old migration style migration.xml detected. Migrate now.
[2025-10-21 09:30:31.079 -07:00] [FTL] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
[2025-10-21 09:30:31.084 -07:00] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths)
   at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
   at Jellyfin.Server.Program.<Main>(String[] args)

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @PacoH on GitHub (Oct 21, 2025). ### Description of the bug I installed `jellyfin_10.11.0-amd64` because `jellyfin_10.10.7-amd64`, which had been working perfectly until I tried to scan all libraries yesterday, and newly added folders were not showing up in Jellycon on Kodi. I ran the new version and launched the Dashboard and when I again tried to scan all libraries, the app hung up at around 68% and I had no choice but to force quit the server. When I again restarted the server and launched the Dashboard, I got `localhost refused to connect.` `ERR_CONNECTION_REFUSED` I tried to run version `10.10.7` but now got the same error. I tried many 'fixes' for this error involving various caches, specifying the Port Forwarding TCP address, and many more, but nothing worked. I looked at the log and found many entries for `Jellyfin.Server.Migrations.JellyfinMigrationService` that indicated problems: ``` Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations System.InvalidOperationException: Sequence contains no elements System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) [2025-10-21 07:43:09.959 -07:00] [FTL] [1] Main: Unhandled Exception System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig) at Jellyfin.Server.Program.StartApp(StartupOptions options) at Jellyfin.Server.Program.<Main>(String[] args) ``` `Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations System.InvalidOperationException: Sequence contains no elements` So apparently the new version managed to corrupt the database. How can I recover from this without losing everything I have added over years? ### Reproduction steps Run Jellyfin app. `Launch` ### What is the current _bug_ behavior? `localhost refused to connect.` `ERR_CONNECTION_REFUSED` ### What is the expected _correct_ behavior? Dashboard should open in browser. ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version There is no dashboard. ### Environment ```markdown - OS: - Linux Kernel: - Virtualization: - Clients: - Browser: - FFmpeg Version: - Playback Method: - Hardware Acceleration: - GPU Model: - Plugins: - Reverse Proxy: - Base URL: - Networking: - Jellyfin Data Storage: - Media Storage: - External Integrations: ``` ### Jellyfin logs ```shell [2025-10-21 07:43:08.425 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache" [2025-10-21 07:43:08.766 -07:00] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0" [2025-10-21 07:43:08.791 -07:00] [INF] [9] Main: Jellyfin version: "10.11.0" [2025-10-21 07:43:08.793 -07:00] [INF] [9] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"] [2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"] [2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64" [2025-10-21 07:43:08.795 -07:00] [INF] [9] Main: Architecture: X64 [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: 64-Bit Process: True [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: User Interactive: True [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Processor count: 6 [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Program data path: "~/.local/share/jellyfin" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Log directory path: "~/.local/share/jellyfin/log" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Config directory path: "~/.local/share/jellyfin/config" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Cache path: "~/.local/share/jellyfin/cache" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web" [2025-10-21 07:43:08.796 -07:00] [INF] [9] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/" [2025-10-21 07:43:08.809 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/data"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB". [2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/log"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "512MB". [2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/cache"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB". [2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB". [2025-10-21 07:43:08.810 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"` (Fixed) successfully checked with "863.4GB" free which is over the minimum of "2GB". [2025-10-21 07:43:08.821 -07:00] [INF] [9] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache" [2025-10-21 07:43:08.898 -07:00] [INF] [9] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=~/.local/share/jellyfin/data/jellyfin.db;Cache=Default;Pooling=True" [2025-10-21 07:43:08.904 -07:00] [INF] [9] 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; " [2025-10-21 07:43:08.905 -07:00] [INF] [9] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock. [2025-10-21 07:43:08.963 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service. [2025-10-21 07:43:08.972 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Old migration style migration.xml detected. Migrate now. [2025-10-21 07:43:09.953 -07:00] [FTL] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) [2025-10-21 07:43:09.959 -07:00] [FTL] [1] Main: Unhandled Exception System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig) at Jellyfin.Server.Program.StartApp(StartupOptions options) at Jellyfin.Server.Program.<Main>(String[] args) [2025-10-21 09:28:16.397 -07:00] [INF] [1] Main: Jellyfin version: "10.10.7" [2025-10-21 09:28:16.426 -07:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"] [2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"] [2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64" [2025-10-21 09:28:16.427 -07:00] [INF] [1] Main: Architecture: X64 [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: 64-Bit Process: True [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: User Interactive: True [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Processor count: 6 [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Program data path: "~/.local/share/jellyfin" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Log directory path: "~/.local/share/jellyfin/log" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Config directory path: "~/.local/share/jellyfin/config" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Cache path: "~/.local/share/jellyfin/cache" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web" [2025-10-21 09:28:16.428 -07:00] [INF] [1] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/" [2025-10-21 09:28:16.540 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache" [2025-10-21 09:28:16.807 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [2025-10-21 09:28:16.812 -07:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "21.0.0.0" of "Open Subtitles" [2025-10-21 09:28:16.873 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [2025-10-21 09:28:16.873 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: [] [2025-10-21 09:28:16.874 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"] [2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "192.168.1.9", "10.2.0.2"] [2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"] [2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist" [2025-10-21 09:28:16.875 -07:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: [] [2025-10-21 09:28:17.991 -07:00] [ERR] [1] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=[""], CommandType='Text', CommandTimeout='30']" ""SELECT \"u\".\"Id\", \"u\".\"AudioLanguagePreference\", \"u\".\"AuthenticationProviderId\", \"u\".\"CastReceiverId\", \"u\".\"DisplayCollectionsView\", \"u\".\"DisplayMissingEpisodes\", \"u\".\"EnableAutoLogin\", \"u\".\"EnableLocalPassword\", \"u\".\"EnableNextEpisodeAutoPlay\", \"u\".\"EnableUserPreferenceAccess\", \"u\".\"HidePlayedInLatest\", \"u\".\"InternalId\", \"u\".\"InvalidLoginAttemptCount\", \"u\".\"LastActivityDate\", \"u\".\"LastLoginDate\", \"u\".\"LoginAttemptsBeforeLockout\", \"u\".\"MaxActiveSessions\", \"u\".\"MaxParentalAgeRating\", \"u\".\"MustUpdatePassword\", \"u\".\"Password\", \"u\".\"PasswordResetProviderId\", \"u\".\"PlayDefaultAudioTrack\", \"u\".\"RememberAudioSelections\", \"u\".\"RememberSubtitleSelections\", \"u\".\"RemoteClientBitrateLimit\", \"u\".\"RowVersion\", \"u\".\"SubtitleLanguagePreference\", \"u\".\"SubtitleMode\", \"u\".\"SyncPlayAccess\", \"u\".\"Username\", \"i\".\"Id\", \"i\".\"LastModified\", \"i\".\"Path\", \"i\".\"UserId\" FROM \"Users\" AS \"u\" LEFT JOIN \"ImageInfos\" AS \"i\" ON \"u\".\"Id\" = \"i\".\"UserId\" ORDER BY \"u\".\"Id\", \"i\".\"Id\"" [2025-10-21 09:28:17.998 -07:00] [ERR] [1] Microsoft.EntityFrameworkCore.Query: An exception occurred while iterating over the results of a query for context type '"Jellyfin.Server.Implementations.JellyfinDbContext"'." ""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'. 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.ExecuteDbDataReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext()" Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'. 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.ExecuteDbDataReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext() at Jellyfin.Server.Implementations.Users.UserManager..ctor(IDbContextFactory`1 dbProvider, IEventManager eventManager, INetworkManager networkManager, IApplicationHost appHost, IImageProcessor imageProcessor, ILogger`1 logger, IServerConfigurationManager serverConfigurationManager, IEnumerable`1 passwordResetProviders, IEnumerable`1 authenticationProviders) at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier) at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Emby.Server.Implementations.ApplicationHost.Resolve[T]() at Emby.Server.Implementations.ApplicationHost.InitializeServices() [2025-10-21 09:28:18.000 -07:00] [FTL] [1] Main: Error while starting server Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such column: u.MaxParentalAgeRating'. 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.ExecuteDbDataReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.<>c.<MoveNext>b__22_0(DbContext _, Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.Enumerator.MoveNext() at Jellyfin.Server.Implementations.Users.UserManager..ctor(IDbContextFactory`1 dbProvider, IEventManager eventManager, INetworkManager networkManager, IApplicationHost appHost, IImageProcessor imageProcessor, ILogger`1 logger, IServerConfigurationManager serverConfigurationManager, IEnumerable`1 passwordResetProviders, IEnumerable`1 authenticationProviders) at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(ServiceIdentifier serviceIdentifier) at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(ServiceIdentifier serviceIdentifier, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Emby.Server.Implementations.ApplicationHost.Resolve[T]() at Emby.Server.Implementations.ApplicationHost.InitializeServices() at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig) [2025-10-21 09:28:18.001 -07:00] [INF] [1] Main: Running query planner optimizations in the database... This might take a while [2025-10-21 09:28:18.014 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost" [2025-10-21 09:28:18.014 -07:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "PluginManager" [2025-10-21 09:30:29.865 -07:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache" [2025-10-21 09:30:30.046 -07:00] [INF] [9] Jellyfin.Server.ServerSetupApp.SetupServer: Kestrel is listening on "0.0.0.0" [2025-10-21 09:30:30.068 -07:00] [INF] [9] Main: Jellyfin version: "10.11.0" [2025-10-21 09:30:30.070 -07:00] [INF] [9] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, ~/.local/share/jellyfin/log]"] [2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "~/.local/share/jellyfin"] [2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Operating system: "Darwin 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64" [2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: Architecture: X64 [2025-10-21 09:30:30.072 -07:00] [INF] [9] Main: 64-Bit Process: True [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: User Interactive: True [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Processor count: 6 [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Program data path: "~/.local/share/jellyfin" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Log directory path: "~/.local/share/jellyfin/log" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Config directory path: "~/.local/share/jellyfin/config" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Cache path: "~/.local/share/jellyfin/cache" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Temp directory path: "/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web" [2025-10-21 09:30:30.073 -07:00] [INF] [9] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/" [2025-10-21 09:30:30.083 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/data"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB". [2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/log"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "512MB". [2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin/cache"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB". [2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"~/.local/share/jellyfin"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB". [2025-10-21 09:30:30.084 -07:00] [INF] [9] Jellyfin.Server.Startup: Storage path `"/var/folders/3p/2sx3fly12dv2rfy28mhg0gkh0000gp/T/jellyfin"` (Fixed) successfully checked with "863.7GB" free which is over the minimum of "2GB". [2025-10-21 09:30:30.087 -07:00] [INF] [9] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "~/.local/share/jellyfin/cache" [2025-10-21 09:30:30.139 -07:00] [INF] [9] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: SQLite connection string: "Data Source=~/.local/share/jellyfin/data/jellyfin.db;Cache=Default;Pooling=True" [2025-10-21 09:30:30.145 -07:00] [INF] [9] 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; " [2025-10-21 09:30:30.146 -07:00] [INF] [9] Jellyfin.Database.Implementations.Locking.NoLockBehavior: The database locking mode has been set to: NoLock. [2025-10-21 09:30:30.172 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Initialise Migration service. [2025-10-21 09:30:30.179 -07:00] [INF] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Old migration style migration.xml detected. Migrate now. [2025-10-21 09:30:31.079 -07:00] [FTL] [9] Jellyfin.Server.Migrations.JellyfinMigrationService: Failed to apply migrations System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) [2025-10-21 09:30:31.084 -07:00] [FTL] [1] Main: Unhandled Exception System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Migrations.JellyfinMigrationService.CheckFirstTimeRunOrMigration(IApplicationPaths appPaths) at Jellyfin.Server.Program.ApplyStartupMigrationAsync(ServerApplicationPaths appPaths, IConfiguration startupConfig) at Jellyfin.Server.Program.StartApp(StartupOptions options) at Jellyfin.Server.Program.<Main>(String[] args) ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bug label 2026-02-07 05:02:57 +03:00
Author
Owner

@gnattu commented on GitHub (Oct 21, 2025):

I'm sorry but what you did probably already killed the db and if you did not do a backup, you have to remove all jellyfin data and start fresh

@gnattu commented on GitHub (Oct 21, 2025): I'm sorry but what you did probably already killed the db and if you did not do a backup, you have to remove all jellyfin data and start fresh
Author
Owner

@theguymadmax commented on GitHub (Oct 21, 2025):

You can try this fist and see if you have any luck. In you Jellyfin data folder there should be folder call SQLiteBackups with (date)__jellyfin.db file. Rename it to jellyfin.db and replace the on in the data folder. Also in the data folder there will be a backup of the library.db called library.db.old. Also copy that and reaname to library.db to replace the one in the main folder. Then in your config folder find the migrations.xml.backup and copy and reaname to migrations.xml. to replace the one in the current config folder.

Then retry starting 10.10.7, no guarantee it's going to work, but you can give it a try. depending on how far along you were in the migration process it might work.

Key lesson, always have a backup.

@theguymadmax commented on GitHub (Oct 21, 2025): You can try this fist and see if you have any luck. In you Jellyfin data folder there should be folder call SQLiteBackups with (date)__jellyfin.db file. Rename it to jellyfin.db and replace the on in the data folder. Also in the data folder there will be a backup of the library.db called library.db.old. Also copy that and reaname to library.db to replace the one in the main folder. Then in your config folder find the migrations.xml.backup and copy and reaname to migrations.xml. to replace the one in the current config folder. Then retry starting 10.10.7, no guarantee it's going to work, but you can give it a try. depending on how far along you were in the migration process it might work. Key lesson, always have a backup.
Author
Owner

@rama31244 commented on GitHub (Oct 22, 2025):

I'm having the same error, how do i restore from a backup?

@rama31244 commented on GitHub (Oct 22, 2025): I'm having the same error, how do i restore from a backup?
Author
Owner

@PacoH commented on GitHub (Oct 22, 2025):

Oh, don't worry, I looked for any db backups. There weren't any. Jellyfin is supposed to automatically backup data, isn't it? Also, why wouldn't a new version automatically backup the db before potentially trouncing it? A simple precaution that would prevent such a disaster.

I backed up and deleted ~/.local/sharejellyfin and ~/.config/jellyfin and started the app and added just two current folders.

After a lot of hassles with the primitive Kodi Jellycon "addon," I finally was able to see and play videos from the two libraries. It is now taking forever to finish re-adding the huge libraries but at least it is working.

@PacoH commented on GitHub (Oct 22, 2025): Oh, don't worry, I looked for any db backups. There weren't any. Jellyfin is supposed to automatically backup data, isn't it? Also, why wouldn't a new version automatically backup the db before potentially trouncing it? A simple precaution that would prevent such a disaster. I backed up and deleted `~/.local/sharejellyfin` and `~/.config/jellyfin` and started the app and added just two current folders. After a lot of hassles with the primitive Kodi Jellycon "addon," I finally was able to see and play videos from the two libraries. It is now taking forever to finish re-adding the huge libraries but at least it is working.
Author
Owner

@PacoH commented on GitHub (Oct 22, 2025):

I'm having the same error, how do i restore from a backup?

Heh, if you're lucky enough to have a backup (I wasn't that lucky), it is straightforward:

Backup and Restore | Jellyfin

@PacoH commented on GitHub (Oct 22, 2025): > I'm having the same error, how do i restore from a backup? Heh, if you're lucky enough to have a backup (I wasn't that lucky), it is straightforward: [Backup and Restore | Jellyfin](https://jellyfin.org/docs/general/administration/backup-and-restore/)
Author
Owner

@JPVenson commented on GitHub (Oct 22, 2025):

Read this please: https://notes.jellyfin.org/ey1aBTshRZGM46PzkNaF0w?view#

@JPVenson commented on GitHub (Oct 22, 2025): Read this please: https://notes.jellyfin.org/ey1aBTshRZGM46PzkNaF0w?view#
Author
Owner

@Koumbaya commented on GitHub (Oct 22, 2025):

I'm not sure if I should create another issue, but I'm having the same symptoms, however I had 10.11.0 running for like 12h without any problems (successful scan of the library etc) before that sudden migration issue, I'm not sure what caused that (or even the restart)
edit: okay, super weird but: deleted /config, restored the backup, put 10.10.7 on the docker-compose -> started fine. Then stopped docker, put 10.11.0 (to re-do the migration I guess) -> booted instantly to a fixed (AFAICS) 10.11.0. welp.

@Koumbaya commented on GitHub (Oct 22, 2025): I'm not sure if I should create another issue, but I'm having the same symptoms, however I had 10.11.0 running for like 12h without any problems (successful scan of the library etc) before that sudden migration issue, I'm not sure what caused that (or even the restart) edit: okay, super weird but: deleted /config, restored the backup, put 10.10.7 on the docker-compose -> started fine. Then stopped docker, put 10.11.0 (to re-do the migration I guess) -> booted instantly to a fixed (AFAICS) 10.11.0. welp.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#7477