Jellyfin Forum
XML Error? Server not starting now... - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: XML Error? Server not starting now... (/t-xml-error-server-not-starting-now)



XML Error? Server not starting now... - 4r5hw45twh - 2024-12-13

No idea if this is because I updated JellyFin a couple hours ago or what, but I've never had this before. On Windows. A server on my own self-hosted PC/server.

Error:
Code:
[2024-12-13 11:02:52.677 -05:00] [INF] [1] Main: Temp directory path: "C:\Users\aaa\AppData\Local\Temp\jellyfin"
[2024-12-13 11:02:52.678 -05:00] [INF] [1] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2024-12-13 11:02:52.679 -05:00] [INF] [1] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2024-12-13 11:02:52.724 -05:00] [FTL] [1] Main: Unhandled Exception
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)

I just seem to never stop having issues out of nowhere with JellyFin....about to give up after 2yrs+.


RE: XML Error? Server not starting now... - TheDreadPirate - 2024-12-13

Go to C:\Program Files\Jellyfin\Server\config\ and delete all the XMLs in that folder.