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

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification ERR: MigrateMusicBrainzTimeout

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    ERR: MigrateMusicBrainzTimeout

    Jellyfin doesn't start anymore (ERR: MigrateMusicBrainzTimeout)
    LordElber
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    #1
    2024-05-31, 07:55 AM
    Hi together,

    after upgrading to Jellyfin 10.9.1/10.9.2/10.9.3 my Jellyfin isn't accessible via Internet anymore. Nginx gave my the famous 502 Bad Gateway Error. By checking out the logs of all relevant dockers on the server it seems like Jellyfin is the problem, because it does not start up anymore. Meaning, I cannot even access it via webUI directly over the IP.

    The Jellyfin log file shows the following:

    Code:
    [09:41:23] [INF] [1] Main: Jellyfin version: 10.9.3
    [09:41:23] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_CONFIG_DIR, /config]"]
    [09:41:23] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
    [09:41:23] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS
    [09:41:23] [INF] [1] Main: Architecture: X64
    [09:41:23] [INF] [1] Main: 64-Bit Process: TrueUnhandled 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)
    [09:41:23] [INF] [1] Main: User Interactive: True  at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
      at System.Xml.XmlReader.MoveToContent()

      at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderOldMusicBrainzConfiguration.Read3_PluginConfiguration()
      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)
    [09:41:23] [INF] [1] Main: Processor count: 4  at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
      at Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.ReadOld(String path)

      at Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.Perform()
      at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, ILogger logger)
      at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
      at Jellyfin.Server.Program.StartApp(StartupOptions options)
      at Jellyfin.Server.Program.<Main>(String[] args)
    [09:41:23] [INF] [1] Main: Program data path: /config/data
    [09:41:23] [INF] [1] Main: Log directory path: /config/log
    [09:41:23] [INF] [1] Main: Config directory path: /config
    [09:41:23] [INF] [1] Main: Cache path: /config/cache
    [09:41:23] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
    [09:41:23] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
    [09:41:23] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'MigrateMusicBrainzTimeout'
    [09:41:23] [ERR] [1] Jellyfin.Server.Migrations.MigrationRunner: Could not apply migration 'MigrateMusicBrainzTimeout'
    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.XmlSerializationReaderOldMusicBrainzConfiguration.Read3_PluginConfiguration()
      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 Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.ReadOld(String path)
      at Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.Perform()
      at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, ILogger logger)
    [09:41:23] [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.XmlSerializationReaderOldMusicBrainzConfiguration.Read3_PluginConfiguration()
      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 Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.ReadOld(String path)
      at Jellyfin.Server.Migrations.PreStartupRoutines.MigrateMusicBrainzTimeout.Perform()
      at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, ILogger logger)
      at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
      at Jellyfin.Server.Program.StartApp(StartupOptions options)
      at Jellyfin.Server.Program.<Main>(String[] args)

    For me it looks liek there is a problem with Musicbrainz. Can somebody please help me and tell me how to fix it?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-05-31, 07:00 PM
    In the container, go to /config/config. Are any of the XMLs in that directory empty?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    LordElber
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    #3
    2024-06-02, 09:32 PM
    Hi TheDreadPirate,

    first of all thank you for your answer/question and during my research I saw that you are an extremly helpful member of this forum.

    Due to your question, XML files did exist and with this in mind, I had the Idea to just restore an one month old backup to solve the problem. Now I might made things worse. -.-

    The backup seemed to actually work, because all shared paths were added, but now I get this error message and don't know why it comes up or how to fix it...

    [23:08:51] [FTL] [1] Main: Error while starting server
    Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'malformed database schema (1)'.

    The following process runs frequently round about every 10min again and again.

    Code:
    [23:03:38] [INF] [1] Main: Jellyfin version: 10.9.4
    [23:03:38] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]"]
    [23:03:38] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
    [23:03:38] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS
    [23:03:38] [INF] [1] Main: Architecture: X64
    [23:03:38] [INF] [1] Main: 64-Bit Process: True
    [23:03:38] [INF] [1] Main: User Interactive: True
    [23:03:38] [INF] [1] Main: Processor count: 4
    [23:03:38] [INF] [1] Main: Program data path: /config/data
    [23:03:38] [INF] [1] Main: Log directory path: /config/log
    [23:03:38] [INF] [1] Main: Config directory path: /config
    [23:03:38] [INF] [1] Main: Cache path: /config/cache
    [23:03:38] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
    [23:03:38] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
    [23:03:39] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache
    [23:08:49] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
    [23:08:49] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin 6.0.0.0 of Kodi Sync Queue
    [23:08:49] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin 8.0.0.0 of Kodi Sync Queue
    [23:08:49] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Skipping disabled plugin 9.0.0.0 of Kodi Sync Queue
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets:
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets:
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses:
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
    [23:08:49] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
    [23:08:51] [FTL] [1] Main: Error while starting server
    Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'malformed database schema (1)'.
      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 Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
      at Emby.Server.Implementations.Data.SqliteExtensions.Execute(SqliteConnection sqliteConnection, String commandText)
      at Emby.Server.Implementations.Data.BaseSqliteRepository.GetConnection()
      at Emby.Server.Implementations.Data.BaseSqliteRepository.Initialize()
      at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize()
      at Emby.Server.Implementations.ApplicationHost.InitializeServices()
      at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
    [23:08:51] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
    [23:08:51] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
    [23:08:51] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager

    Do you have expirience with this error or can tell me how to I probably could fix it. Might there be a problem with the database because I was running Jellyfin 10.8.13 when I created the backup? Or could it be that there is a problem with overwriting still existing database when restoring? Jellyfin docker was stopped while running the backup. ´

    I really need help here. Building up all data from scratch won't be a real option. Confused-face

    PS: This is the second time when updating Jellyfin, that I had big problems afterwards. In the future I should stick with: "Never change a running system!"
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-06-02, 10:03 PM
    Did you restore just the DBs? Or the entire /config directory?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    LordElber
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    #5
    2024-06-03, 05:20 AM (This post was last modified: 2024-06-03, 05:22 AM by LordElber. Edited 1 time in total.)
    I restored the entire config directory. I use a tool for the BackUp on UnRaid.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-06-03, 05:08 PM
    I'm not sure how their backup tool works, but my first thought is that the DB is borked.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    LordElber
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    #7
    2024-06-04, 10:55 AM
    I think like that the same. Confused-face

    I will try to delete Jellyfin completely and pull the version 10.8.13 of jellyfin that was running while doing the backup. Afterwards I will try to restore the backup once again.

    In case config, metadata and imdb linking is wiped, can I somehow prevent this from happening again? I saw that in my tv series file folders, there are *.nfo files and cover created when linked, but I don't have these in my movie folders.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-06-04, 02:10 PM
    When I make my backups I simply rsync everything. But I schedule the backup in the middle of the night when Jellyfin is idle, so maybe that is a factor. Was your backup job running while the server was actively writing to the DB? IDK.

    Sounds like you have NFO saver enabled in your shows library but not movies. This can help preserve metadata, but only really makes a difference if your media is frequently misidentified. Either due to being esoteric or not naming the folders appropriately, etc.

    But you have to take the additional step of locking the NFOs since, by default, Jellyfin writes the NFOs unlocked.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    LordElber
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 May
    Reputation: 0
    #9
    2024-06-08, 07:41 AM
    Actually I saved 3 Backups and I am pretty sure it was completed everytime.

    I will search for the option to enable NFO saver also in movies library. This seems to be saver. Most of the movies get detected automatically, but not all. This is also because I have german movie titles and imdb is english and not every movie seems to be detected correctly because of that. On top there movies with general expressions e.g. "Evil (2022)" where the word evil is part in many movies, also within this year. Then it will pick the most common one, but not necessarily the rigfht movie.

    What do you mean with "locking"?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-06-08, 03:57 PM
    When Jellyfin writes the NFOs, open one up in a text editor. You will see a field for locking the file. I stopped using NFOs a while ago, I forget the exact field name. You'll see it. Flip that field to true so that Jellyfin won't attempt to make changes to it down the road.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


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

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


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode