Jellyfin Forum
SOLVED: core dumped - 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: core dumped (/t-solved-core-dumped)



core dumped - nanouk76 - 2025-01-29

Hi all,
I noticed jellyfin server was kaput on my rig as of this afternoon. Systemctl status shows service failed. Tried reinstalling (I know, the easy idea...) but console tells me /var/cache has no space left. Got rid of 7 days worth of logs with the journalctl --vacum command and got 1.5 GB back. But jellyfin won't start. A look at the log file shows this a couple times :

Code:
[2025-01-29 15:17:25.079 +00:00] [INF] Jellyfin version: "10.10.5"
[2025-01-29 15:17:25.103 +00:00] [INF] Environment Variables: ["[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]", "[JELLYFIN_CACHE_DIR, /var/cache/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_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]", "[JELLYFIN_USER, jellyfin]"]
[2025-01-29 15:17:25.106 +00:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[2025-01-29 15:17:25.107 +00:00] [INF] Operating system: "Ubuntu 22.04.5 LTS"
[2025-01-29 15:17:25.107 +00:00] [INF] Architecture: X64
[2025-01-29 15:17:25.108 +00:00] [INF] 64-Bit Process: True
[2025-01-29 15:17:25.108 +00:00] [INF] User Interactive: True
[2025-01-29 15:17:25.108 +00:00] [INF] Processor count: 4
[2025-01-29 15:17:25.108 +00:00] [INF] Program data path: "/var/lib/jellyfin"
[2025-01-29 15:17:25.108 +00:00] [INF] Log directory path: "/var/log/jellyfin"
[2025-01-29 15:17:25.108 +00:00] [INF] Config directory path: "/etc/jellyfin"
[2025-01-29 15:17:25.109 +00:00] [INF] Cache path: "/var/cache/jellyfin"
[2025-01-29 15:17:25.109 +00:00] [INF] Temp directory path: "/tmp/jellyfin"
[2025-01-29 15:17:25.109 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
[2025-01-29 15:17:25.109 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
[2025-01-29 15:17:25.158 +00: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.<Main>(String[] args)

What strikes me is this :

Code:
System.InvalidOperationException: There is an error in XML document (0, 0).
---> System.Xml.XmlException: Root element is missing.

Prior to upgrading to 10.10.4 I did a tarball of a couple folders, like so :

Code:
sudo tar -czvf /media/xbmc/complete/jellyfin-10.10.3-backup.tgz /etc/jellyfin/ /var/lib/jellyfin/data/

Will that backup be useful?
What am I to do? Can anything be salvaged?
I will defer to the savvier people on here.
Thanks for looking into it.


RE: core dumped - theguymadmax - 2025-01-29

Try these command:
Code:
sudo systemctl stop jellyfin
sudo mv /etc/jellyfin/migrations.xml /etc/jellyfin/migrations.xml.bak
sudo mv /etc/jellyfin/system.xml /etc/jellyfin/system.xml.bak
sudo systemctl start jellyfin



RE: core dumped - nanouk76 - 2025-01-29

Wow, that was fast! Jellyfin is now started. Will watch for any further glitches. Thanks a million. But, just so I understand a little better, why would Jellyfin want to migrate anything days after the upgrade? Or were those files somehow damaged?


RE: core dumped - TheDreadPirate - 2025-01-29

You disk filled up and Jellyfin tried to write to those XMLs. Did a test just now and migrations.xml and encoding.xml are written to during every startup. If your disk was full when Jellyfin started, it would have written empty or malformed XMLs. Why it writes to these files on startup, IDK.


RE: core dumped - nanouk76 - 2025-01-29

Thanks for the clarification.