jellyfin / jellyfin-kodi

Jellyfin Plugin for Kodi
https://jellyfin.org
GNU General Public License v3.0
820 stars 111 forks source link

Jellyfin crashed. "Could not apply migration 'MigrateActivityLogDatabase" #846

Closed werran2 closed 6 months ago

werran2 commented 6 months ago

Describe the bug After updated jellyfin-kodi to the latest, Jellyfin crashed.

Logs [09:41:10] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateActivityLogDatabase' CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build() at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, ILogger logger)

[09:41:10] [FTL] [1] Main: Error while starting server. CannotOpen: SQLitePCL.pretty.SQLiteException: unable to open database file at SQLitePCL.pretty.SQLiteException.Throw(Int32 rc, Int32 extended, String msg) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.SQLiteDatabaseConnectionBuilder.Build() at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform() at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, ILogger logger) at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory) at Jellyfin.Server.Program.StartApp(StartupOptions options)

[09:41:10] [INF] [1] Main: Running query planner optimizations in the database... This might take a while [09:41:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost [09:41:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider [09:41:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing SchedulesDirect [09:41:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV [09:41:11] [INF] [2] Main: Received a SIGTERM signal, shutting down

Screenshots

System (please complete the following information):

Additional context

crobibero commented 6 months ago

This looks like a permission issue, and has nothing to do with Kodi.