Jellyfin Forum
xml document error after upgrade - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: xml document error after upgrade (/t-xml-document-error-after-upgrade)

Pages: 1 2 3


xml document error after upgrade - kinghat - 2024-05-12

i upgraded my lsio image from 10.8.13 to 10.9.0 and i encountered this xml error on start:

Quote:[09:17:34] [INF] [1] Main: Jellyfin version: 10.9.0
[09:17:34] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_PublishedServerUrl, https://jelly.example.com]"]
[09:17:34] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[09:17:34] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS
[09:17:34] [INF] [1] Main: Architecture: X64
[09:17:34] [INF] [1] Main: 64-Bit Process: True
[09:17:34] [INF] [1] Main: User Interactive: True
[09:17:34] [INF] [1] Main: Processor count: 4
[09:17:34] [INF] [1] Main: Program data path: /config/data
[09:17:34] [INF] [1] Main: Log directory path: /config/log
[09:17:34] [INF] [1] Main: Config directory path: /config
[09:17:34] [INF] [1] Main: Cache path: /config/cache
[09:17:34] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
[09:17:34] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[09:17:34] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: There is an error in XML document (0, 0).
---> System.Xml.XmlException: Root element is missing.
  at System.Xml.XmlTextReaderImpl.Throw(Exception e)
  at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
  at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
  at System.Xml.XmlReader.MoveToContent()
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
  at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
  at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
  at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
  at Jellyfin.Server.Program.<Main>(String[] args)
Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
---> System.Xml.XmlException: Root element is missing.
  at System.Xml.XmlTextReaderImpl.Throw(Exception e)
  at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
  at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
  at System.Xml.XmlReader.MoveToContent()
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
  at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
  at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
  --- End of inner exception stack trace ---
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
  at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
  at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
  at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
  at Jellyfin.Server.Program.StartApp(StartupOptions options)
  at Jellyfin.Server.Program.<Main>(String[] args)

trying to rollback to 10.8.13 in my docker compose i realized i couldnt save the compose file. it looks like a ran out of space while pulling the 10.9.0 image and running the initial upgrade and messed up the xml or something. is there a way to remedy this?


RE: xml document error after upgrade - TheDreadPirate - 2024-05-12

In the root of the /config folder there are a bunch of xml files. One of more of them are probably empty now and you can try delete them to force them to be recreated.


RE: xml document error after upgrade - kinghat - 2024-05-12

(2024-05-12, 04:36 PM)TheDreadPirate Wrote: In the root of the /config folder there are a bunch of xml files.  One of more of them are probably empty now and you can try delete them to force them to be recreated.

so it was(at least) my migrations.xml that was empty. i removed it and started the container and it regenerated a new one. now im getting this repeating errors in the log:

Quote:[2024-05-12 11:40:40.437 -05:00] [INF] [1] Main: Jellyfin version: "10.9.0"
[2024-05-12 11:40:40.476 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_PublishedServerUrl, https://jelly.example.com]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_LOG_DIR, /config/log]"]
[2024-05-12 11:40:40.480 -05:00] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-12 11:40:40.480 -05:00] [INF] [1] Main: Operating system: "Ubuntu 22.04.4 LTS"
[2024-05-12 11:40:40.481 -05:00] [INF] [1] Main: Architecture: X64
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: 64-Bit Process: True
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: User Interactive: True
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: Processor count: 4
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: Program data path: "/config/data"
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: Log directory path: "/config/log"
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: Config directory path: "/config"
[2024-05-12 11:40:40.482 -05:00] [INF] [1] Main: Cache path: "/config/cache"
[2024-05-12 11:40:40.483 -05:00] [INF] [1] Main: Web resources path: "/usr/share/jellyfin/web"
[2024-05-12 11:40:40.483 -05:00] [INF] [1] Main: Application directory: "/usr/lib/jellyfin/bin/"
[2024-05-12 11:40:40.642 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"CreateNetworkConfiguration"'
[2024-05-12 11:40:40.642 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Migration '"CreateNetworkConfiguration"' applied successfully
[2024-05-12 11:40:40.647 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateMusicBrainzTimeout"'
[2024-05-12 11:40:40.678 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Migration '"MigrateMusicBrainzTimeout"' applied successfully
[2024-05-12 11:40:40.678 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateNetworkConfiguration"'
[2024-05-12 11:40:40.717 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Migration '"MigrateNetworkConfiguration"' applied successfully
[2024-05-12 11:40:40.742 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache"
[2024-05-12 11:40:41.676 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2024-05-12 11:40:41.722 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/Bookshelf_10.0.0.0/Jellyfin.Plugin.Bookshelf.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:40:41.739 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.CoverArtArchive, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Cover Art Archive_7.0.0.0/Jellyfin.Plugin.CoverArtArchive.dll"
[2024-05-12 11:40:41.741 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MetaBrainz.MusicBrainz.CoverArt, Version=4.0.0.0, Culture=neutral, PublicKeyToken=be12cbb629c03021" from "/config/data/plugins/Cover Art Archive_7.0.0.0/MetaBrainz.MusicBrainz.CoverArt.dll"
[2024-05-12 11:40:41.742 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MetaBrainz.Common.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=be12cbb629c03021" from "/config/data/plugins/Cover Art Archive_7.0.0.0/MetaBrainz.Common.Json.dll"
[2024-05-12 11:40:41.743 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Fanart, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Fanart_10.0.0.0/Jellyfin.Plugin.Fanart.dll"
[2024-05-12 11:40:41.745 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/Playback Reporting_13.0.0.0/Jellyfin.Plugin.PlaybackReporting.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load file or assembly 'SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
System.IO.FileNotFoundException: Could not load file or assembly 'SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
File name: 'SQLitePCL.pretty, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
[2024-05-12 11:40:41.751 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Reports, Version=15.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Reports_15.0.0.0/Jellyfin.Plugin.Reports.dll"
[2024-05-12 11:40:41.754 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "TvDbSharper, Version=3.2.2.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/TheTVDB_10.0.0.0/TvDbSharper.dll"
[2024-05-12 11:40:41.759 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/TheTVDB_10.0.0.0/Jellyfin.Plugin.Tvdb.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:40:41.761 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/TMDb Box Sets_10.0.0.0/Jellyfin.Plugin.TMDbBoxSets.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:40:41.766 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/TMDb Trailers_12.0.0.0/Jellyfin.Plugin.Tmdb.Trailers.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:40:41.844 -05:00] [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"]
[2024-05-12 11:40:41.845 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2024-05-12 11:40:41.845 -05:00] [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"]
[2024-05-12 11:40:41.847 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: ["127.0.0.1", "172.29.0.2"]
[2024-05-12 11:40:41.847 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2024-05-12 11:40:41.848 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filter list: []
[2024-05-12 11:40:43.438 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: There are pending EFCore migrations in the database. Applying... (This may take a while, do not stop Jellyfin)
[2024-05-12 11:40:43.753 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: EFCore migrations applied successfully
[2024-05-12 11:41:06.475 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Cover Art Archive" "7.0.0.0"
[2024-05-12 11:41:06.478 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Fanart" "10.0.0.0"
[2024-05-12 11:41:06.479 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Reports" "15.0.0.0"
[2024-05-12 11:41:06.481 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.9.0.0"
[2024-05-12 11:41:06.482 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.9.0.0"
[2024-05-12 11:41:06.483 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.9.0.0"
[2024-05-12 11:41:06.511 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.9.0.0"
[2024-05-12 11:41:06.512 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.9.0.0"
[2024-05-12 11:41:06.599 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"DisableTranscodingThrottling"'
[2024-05-12 11:41:06.626 -05:00] [INF] [1] Jellyfin.Server.Migrations.Routines.DisableTranscodingThrottling: Disabling transcoding throttling during migration
[2024-05-12 11:41:06.631 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Migration '"DisableTranscodingThrottling"' applied successfully
[2024-05-12 11:41:06.632 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"CreateLoggingConfigHeirarchy"'
[2024-05-12 11:41:06.632 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Migration '"CreateLoggingConfigHeirarchy"' applied successfully
[2024-05-12 11:41:06.633 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateActivityLogDatabase"'
[2024-05-12 11:41:06.638 -05:00] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb: Migrating the activity database may take a while, do not stop Jellyfin.
[2024-05-12 11:41:11.114 -05:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateActivityLogDatabase"'
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
  at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action1 saveConfiguration, ILogger logger)
  at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
  at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-05-12 11:41:11.115 -05:00] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  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.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-05-12 11:41:11.116 -05:00] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[2024-05-12 11:41:11.129 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2024-05-12 11:41:11.130 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "MusicBrainzArtistProvider"
[2024-05-12 11:41:11.130 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "MusicBrainzAlbumProvider"
[2024-05-12 11:41:11.130 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoverArtArchiveImageProvider"
[2024-05-12 11:41:11.133 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "PluginManager"
[2024-05-12 11:41:14.399 -05:00] [INF] [1] Main: Jellyfin version: "10.9.0"
[2024-05-12 11:41:14.439 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_PublishedServerUrl, https://jelly.example.com]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]"]
[2024-05-12 11:41:14.443 -05:00] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2024-05-12 11:41:14.443 -05:00] [INF] [1] Main: Operating system: "Ubuntu 22.04.4 LTS"
[2024-05-12 11:41:14.444 -05:00] [INF] [1] Main: Architecture: X64
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: 64-Bit Process: True
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: User Interactive: True
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Processor count: 4
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Program data path: "/config/data"
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Log directory path: "/config/log"
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Config directory path: "/config"
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Cache path: "/config/cache"
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Web resources path: "/usr/share/jellyfin/web"
[2024-05-12 11:41:14.445 -05:00] [INF] [1] Main: Application directory: "/usr/lib/jellyfin/bin/"
[2024-05-12 11:41:14.661 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/cache"
[2024-05-12 11:41:15.736 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2024-05-12 11:41:15.783 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/Bookshelf_9.0.0.0/Jellyfin.Plugin.Bookshelf.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:41:15.802 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "10.0.0.0" of "Bookshelf"
[2024-05-12 11:41:15.803 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.CoverArtArchive, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Cover Art Archive_7.0.0.0/Jellyfin.Plugin.CoverArtArchive.dll"
[2024-05-12 11:41:15.805 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MetaBrainz.MusicBrainz.CoverArt, Version=4.0.0.0, Culture=neutral, PublicKeyToken=be12cbb629c03021" from "/config/data/plugins/Cover Art Archive_7.0.0.0/MetaBrainz.MusicBrainz.CoverArt.dll"
[2024-05-12 11:41:15.806 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "MetaBrainz.Common.Json, Version=5.0.0.0, Culture=neutral, PublicKeyToken=be12cbb629c03021" from "/config/data/plugins/Cover Art Archive_7.0.0.0/MetaBrainz.Common.Json.dll"
[2024-05-12 11:41:15.808 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Fanart, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Fanart_10.0.0.0/Jellyfin.Plugin.Fanart.dll"
[2024-05-12 11:41:15.808 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "13.0.0.0" of "Playback Reporting"
[2024-05-12 11:41:15.811 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Reports, Version=15.0.0.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/Reports_15.0.0.0/Jellyfin.Plugin.Reports.dll"
[2024-05-12 11:41:15.814 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "TvDbSharper, Version=3.2.2.0, Culture=neutral, PublicKeyToken=null" from "/config/data/plugins/TheTVDB_9.0.0.0/TvDbSharper.dll"
[2024-05-12 11:41:15.819 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/TheTVDB_9.0.0.0/Jellyfin.Plugin.Tvdb.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Common.Plugins.IPluginServiceRegistrator' from assembly 'MediaBrowser.Common, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
[2024-05-12 11:41:15.820 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "10.0.0.0" of "TheTVDB"
[2024-05-12 11:41:15.821 -05:00] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly "/config/data/plugins/TMDb Box Sets_7.0.0.0/Jellyfin.Plugin.TMDbBoxSets.dll". This error occurs when a plugin references an incompatible version of one of the shared libraries. Disabling plugin
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
Method 'ExecuteAsync' in type 'Jellyfin.Plugin.TMDbBoxSets.ScheduledTasks.RefreshLibraryTask' from assembly 'Jellyfin.Plugin.TMDbBoxSets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
  at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
  at System.Reflection.RuntimeModule.GetTypes()
  at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
System.TypeLoadException: Could not load type 'MediaBrowser.Controller.Plugins.IServerEntryPoint' from assembly 'MediaBrowser.Controller, Version=10.9.0.0, Culture=neutral, PublicKeyToken=null'.
System.TypeLoadException: Method 'ExecuteAsync' in type 'Jellyfin.Plugin.TMDbBoxSets.ScheduledTasks.RefreshLibraryTask' from assembly 'Jellyfin.Plugin.TMDbBoxSets, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
[2024-05-12 11:41:15.822 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "10.0.0.0" of "TMDb Box Sets"
[2024-05-12 11:41:15.822 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin "12.0.0.0" of "TMDb Trailers"
[2024-05-12 11:41:15.918 -05:00] [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"]
[2024-05-12 11:41:15.918 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2024-05-12 11:41:15.919 -05:00] [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"]
[2024-05-12 11:41:15.921 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: ["127.0.0.1", "172.29.0.2"]
[2024-05-12 11:41:15.921 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2024-05-12 11:41:15.921 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filter list: []
[2024-05-12 11:41:38.347 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Cover Art Archive" "7.0.0.0"
[2024-05-12 11:41:38.350 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Fanart" "10.0.0.0"
[2024-05-12 11:41:38.352 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Reports" "15.0.0.0"
[2024-05-12 11:41:38.353 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.9.0.0"
[2024-05-12 11:41:38.354 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.9.0.0"
[2024-05-12 11:41:38.354 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.9.0.0"
[2024-05-12 11:41:38.382 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.9.0.0"
[2024-05-12 11:41:38.382 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.9.0.0"
[2024-05-12 11:41:38.459 -05:00] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration '"MigrateActivityLogDatabase"'
[2024-05-12 11:41:38.464 -05:00] [WRN] [1] Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb: Migrating the activity database may take a while, do not stop Jellyfin.
[2024-05-12 11:41:38.714 -05:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateActivityLogDatabase"'
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  at Jellyfin.Server.Migrations.Routines.MigrateActivityLogDb.Perform()
  at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action1 saveConfiguration, ILogger logger)
  at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
  at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-05-12 11:41:38.715 -05:00] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  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.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-05-12 11:41:38.716 -05:00] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[2024-05-12 11:41:38.737 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoreAppHost"
[2024-05-12 11:41:38.737 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "MusicBrainzArtistProvider"
[2024-05-12 11:41:38.738 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "MusicBrainzAlbumProvider"
[2024-05-12 11:41:38.738 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "CoverArtArchiveImageProvider"
[2024-05-12 11:41:38.740 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing "PluginManager"



RE: xml document error after upgrade - TheDreadPirate - 2024-05-13

When your disk filled up the database was probably borked in the process. If you don't have a backup you will probably have to start fresh.


RE: xml document error after upgrade - kinghat - 2024-05-13

(2024-05-13, 01:09 AM)TheDreadPirate Wrote: When your disk filled up the database was probably borked in the process.  If you don't have a backup you will probably have to start fresh.

f.. i had a docker volume specifically for jellyfin cache. would it possibly be in there?


RE: xml document error after upgrade - TheDreadPirate - 2024-05-13

Cache or config? Cache only has temporary data like images and the like. Would not container anything related to your database. Jellyfin does not make backups for you and neither does docker.


RE: xml document error after upgrade - kinghat - 2024-05-13

(2024-05-13, 02:23 AM)TheDreadPirate Wrote: Cache or config?  Cache only has temporary data like images and the like.  Would not container anything related to your database.  Jellyfin does not make backups for you and neither does docker.

figured it was a long shot. so what all did a lose? there are a bunch of jellyfin dbs in the data dir. the error seems to point to the activitylog db but i dont see that. is it possible i only lost users activity?

Quote:[2024-05-12 11:41:11.114 -05:00] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration '"MigrateActivityLogDatabase"'
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  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.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[2024-05-12 11:41:11.115 -05:00] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.
  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.ExecuteReader()
  at Emby.Server.Implementations.Data.SqliteExtensions.Query(SqliteConnection sqliteConnection, String commandText)+MoveNext()
  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.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)



RE: xml document error after upgrade - TheDreadPirate - 2024-05-13

library.db has all of your movie/show metadata. It linked all the images it saved and actors to the appropriate movie, which can be replaced when you re-add your library.

jellyfin.db has your user accounts and some other stuff. Not sure if it is jellyfin.db or library.db that has your watch status.


RE: xml document error after upgrade - kinghat - 2024-05-13

(2024-05-13, 11:34 AM)TheDreadPirate Wrote: library.db has all of your movie/show metadata.  It linked all the images it saved and actors to the appropriate movie, which can be replaced when you re-add your library.

jellyfin.db has your user accounts and some other stuff.  Not sure if it is jellyfin.db or library.db that has your watch status.

last night i tried opening the jellyfin.db in sqlite browser and it wasnt possible. i removed jellyfin.db and restarted the container and got the same db error about the activitylog as before.


RE: xml document error after upgrade - TheDreadPirate - 2024-05-13

Did you also delete library.db?