[10.7 unstable] Failure during the migration of DisplayPreferences database #2255

Closed
opened 2025-12-21 20:20:48 +01:00 by backuprepo · 21 comments
Owner

Originally created by @ferferga on GitHub (Nov 10, 2020).

System (please complete the following information):

  • OS: Docker
  • Virtualization: [e.g. Docker, KVM, LXC]
  • Clients: [Browser, Android, Fire Stick, etc.]
  • Browser: [e.g. Firefox 72, Chrome 80, Safari 13]
  • Jellyfin Version: 20201110.2-unstable 10.7
  • Playback: [Direct Play, Remux, Direct Stream, Transcode]
  • Installed Plugins: [e.g. none, Fanart, Anime, etc.]
  • Reverse Proxy: [e.g. none, nginx, apache, etc.]
  • Base URL: [e.g. none, yes: /example]
  • Networking: [e.g. Host, Bridge/NAT]
  • Storage: [e.g. local, NFS, cloud]

To Reproduce

  1. Upgrade from stable to unstable

Logs

[2020-11-10 02:11:10.730 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"'
[2020-11-10 02:11:11.883 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"'
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'FOREIGN KEY constraint failed'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Implementations.JellyfinDb.SaveChanges()
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-11-10 02:11:11.885 +00:00] [FTL] [1] Main: Error while starting server.
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'FOREIGN KEY constraint failed'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Implementations.JellyfinDb.SaveChanges()
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-11-10 02:11:11.890 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2020-11-10 02:11:11.898 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV"
[2020-11-10 02:11:11.903 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down
Originally created by @ferferga on GitHub (Nov 10, 2020). **System (please complete the following information):** - OS: Docker - Virtualization: [e.g. Docker, KVM, LXC] - Clients: [Browser, Android, Fire Stick, etc.] - Browser: [e.g. Firefox 72, Chrome 80, Safari 13] - Jellyfin Version: 20201110.2-unstable 10.7 - Playback: [Direct Play, Remux, Direct Stream, Transcode] - Installed Plugins: [e.g. none, Fanart, Anime, etc.] - Reverse Proxy: [e.g. none, nginx, apache, etc.] - Base URL: [e.g. none, yes: /example] - Networking: [e.g. Host, Bridge/NAT] - Storage: [e.g. local, NFS, cloud] **To Reproduce** 1. Upgrade from stable to unstable **Logs** ``` [2020-11-10 02:11:10.730 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"' [2020-11-10 02:11:11.883 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"' Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'FOREIGN KEY constraint failed'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Implementations.JellyfinDb.SaveChanges() at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-11-10 02:11:11.885 +00:00] [FTL] [1] Main: Error while starting server. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'FOREIGN KEY constraint failed'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Implementations.JellyfinDb.SaveChanges() at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-11-10 02:11:11.890 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost" [2020-11-10 02:11:11.898 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV" [2020-11-10 02:11:11.903 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down ```
backuprepo 2025-12-21 20:20:48 +01:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@QuaiGoner commented on GitHub (Dec 6, 2020):

Issue still persist with updating from 10.6.4 to 10.7.0 Rc-1

@QuaiGoner commented on GitHub (Dec 6, 2020): Issue still persist with updating from 10.6.4 to 10.7.0 Rc-1
Author
Owner

@ferferga commented on GitHub (Dec 6, 2020):

@QuaiGoner Are you sure the stack trace is exactly the same? Can you paste yours?

Maybe are you confused with #4634 ?

@ferferga commented on GitHub (Dec 6, 2020): @QuaiGoner Are you sure the stack trace is exactly the same? Can you paste yours? Maybe are you confused with #4634 ?
Author
Owner

@linetrimmer commented on GitHub (Dec 17, 2020):

I think I'm running into this error (or a similar one) after trying to update from 10.6.4 to 10.7.0 rc1. I use the linuxserver docker image, and I get the following error after switching to the jellyfin/jellyfin:stable-rc image (and updating the docker environment variables). I also tried the linuxserver/jellyfin:nightly image, but I still get the error.

[00:03:15] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'MigrateDisplayPreferencesDatabase'
[00:03:15] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb: User with ID 97324e44-dd17-4ba0-89d4-a82e3df66f49 does not exist in the database, skipping migration.
[00:03:15] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb: User with ID b0749b39-4489-46aa-a445-0ea83fdcffed does not exist in the database, skipping migration.
[00:03:15] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateDisplayPreferencesDatabase'
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.ItemId, DisplayPreferences.Client'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
[00:03:15] [FTL] [1] Main: Error while starting server.
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.ItemId, DisplayPreferences.Client'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[00:03:15] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[00:03:15] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV
[00:03:15] [INF] [2] Main: Received a SIGTERM signal, shutting down
@linetrimmer commented on GitHub (Dec 17, 2020): I think I'm running into this error (or a similar one) after trying to update from 10.6.4 to 10.7.0 rc1. I use the linuxserver docker image, and I get the following error after switching to the jellyfin/jellyfin:stable-rc image (and updating the docker environment variables). I also tried the linuxserver/jellyfin:nightly image, but I still get the error. ``` [00:03:15] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'MigrateDisplayPreferencesDatabase' [00:03:15] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb: User with ID 97324e44-dd17-4ba0-89d4-a82e3df66f49 does not exist in the database, skipping migration. [00:03:15] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb: User with ID b0749b39-4489-46aa-a445-0ea83fdcffed does not exist in the database, skipping migration. [00:03:15] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateDisplayPreferencesDatabase' Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.ItemId, DisplayPreferences.Client'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) [00:03:15] [FTL] [1] Main: Error while starting server. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.ItemId, DisplayPreferences.Client'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [00:03:15] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost [00:03:15] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV [00:03:15] [INF] [2] Main: Received a SIGTERM signal, shutting down ```
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

I'm still seeing this error when migrating from 1.6.4 to 1.7.0-rc1 and unstable on docker. The fix should be in the unstable build right?

[2020-12-27 12:39:36.520 +00:00] [INF] [1] Main: Jellyfin version: "10.7.0"
[2020-12-27 12:39:36.547 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_DATA_DIR, /config]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_MEDIA_DIR, /media]"]
[2020-12-27 12:39:36.551 +00:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[2020-12-27 12:39:36.553 +00:00] [INF] [1] Main: Operating system: "Linux"
[2020-12-27 12:39:36.553 +00:00] [INF] [1] Main: Architecture: X64
[2020-12-27 12:39:36.554 +00:00] [INF] [1] Main: 64-Bit Process: True
[2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: User Interactive: True
[2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Processor count: 32
[2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Program data path: "/config"
[2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web"
[2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Application directory: "/jellyfin/"
[2020-12-27 12:39:36.880 +00:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache"
[2020-12-27 12:39:36.957 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : "[192.168.179.0/24,127.0.0.1/32]"
[2020-12-27 12:39:36.957 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : "[]"
[2020-12-27 12:39:36.958 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: "[192.168.179.0/24,127.0.0.1/32]"
[2020-12-27 12:39:36.959 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: "[]"
[2020-12-27 12:39:36.960 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: "[]"
[2020-12-27 12:39:36.974 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "OMDb" "10.7.0.0"
[2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "MusicBrainz" "10.7.0.0"
[2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "AudioDB" "10.7.0.0"
[2020-12-27 12:39:52.876 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"'
[2020-12-27 12:39:53.458 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"'
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: CustomItemDisplayPreferences.UserId, CustomItemDisplayPreferences.ItemId, CustomItemDisplayPreferences.Client, CustomItemDisplayPreferences.Key'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-12-27 12:39:53.550 +00:00] [FTL] [1] Main: Error while starting server.
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: CustomItemDisplayPreferences.UserId, CustomItemDisplayPreferences.ItemId, CustomItemDisplayPreferences.Client, CustomItemDisplayPreferences.Key'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-12-27 12:39:53.553 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2020-12-27 12:39:53.554 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV"
[2020-12-27 12:39:53.559 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down
@ggogel commented on GitHub (Dec 27, 2020): I'm still seeing this error when migrating from 1.6.4 to 1.7.0-rc1 and unstable on docker. The fix should be in the unstable build right? ``` [2020-12-27 12:39:36.520 +00:00] [INF] [1] Main: Jellyfin version: "10.7.0" [2020-12-27 12:39:36.547 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_DATA_DIR, /config]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_MEDIA_DIR, /media]"] [2020-12-27 12:39:36.551 +00:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"] [2020-12-27 12:39:36.553 +00:00] [INF] [1] Main: Operating system: "Linux" [2020-12-27 12:39:36.553 +00:00] [INF] [1] Main: Architecture: X64 [2020-12-27 12:39:36.554 +00:00] [INF] [1] Main: 64-Bit Process: True [2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: User Interactive: True [2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Processor count: 32 [2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Program data path: "/config" [2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web" [2020-12-27 12:39:36.555 +00:00] [INF] [1] Main: Application directory: "/jellyfin/" [2020-12-27 12:39:36.880 +00:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache" [2020-12-27 12:39:36.957 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : "[192.168.179.0/24,127.0.0.1/32]" [2020-12-27 12:39:36.957 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : "[]" [2020-12-27 12:39:36.958 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: "[192.168.179.0/24,127.0.0.1/32]" [2020-12-27 12:39:36.959 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: "[]" [2020-12-27 12:39:36.960 +00:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: "[]" [2020-12-27 12:39:36.974 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "OMDb" "10.7.0.0" [2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "MusicBrainz" "10.7.0.0" [2020-12-27 12:39:52.742 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded plugin: "AudioDB" "10.7.0.0" [2020-12-27 12:39:52.876 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"' [2020-12-27 12:39:53.458 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"' Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: CustomItemDisplayPreferences.UserId, CustomItemDisplayPreferences.ItemId, CustomItemDisplayPreferences.Client, CustomItemDisplayPreferences.Key'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-12-27 12:39:53.550 +00:00] [FTL] [1] Main: Error while starting server. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: CustomItemDisplayPreferences.UserId, CustomItemDisplayPreferences.ItemId, CustomItemDisplayPreferences.Client, CustomItemDisplayPreferences.Key'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-12-27 12:39:53.553 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost" [2020-12-27 12:39:53.554 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV" [2020-12-27 12:39:53.559 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down ```
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

Fixed the issue. I opened the displaypreferences.db with a db browser and found that one user had two entries for the client emby and another user had two entries for the client ATV. After I deleted one of each, jellyfin was able to run the db migration.

@ggogel commented on GitHub (Dec 27, 2020): Fixed the issue. I opened the displaypreferences.db with a db browser and found that one user had two entries for the client emby and another user had two entries for the client ATV. After I deleted one of each, jellyfin was able to run the db migration.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

Ok looks like the homescreen settings for my user are broken now. Changes in the settings are not applied.

@ggogel commented on GitHub (Dec 27, 2020): Ok looks like the homescreen settings for my user are broken now. Changes in the settings are not applied.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

This time I only deleted all rows with client = ATV. Jellyfin was able to run the migration afterwards. Home settings are still broken. The settings are not carried over and can not be changed anymore.

@ggogel commented on GitHub (Dec 27, 2020): This time I only deleted all rows with client = ATV. Jellyfin was able to run the migration afterwards. Home settings are still broken. The settings are not carried over and can not be changed anymore.
Author
Owner

@ferferga commented on GitHub (Dec 27, 2020):

@ggogel The fix for this is not in RC1, is currently in the master branch, which will be backported to RC2 and, consequently, stable.

If you want to test that out, make sure you're pulling unstable from docker or our repositories.

@ferferga commented on GitHub (Dec 27, 2020): @ggogel The fix for this is not in RC1, is currently in the master branch, which will be backported to RC2 and, consequently, stable. If you want to test that out, make sure you're pulling unstable from docker or our repositories.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

@ferferga Even with the unstable it's still failing.

@ggogel commented on GitHub (Dec 27, 2020): @ferferga Even with the unstable it's still failing.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

Log from the unstable build:

[2020-12-27 14:49:08.470 +00:00] [INF] [1] Main: Jellyfin version: "10.7.0"
[2020-12-27 14:49:08.521 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_MEDIA_DIR, /media]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]"]
[2020-12-27 14:49:08.528 +00:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[2020-12-27 14:49:08.530 +00:00] [INF] [1] Main: Operating system: "Linux"
[2020-12-27 14:49:08.530 +00:00] [INF] [1] Main: Architecture: X64
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: 64-Bit Process: True
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: User Interactive: True
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Processor count: 32
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Program data path: "/config"
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web"
[2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Application directory: "/jellyfin/"
[2020-12-27 14:49:09.079 +00:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache"
[2020-12-27 14:49:09.100 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2020-12-27 14:49:09.244 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "TVHeadEnd, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TVHeadend/TVHeadEnd.dll"
[2020-12-27 14:49:09.246 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Trakt, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Trakt/Trakt.dll"
[2020-12-27 14:49:09.247 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Trakt, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null".
System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IService' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
[2020-12-27 14:49:09.258 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.TMDbBoxSets, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TMDb Box Sets/Jellyfin.Plugin.TMDbBoxSets.dll"
[2020-12-27 14:49:09.258 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.TMDbBoxSets, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null".
System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturnVoid' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
[2020-12-27 14:49:09.259 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.Reports, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Reports/Jellyfin.Plugin.Reports.dll"
[2020-12-27 14:49:09.260 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.Reports, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null".
System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
[2020-12-27 14:49:09.260 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.PlaybackReporting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Playback Reporting/Jellyfin.Plugin.PlaybackReporting.dll"
[2020-12-27 14:49:09.261 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.PlaybackReporting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null".
System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
[2020-12-27 14:49:09.261 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Email/MediaBrowser.Plugins.SmtpNotifications.dll"
[2020-12-27 14:49:09.262 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null".
System.TypeLoadException: Method 'IsEnabledForUser' in type 'MediaBrowser.Plugins.SmtpNotifications.Notifier' from assembly 'MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
[2020-12-27 14:49:41.427 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] LiveTvService()
[2020-12-27 14:49:41.788 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] HTSConnectionHandler()
[2020-12-27 14:49:42.493 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] HTSConnectionHandler.ensureConnection: Priority was out of range [0-4] - set to 2
[2020-12-27 14:49:42.834 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"'
[2020-12-27 14:49:45.411 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"'
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.Client'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-12-27 14:49:46.209 +00:00] [FTL] [1] Main: Error while starting server.
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.Client'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.ExecuteReader()
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   --- End of inner exception stack trace ---
   at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
   at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform()
   at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
   at Jellyfin.Server.Program.StartApp(StartupOptions options)
[2020-12-27 14:49:46.214 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2020-12-27 14:49:46.215 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV"
[2020-12-27 14:49:46.219 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down
@ggogel commented on GitHub (Dec 27, 2020): Log from the unstable build: ``` [2020-12-27 14:49:08.470 +00:00] [INF] [1] Main: Jellyfin version: "10.7.0" [2020-12-27 14:49:08.521 +00:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_MEDIA_DIR, /media]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[DOTNET_SYSTEM_GLOBALIZATION_INVARIANT, 1]"] [2020-12-27 14:49:08.528 +00:00] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll"] [2020-12-27 14:49:08.530 +00:00] [INF] [1] Main: Operating system: "Linux" [2020-12-27 14:49:08.530 +00:00] [INF] [1] Main: Architecture: X64 [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: 64-Bit Process: True [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: User Interactive: True [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Processor count: 32 [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Program data path: "/config" [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Web resources path: "/jellyfin/jellyfin-web" [2020-12-27 14:49:08.531 +00:00] [INF] [1] Main: Application directory: "/jellyfin/" [2020-12-27 14:49:09.079 +00:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache" [2020-12-27 14:49:09.100 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [2020-12-27 14:49:09.244 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "TVHeadEnd, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TVHeadend/TVHeadEnd.dll" [2020-12-27 14:49:09.246 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Trakt, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Trakt/Trakt.dll" [2020-12-27 14:49:09.247 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Trakt, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null". System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IService' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() [2020-12-27 14:49:09.258 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.TMDbBoxSets, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/TMDb Box Sets/Jellyfin.Plugin.TMDbBoxSets.dll" [2020-12-27 14:49:09.258 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.TMDbBoxSets, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null". System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturnVoid' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() [2020-12-27 14:49:09.259 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.Reports, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Reports/Jellyfin.Plugin.Reports.dll" [2020-12-27 14:49:09.260 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.Reports, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null". System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() [2020-12-27 14:49:09.260 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "Jellyfin.Plugin.PlaybackReporting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Playback Reporting/Jellyfin.Plugin.PlaybackReporting.dll" [2020-12-27 14:49:09.261 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "Jellyfin.Plugin.PlaybackReporting, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null". System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'. at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() [2020-12-27 14:49:09.261 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loaded assembly "MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/plugins/Email/MediaBrowser.Plugins.SmtpNotifications.dll" [2020-12-27 14:49:09.262 +00:00] [ERR] [1] Emby.Server.Implementations.ApplicationHost: Error loading types from "MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null". System.TypeLoadException: Method 'IsEnabledForUser' in type 'MediaBrowser.Plugins.SmtpNotifications.Notifier' from assembly 'MediaBrowser.Plugins.SmtpNotifications, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at System.Reflection.RuntimeAssembly.GetExportedTypes() at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() [2020-12-27 14:49:41.427 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] LiveTvService() [2020-12-27 14:49:41.788 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] HTSConnectionHandler() [2020-12-27 14:49:42.493 +00:00] [INF] [1] TVHeadEnd.LiveTvService: [TVHclient] HTSConnectionHandler.ensureConnection: Priority was out of range [0-4] - set to 2 [2020-12-27 14:49:42.834 +00:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateDisplayPreferencesDatabase"' [2020-12-27 14:49:45.411 +00:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateDisplayPreferencesDatabase"' Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.Client'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-12-27 14:49:46.209 +00:00] [FTL] [1] Main: Error while starting server. Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: DisplayPreferences.UserId, DisplayPreferences.Client'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader() at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) --- End of inner exception stack trace --- at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IList`1 entries) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IList`1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(DbContext _, Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Jellyfin.Server.Migrations.Routines.MigrateDisplayPreferencesDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options) [2020-12-27 14:49:46.214 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost" [2020-12-27 14:49:46.215 +00:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "EmbyTV" [2020-12-27 14:49:46.219 +00:00] [INF] [2] Main: Received a SIGTERM signal, shutting down ```
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

Another attempt: Deleted all rows in the table. Jellyfin starts but home settings are still broken. I'm out of ideas at this point. Jellyfin does either not start and if I alter the database it starts but the settings can't be changed anymore. No idea if this is related or home settings are just broken in general.

@ggogel commented on GitHub (Dec 27, 2020): Another attempt: Deleted all rows in the table. Jellyfin starts but home settings are still broken. I'm out of ideas at this point. Jellyfin does either not start and if I alter the database it starts but the settings can't be changed anymore. No idea if this is related or home settings are just broken in general.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

I've created a test user and it has the same issue. So I guess this is not related to the migration issue, instead altering the home settings seems to broken in general.

@ggogel commented on GitHub (Dec 27, 2020): I've created a test user and it has the same issue. So I guess this is not related to the migration issue, instead altering the home settings seems to broken in general.
Author
Owner

@ferferga commented on GitHub (Dec 27, 2020):

@ggogel Are you removing the old containers after pulling the latest image?

It's a common thing that happens (it happens to me a lot in fact), but you should remove previous stopped containers instances, otherwise docker will attempt to rerun those (with the older images)

This in case you're using bare metal Docker, if you use docker-compose, it will already handle this after a docker-compose pull or docker pull jellyfin/jellyfin:unstable

Also, this seems obvious, but just to make sure: are you running the stable to unstable upgrade paths with the original database? Or with the one you modified manually?

@ferferga commented on GitHub (Dec 27, 2020): @ggogel Are you removing the old containers after pulling the latest image? It's a common thing that happens (it happens to me a lot in fact), but you should remove previous stopped containers instances, otherwise docker will attempt to rerun those (with the older images) This in case you're using bare metal Docker, if you use ``docker-compose``, it will already handle this after a ``docker-compose pull`` or ``docker pull jellyfin/jellyfin:unstable`` Also, this seems obvious, but just to make sure: are you running the stable to unstable upgrade paths with the original database? Or with the one you modified manually?
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

@ferferga Yes of course I'm deleting the container. I have created a backup copy of the volume from my 10.6.4 production instance, which I then copy to test the migration.

I tried the following migration paths:
10.6.4 -> stable-rc
10.6.4 -> unstable

Both fail to migrate. The database seems to have a couple of broken / duplicated entries for ATV clients. When I delete all rows with client = ATV, the migration proceeds.

So we are having two issues here:

  1. Migration is broken without manually altering the db.
  2. User home settings are broken, even when I create a completely new user after migration.
@ggogel commented on GitHub (Dec 27, 2020): @ferferga Yes of course I'm deleting the container. I have created a backup copy of the volume from my 10.6.4 production instance, which I then copy to test the migration. I tried the following migration paths: 10.6.4 -> stable-rc 10.6.4 -> unstable Both fail to migrate. The database seems to have a couple of broken / duplicated entries for ATV clients. When I delete all rows with client = ATV, the migration proceeds. So we are having two issues here: 1. Migration is broken without manually altering the db. 2. User home settings are broken, even when I create a completely new user after migration.
Author
Owner

@ggogel commented on GitHub (Dec 27, 2020):

I tested the unstable build some more to reproduce the error.

It behaves like this:

  1. Go to Home settings. Change something.
  2. Go to Home. See that it actually changed something.
  3. Go back to Home settings. Settings are back to the values they were before without doing anything.
  4. Go back to Home. See that it reflects the automatically changed settings.

When opening the Home settings I'm getting the following error:

[18:06:39] [ERR] [52] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL POST /DisplayPreferences/usersettings.
System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
   at System.Guid.GuidResult.SetFailure(Boolean overflow, String failureMessageID)
   at System.Guid.TryParseExactN(ReadOnlySpan`1 guidString, GuidResult& result)
   at System.Guid.TryParseGuid(ReadOnlySpan`1 guidString, GuidResult& result)
   at System.Guid.Parse(String input)
   at Jellyfin.Api.Controllers.DisplayPreferencesController.UpdateDisplayPreferences(String displayPreferencesId, Guid userId, String client, DisplayPreferencesDto displayPreferences)
   at lambda_method(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
   at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context)
   at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context)
   at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
@ggogel commented on GitHub (Dec 27, 2020): I tested the unstable build some more to reproduce the error. It behaves like this: 1. Go to Home settings. Change something. 2. Go to Home. See that it actually changed something. 3. Go back to Home settings. Settings are back to the values they were before without doing anything. 4. Go back to Home. See that it reflects the automatically changed settings. When opening the Home settings I'm getting the following error: ``` [18:06:39] [ERR] [52] Jellyfin.Server.Middleware.ExceptionMiddleware: Error processing request. URL POST /DisplayPreferences/usersettings. System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). at System.Guid.GuidResult.SetFailure(Boolean overflow, String failureMessageID) at System.Guid.TryParseExactN(ReadOnlySpan`1 guidString, GuidResult& result) at System.Guid.TryParseGuid(ReadOnlySpan`1 guidString, GuidResult& result) at System.Guid.Parse(String input) at Jellyfin.Api.Controllers.DisplayPreferencesController.UpdateDisplayPreferences(String displayPreferencesId, Guid userId, String client, DisplayPreferencesDto displayPreferences) at lambda_method(Closure , Object , Object[] ) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.Invoke(HttpContext context) at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context) at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context) ```
Author
Owner

@ggogel commented on GitHub (Dec 29, 2020):

@ferferga just tried the latest unstable image and both issues have been fixed for me! Meaning that the migration is able to handle my database and the home settings stick.

@ggogel commented on GitHub (Dec 29, 2020): @ferferga just tried the latest unstable image and both issues have been fixed for me! Meaning that the migration is able to handle my database and the home settings stick.
Author
Owner

@ferferga commented on GitHub (Dec 29, 2020):

@ggogel Great news, thank you very much for reporting back! 👍

@ferferga commented on GitHub (Dec 29, 2020): @ggogel Great news, thank you very much for reporting back! 👍
Author
Owner

@eh8 commented on GitHub (Jan 8, 2021):

Happens when migrating from 10.6.4 to 10.7.0rc2 on Arch Linux ARM.

Workaround is to delete InfuseSync 1.2.4 in /plugins/

Jan 08 03:00:25 OHC1CHNG systemd[1]: Started Jellyfin Media Server.
Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Jellyfin version: 10.7.0
Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIRECTORY, /var/cache/jellyfin]", "[JELLYFIN_DATA_DIRECTORY, /var/lib/jellyfin]", "[JELLYFIN_LOG_DIR, /var/lib/jellyfin/log]", "[JELLYFIN_ADD_OPTS, --webdir=/usr/share/jellyfin/web]"]
Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--datadir", "/var/lib/jellyfin", "--cachedir", "/var/cache/jellyfin", "--webdir=/usr/share/jellyfin/web"]
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Operating system: Linux
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Architecture: Arm
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: 64-Bit Process: False
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: User Interactive: True
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Processor count: 8
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Program data path: /var/lib/jellyfin
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /var/cache/jellyfin
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : []
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: [192.168.10.2/32]
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: []
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [FTL] [1] Main: Error while starting server.
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'.
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at System.Reflection.RuntimeAssembly.GetExportedTypes()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items)
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source)
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Emby.Server.Implementations.ApplicationHost.DiscoverTypes()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Emby.Server.Implementations.ApplicationHost.Init()
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [2] Main: Received a SIGTERM signal, shutting down
Jan 08 03:00:28 OHC1CHNG systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a
Jan 08 03:00:28 OHC1CHNG systemd[1]: jellyfin.service: Failed with result 'exit-code'.
@eh8 commented on GitHub (Jan 8, 2021): Happens when migrating from 10.6.4 to 10.7.0rc2 on Arch Linux ARM. Workaround is to delete InfuseSync 1.2.4 in `/plugins/` ``` Jan 08 03:00:25 OHC1CHNG systemd[1]: Started Jellyfin Media Server. Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Jellyfin version: 10.7.0 Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIRECTORY, /var/cache/jellyfin]", "[JELLYFIN_DATA_DIRECTORY, /var/lib/jellyfin]", "[JELLYFIN_LOG_DIR, /var/lib/jellyfin/log]", "[JELLYFIN_ADD_OPTS, --webdir=/usr/share/jellyfin/web]"] Jan 08 03:00:26 OHC1CHNG jellyfin[7101]: [03:00:26] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--datadir", "/var/lib/jellyfin", "--cachedir", "/var/cache/jellyfin", "--webdir=/usr/share/jellyfin/web"] Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Operating system: Linux Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Architecture: Arm Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: 64-Bit Process: False Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: User Interactive: True Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Processor count: 8 Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Program data path: /var/lib/jellyfin Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web Jan 08 03:00:27 OHC1CHNG jellyfin[7101]: [03:00:27] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/ Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /var/cache/jellyfin Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [] Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16] Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: [192.168.10.2/32] Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: [] Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [FTL] [1] Main: Error while starting server. Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: System.TypeLoadException: Could not load type 'MediaBrowser.Model.Services.IReturn`1' from assembly 'MediaBrowser.Model, Version=10.7.0.0, Culture=neutral, PublicKeyToken=null'. Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at System.Reflection.RuntimeAssembly.GetExportedTypes() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Emby.Server.Implementations.ApplicationHost.GetComposablePartAssemblies()+MoveNext() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Emby.Server.Implementations.ApplicationHost.GetTypes(IEnumerable`1 assemblies)+MoveNext() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at System.Collections.Generic.LargeArrayBuilder`1.AddRange(IEnumerable`1 items) Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Emby.Server.Implementations.ApplicationHost.DiscoverTypes() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Emby.Server.Implementations.ApplicationHost.Init() Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: at Jellyfin.Server.Program.StartApp(StartupOptions options) Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost Jan 08 03:00:28 OHC1CHNG jellyfin[7101]: [03:00:28] [INF] [2] Main: Received a SIGTERM signal, shutting down Jan 08 03:00:28 OHC1CHNG systemd[1]: jellyfin.service: Main process exited, code=exited, status=143/n/a Jan 08 03:00:28 OHC1CHNG systemd[1]: jellyfin.service: Failed with result 'exit-code'. ```
Author
Owner

@ferferga commented on GitHub (Jan 8, 2021):

@eh8 Completely unrelated to the original issue.

Plugins are still not compatible with 10.7, they will on release

@ferferga commented on GitHub (Jan 8, 2021): @eh8 Completely unrelated to the original issue. Plugins are still not compatible with 10.7, they will on release
Author
Owner

@eh8 commented on GitHub (Jan 8, 2021):

I can create another issue if this is not relevant to the original problem.

The point I suppose is whether it is possible to gracefully ignore incompatible plugins on startup rather than throw the entire process.

@eh8 commented on GitHub (Jan 8, 2021): I can create another issue if this is not relevant to the original problem. The point I suppose is whether it is possible to gracefully ignore incompatible plugins on startup rather than throw the entire process.
Author
Owner

@ferferga commented on GitHub (Jan 8, 2021):

@eh8 This should be the case in unstable already.

@ferferga commented on GitHub (Jan 8, 2021): @eh8 This should be the case in unstable already.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#2255
No description provided.