Jellyfin Forum
SOLVED: XML Error On Startup - 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: SOLVED: XML Error On Startup (/t-solved-xml-error-on-startup)



XML Error On Startup - .koskinas. - 2024-10-31

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)



RE: XML Error On Startup - TheDreadPirate - 2024-10-31

Can you provide more context? What OS is the server running and how is Jellyfin installed?


RE: XML Error On Startup - .koskinas. - 2024-10-31

Running on windows, installed using the windows installer. Sorry for not providing that info in the thread.


RE: XML Error On Startup - theguymadmax - 2024-10-31

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.


RE: XML Error On Startup - .koskinas. - 2024-10-31

(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.


RE: XML Error On Startup - Anthony - 2025-08-11

(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.

had the same issue after updating to 10.10.7 and a abrupt power failure. this worked. thanks