• 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 SOLVED: XML Error On Startup

     
    • 0 Vote(s) - 0 Average

    SOLVED: XML Error On Startup

    When starting jellyfin, it will take a second and display an error about how it could not start
    .koskinas.
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    #1
    2024-10-31, 03:39 PM (This post was last modified: 2024-10-31, 07:54 PM by .koskinas.. Edited 1 time in total.)
    Log:
    Code:
    System.InvalidOperationException: There is an error in XML document (1, 1).
    ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
      at System.Xml.XmlTextReaderImpl.Throw(Exception e)
      at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
      at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
      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)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-31, 04:14 PM
    Can you provide more context? What OS is the server running and how is Jellyfin installed?
    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]
    .koskinas.
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    #3
    2024-10-31, 05:43 PM
    Running on windows, installed using the windows installer. Sorry for not providing that info in the thread.
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,010
    Threads: 0
    Joined: 2024 Jun
    Reputation: 58
    #4
    2024-10-31, 06:11 PM
    Ensure Jellyfin is not running. Then, navigate to C:\ProgramData\Jellyfin\Server\config  and either move the migrations.xml and system.xml files out of the directory or rename their extensions to .xml.bak. After that, restart the server.
    .koskinas.
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    #5
    2024-10-31, 07:54 PM
    (2024-10-31, 06:11 PM)theguymadmax Wrote: Ensure Jellyfin is not running. Then, navigate to C:\ProgramData\Jellyfin\Server\config  and either move the migrations.xml and system.xml files out of the directory or rename their extensions to .xml.bak. After that, restart the server.

    Thanks man, worked a treat. Tried replacing the whole config file and it didnt work before, so that's weird.
    « 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