Jellyfin just stopped working

Jellyfin was working then after a dietpi-update it would not run anymore, I don’t know if it was related to the update or not. Now there is no jellyfin service

Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Start request repeated too quickly.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:59 DietPi systemd\[1\]: Failed to start jellyfin.service - Jellyfin Media Server.

you would need to share the whole service log. Not just parts

as well have a look to kernel error messages

dmesg -l 0,1,2,3
root@DietPi:\~# journalctl -u jellyfin -n 200 --no-pager
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    — End of inner exception stack trace —
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:56 DietPi jellyfin\[965\]: Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:56 DietPi jellyfin\[965\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    — End of inner exception stack trace —
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:56 DietPi jellyfin\[965\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:56 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 13 10:57:56 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:56 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 2.
Oct 13 10:57:56 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 13 10:57:56 DietPi (jellyfin)\[976\]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Jellyfin version: 10.10.7
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Environment Variables: \[“\[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg\]”, “\[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache\]”, “\[JELLYFIN_ADDITIONAL_OPTS, \]”, “\[JELLYFIN_LOG_DIR, /var/log/jellyfin\]”, “\[JELLYFIN_CONFIG_DIR, /etc/jellyfin\]”, “\[JELLYFIN_USER, 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_DATA_DIR, /mnt/dietpi_userdata/jellyfin\]”, “\[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web\]”\]
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Arguments: \[“/usr/lib/jellyfin/bin/jellyfin.dll”, “–webdir=/usr/share/jellyfin/web”, “–ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg”\]
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Operating system: Debian GNU/Linux 13 (trixie)
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Architecture: Arm64
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] 64-Bit Process: True
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] User Interactive: True
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Processor count: 4
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Program data path: /mnt/dietpi_userdata/jellyfin
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Log directory path: /var/log/jellyfin
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Config directory path: /etc/jellyfin
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Temp directory path: /tmp/jellyfin
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Web resources path: /usr/share/jellyfin/web
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[INF\] Application directory: /usr/lib/jellyfin/bin/
Oct 13 10:57:57 DietPi jellyfin\[976\]: \[10:57:57\] \[FTL\] Unhandled Exception
Oct 13 10:57:57 DietPi jellyfin\[976\]: System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:57 DietPi jellyfin\[976\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    — End of inner exception stack trace —
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:57 DietPi jellyfin\[976\]: Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:57 DietPi jellyfin\[976\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    — End of inner exception stack trace —
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:57 DietPi jellyfin\[976\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:57 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 13 10:57:57 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:57 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 3.
Oct 13 10:57:57 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 13 10:57:57 DietPi (jellyfin)\[987\]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Jellyfin version: 10.10.7
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Environment Variables: \[“\[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web\]”, “\[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache\]”, “\[JELLYFIN_DATA_DIR, /mnt/dietpi_userdata/jellyfin\]”, “\[JELLYFIN_LOG_DIR, /var/log/jellyfin\]”, “\[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg\]”, “\[JELLYFIN_ADDITIONAL_OPTS, \]”, “\[JELLYFIN_CONFIG_DIR, /etc/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_USER, jellyfin\]”\]
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Arguments: \[“/usr/lib/jellyfin/bin/jellyfin.dll”, “–webdir=/usr/share/jellyfin/web”, “–ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg”\]
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Operating system: Debian GNU/Linux 13 (trixie)
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Architecture: Arm64
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] 64-Bit Process: True
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] User Interactive: True
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Processor count: 4
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Program data path: /mnt/dietpi_userdata/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Log directory path: /var/log/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Config directory path: /etc/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Temp directory path: /tmp/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Web resources path: /usr/share/jellyfin/web
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[INF\] Application directory: /usr/lib/jellyfin/bin/
Oct 13 10:57:58 DietPi jellyfin\[987\]: \[10:57:58\] \[FTL\] Unhandled Exception
Oct 13 10:57:58 DietPi jellyfin\[987\]: System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:58 DietPi jellyfin\[987\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    — End of inner exception stack trace —
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:58 DietPi jellyfin\[987\]: Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:58 DietPi jellyfin\[987\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    — End of inner exception stack trace —
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:58 DietPi jellyfin\[987\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 4.
Oct 13 10:57:58 DietPi systemd\[1\]: Started jellyfin.service - Jellyfin Media Server.
Oct 13 10:57:58 DietPi (jellyfin)\[998\]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Jellyfin version: 10.10.7
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Environment Variables: \[“\[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_DATA_DIR, /mnt/dietpi_userdata/jellyfin\]”, “\[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web\]”, “\[JELLYFIN_CACHE_DIR, /mnt/dietpi_userdata/jellyfin/cache\]”, “\[JELLYFIN_CONFIG_DIR, /etc/jellyfin\]”, “\[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg\]”, “\[JELLYFIN_LOG_DIR, /var/log/jellyfin\]”, “\[JELLYFIN_USER, jellyfin\]”\]
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Arguments: \[“/usr/lib/jellyfin/bin/jellyfin.dll”, “–webdir=/usr/share/jellyfin/web”, “–ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg”\]
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Operating system: Debian GNU/Linux 13 (trixie)
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Architecture: Arm64
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] 64-Bit Process: True
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] User Interactive: True
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Processor count: 4
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Program data path: /mnt/dietpi_userdata/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Log directory path: /var/log/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Config directory path: /etc/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Cache path: /mnt/dietpi_userdata/jellyfin/cache
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Temp directory path: /tmp/jellyfin
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Web resources path: /usr/share/jellyfin/web
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[INF\] Application directory: /usr/lib/jellyfin/bin/
Oct 13 10:57:58 DietPi jellyfin\[998\]: \[10:57:58\] \[FTL\] Unhandled Exception
Oct 13 10:57:58 DietPi jellyfin\[998\]: System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:58 DietPi jellyfin\[998\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    — End of inner exception stack trace —
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:58 DietPi jellyfin\[998\]: Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
Oct 13 10:57:58 DietPi jellyfin\[998\]:  —> System.Xml.XmlException: Root element is missing.
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.XmlReader.MoveToContent()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void\*\* arguments, Signature sig, Boolean isConstructor)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    — End of inner exception stack trace —
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 13 10:57:58 DietPi jellyfin\[998\]:    at Jellyfin.Server.Program.(String[ ] args)
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Main process exited, code=killed, status=6/ABRT
Oct 13 10:57:58 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Start request repeated too quickly.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:59 DietPi systemd\[1\]: Failed to start jellyfin.service - Jellyfin Media Server.

root@DietPi:\~# dmesg -l 0,1,2,3
\[    6.496371\] Bluetooth: hci0: BCM: firmware Patch file not found, tried:
\[    6.503763\] Bluetooth: hci0: BCM: ‘brcm/BCM4345C0.raspberrypi,5-model-b.hcd’
\[    6.511592\] Bluetooth: hci0: BCM: ‘brcm/BCM4345C0.hcd’
\[    6.517377\] Bluetooth: hci0: BCM: ‘brcm/BCM.raspberrypi,5-model-b.hcd’
\[    6.524584\] Bluetooth: hci0: BCM: ‘brcm/BCM.hcd’

I have this too :-

root@DietPi:\~# systemctl status jellyfin.service
× jellyfin.service - Jellyfin Media Server
Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/jellyfin.service.d
└─dietpi.conf, jellyfin.service.conf
Active: failed (Result: signal) since Mon 2025-10-13 10:57:59 UTC; 1h 18min ago
Duration: 528ms
Invocation: b00a07c266674a419d09a4f13ca7b097
Process: 998 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=killed, signal=ABRT)
Main PID: 998 (code=killed, signal=ABRT)

Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Start request repeated too quickly.
Oct 13 10:57:59 DietPi systemd\[1\]: jellyfin.service: Failed with result ‘signal’.
Oct 13 10:57:59 DietPi systemd\[1\]: Failed to start jellyfin.service - Jellyfin Media Server.

Looks like this issue:
https://github.com/jellyfin/jellyfin/issues/12289

So your drive runs out of space when you do a rescan.
Can you check:

df -h

And do you have a backup? Your db is probably gone now.

Jappe, I think you are right, I have just removed the pendrive and found for some reason there were backups of backups taking up most of the space on the pendrive so I will remove the offending data and reinstall jellyfin, thanks.

yes the backup is gone but it’s easy to reinstall jellyfin as I have another instance on a different drive

Jellyfin is up again but now I will have to keep an eye on how and why I had multiple backups of backups on top of each other which then took up all the space of my 64 GB pendrive

I cannot connect to Jellyfin and am getting exactly the same error message after upgrading to Dietpi 9.18.

Use last nights backup to revert to 9.17 and it worked. Upgraded again and issue re-occurred.
System is a Pi5 headless server and nvme drive has >1TB free.
FYI I use Pi-hole/unbound and my Nextcloud is working

pls open an own issue and share all relevant information. Original issue was a full file system

Hi,

I think I’ve managed to identify the problem and the solution. The update to version 10.11.0 is a significant one and requires, among other things, updating the Jellyfin database. When you run sudo journalctl -u jellyfin.service -e, you’ll see an error message about insufficient space in /var/log/jellyfin. The space that DietPi assigns by default to the tmpfs for /var/log is 50 MB, but this new version of Jellyfin needs at least 512 MB.

What I did, and what worked for me, was increase the size of /var/log to 512 MB, which allowed Jellyfin to start without any issues. It completed the entire update process and is now running perfectly. Once the update was finished, I tried restoring the /var/log partition to the original 50 MB to see if the issue was only related to the update, but it wasn’t. If there isn’t at least 512 MB on that partition, Jellyfin won’t start.

TL;DR:

sudo nano /etc/fstab ←- change tmpfs /var/log tmpfs size=50Mb to size=512Mb+

sudo systemctl daemon-reload

sudo mount -o remount /var/log

sudo systemctl restart jellyfin

Cheers!

1 Like

I can confirm that jellyfin ungracefully exits if the folders are too small. I needed to adjust /var/log from 50 to 550 mb (jellyfin expects 512 MB) and /tmp/ from 1.9GB to 2.1 GB (jellyfin expects 2 GB)

root@DietPi:~# head -20 /etc/fstab
#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=2100M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=550M,noatime,lazytime,nodev,nosuid

Why the hack does it produce 500 MiB pf logs?? Sounds like a bug to me. Also what does or use /tmp for such amounts for? Video transcoding is/should be done on disk, the package is APT and the database a few MiB. If it uses 2 GiB in /tmp this hence also sounds like a bug to me.

Looks like it is very much intended.

1 Like

Thanks, so a feature that clearly shoots above any goal: 512 MiB for logging … and if /tmp is used for transcoding, there should be a way to move that to disk. I remember this was topic already, not sure whether in Jellyfin or Kodi, and a path on disk was used by default for this exact reason. Nothing else would/should be able to take even close to 2 GiB.

EDIT: And btw, no need to go above 2048 MiB for /tmp and 512 MiB for /var/log. Jellyfin does not actually use or reserve that size, it just checks whether in theory that would be available. For /var/log with hourly log clearing this will not even remotely be ever the case. For /tmp it depends on the video source and resolution, and whether this trickplay feature is used, which generates regular interval thumbnail images for videos. But other applications use /tmp only rarely for low size stuff which is usually removed after the task has been done. dietpi-software uses it for downloads up to 200 MiB or so, maybe 500 MiB for archive + extracted data temporarily, but then the Jellyfin service is stopped.

EDIT2: The logging dir can be changed via e.g. JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/logs in /etc/default/jellyfin. But for the logs then some additional rotation would need to be done. A solution for /tmp could be a bind mount or symlinks /tmp/jellyfin => /mnt/dietpi_userdata/jellyfin/tmp or so. Maybe it also respects the TMPDIR environment variable. E.g. with TMPDIR=/var/tmp, maybe it uses /var/tmp/jellyfin, which is on disk.

For transcoding, it can be actually changed already: TrueNAS SCALE | Jellyfin
But not sure whether this affects the 2 GiB requirement :thinking:.

EDIT3: Ah that is for the TrueNAS SCALE Jellyfin app only.

Okay, until there is some more flexibility added to Jellyfin in this regards, our solution:

G_CONFIG_INJECT 'JELLYFIN_LOG_DIR=' 'JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/log' /etc/default/jellyfin
G_CONFIG_INJECT 'TMPDIR=' 'TMPDIR="$JELLYFIN_CACHE_DIR/temp"' /etc/default/jellyfin

The log file is rotated automatically by Jellyfin, see /etc/jellyfin/logging.default.json. I would have preferred to disable file logging completely, since it is just a duplicate of journalctl -u jellyfin syslogs. There are even two config files /etc/jellyfin/logging.default.json and /etc/jellyfin/logging.json where this is defined. But Jellyfin internally seems to always merge the config arrays with defaults, which contain and hence readd the "async" file logging entry.

The TMPDIR change basically restores the behavior from Jellyfin pre-10.10, where a temp subdir of the cache dir was used, not /tmp: Use real temp dir instead of cache dir for temp files (#12226) · jellyfin/jellyfin@c666f9d · GitHub
There is even a hint about exactly that in the env file /etc/default/jellyfin.

EDIT: Fixed with: dietpi-software: Jellyfin: fix install due v10.11 changes · MichaIng/DietPi@ce6a02f · GitHub

4 Likes

JF also not working for me following DietPi upgrade. The log reference is 9aa6266c-4f80-4d65-be68-ce2747f14ac4

I’m no techie, but it looks like there is a workaround in this thread. However I have no idea how to implement it. Is it possible to have a step by step guide?

Many thanks

Its directly in the post before yours.

1 Like

sorry to be so dim, but I just copy and paste that code?

Yes. Requires root privileges, so if you are logged in as non-root:

G_SUDO G_CONFIG_INJECT 'JELLYFIN_LOG_DIR=' 'JELLYFIN_LOG_DIR=/mnt/dietpi_userdata/jellyfin/log' /etc/default/jellyfin
G_SUDO G_CONFIG_INJECT 'TMPDIR=' 'TMPDIR="$JELLYFIN_CACHE_DIR/temp"' /etc/default/jellyfin
1 Like