this post was submitted on 19 Dec 2024
5 points (85.7% liked)

Jellyfin: The Free Software Media System

5895 readers
109 users here now

Current stable release: 10.10.4

Community Standards

Website

Forum

GitHub

Documentation

Feature Requests

Matrix (General Information & Help)

Matrix (Announcements)

Matrix (General Development)

Matrix (Off-Topic) - Come get to know the team and blow off steam!

Matrix Space - List of all the available rooms on Matrix.

Discord - Bridged to our Matrix rooms

founded 4 years ago
MODERATORS
 

I am not sure what I have done to my Jellyfin install. I have been having various issues with my computer that I am using for Jellyfin and when I fixed one (ran out of hard drive space) I now have this one. I do not believe Jellyfin is starting when I reboot my computer. Here is the output of my logs file:

spoiler__ [2024-12-18 21:54:12.874 -05:00] [INF] Jellyfin version: "10.10.3" [2024-12-18 21:54:12.925 -05:00] [INF] Environment Variables: ["[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]", "[JELLYFIN_ARGS, $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR]", "[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_USER, jellyfin]", "[JELLYFIN_CACHE_DIR, /var/cache/jellyfin]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]"] [2024-12-18 21:54:12.945 -05:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"] [2024-12-18 21:54:12.945 -05:00] [INF] Operating system: "Linux Mint 21.3" [2024-12-18 21:54:12.945 -05:00] [INF] Architecture: X64 [2024-12-18 21:54:12.946 -05:00] [INF] 64-Bit Process: True [2024-12-18 21:54:12.947 -05:00] [INF] User Interactive: True [2024-12-18 21:54:12.947 -05:00] [INF] Processor count: 2 [2024-12-18 21:54:12.947 -05:00] [INF] Program data path: "/var/lib/jellyfin" [2024-12-18 21:54:12.947 -05:00] [INF] Log directory path: "/var/log/jellyfin" [2024-12-18 21:54:12.947 -05:00] [INF] Config directory path: "/etc/jellyfin" [2024-12-18 21:54:12.947 -05:00] [INF] Cache path: "/var/cache/jellyfin" [2024-12-18 21:54:12.948 -05:00] [INF] Temp directory path: "/tmp/jellyfin" [2024-12-18 21:54:12.948 -05:00] [INF] Web resources path: "/usr/share/jellyfin/web" [2024-12-18 21:54:12.948 -05:00] [INF] Application directory: "/usr/lib/jellyfin/bin/" [2024-12-18 21:54:13.017 -05:00] [FTL] 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.(String[] args)_

I googled "There is an error in XML document (0, 0)." and was completely overwhelmed by the posts and solutions I found. Is that even the best starting point for picking this apart?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 1 month ago (2 children)

Can you check your config folder (seems like it's /etc/jellyfin for you) for migrations.xml and system.xml? I'm guessing if you were low on disk, jellyfin tried to write to them, but couldn't, so it left empty files which it can't now read from.

[–] RVAtom 2 points 1 month ago (1 children)

Thank you so much for your help! I went to that folder and the migrations.xml was a blank file, but system.xml was still okay.

I searched a little about the migrations.xml and found a thread on the jellyfin forum with exactly the same problem so I renamed all of the xml files in the /etc/jellyfin folder and it started back up nicely.

[–] [email protected] 1 points 1 month ago

Good to hear. I think jellyfin could be improved so that it doesn't completely clear migrations.xml every time a new migration is applied when it starts up (switch from a Create to an OpenOrCreate on the file). Although a low disk situation can be difficult for software to deal with typically anyway.