Jellyfin Forum
jellyfin won't launch since 10.9.11 update - 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: jellyfin won't launch since 10.9.11 update (/t-jellyfin-won-t-launch-since-10-9-11-update)

Pages: 1 2


jellyfin won't launch since 10.9.11 update - jellyhank - 2024-09-15

Hi all,

I've been enjoying Jellyfin for the past month or so, and recently decided to update to 10.9.11. I'm running a baremetal (Intel NUC) Ubuntu to host my Jellyfin. 

When I run jellyfin in the terminal, this is what i get:


hank@jellyfin:~$ jellyfin
[23:51:51] [INF] [1] Main: Jellyfin version: 10.9.11
[23:51:51] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /home/hank/jellyfin/log]"]
[23:51:51] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll"]
[23:51:51] [INF] [1] Main: Operating system: Ubuntu 24.04.1 LTS
[23:51:51] [INF] [1] Main: Architecture: X64
[23:51:51] [INF] [1] Main: 64-Bit Process: True
[23:51:51] [INF] [1] Main: User Interactive: True
[23:51:51] [INF] [1] Main: Processor count: 4
[23:51:51] [INF] [1] Main: Program data path: /home/hank/jellyfin
[23:51:51] [INF] [1] Main: Log directory path: /home/hank/jellyfin/log
[23:51:51] [INF] [1] Main: Config directory path: /home/hank/jellyfin
[23:51:51] [INF] [1] Main: Cache path: /home/hank/.cache/jellyfin
[23:51:51] [INF] [1] Main: Web resources path: /usr/lib/jellyfin/bin/jellyfin-web
[23:51:51] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[23:51:51] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: There is an error in XML document (400, 26).
---> System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 400, position 26.
  at System.Xml.XmlTextReaderImpl.Throw(Exception e)
  at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
  at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
  at System.Xml.XmlTextReaderImpl.ParseElement()
  at System.Xml.XmlTextReaderImpl.ParseElementContent()
  at System.Xml.XmlReader.MoveToContent()
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read3_MigrationOptions(Boolean isNullable, Boolean checkType)
  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)
Unhandled exception. System.InvalidOperationException: There is an error in XML document (400, 26).
---> System.Xml.XmlException: Unexpected end of file while parsing Name has occurred. Line 400, position 26.
  at System.Xml.XmlTextReaderImpl.Throw(Exception e)
  at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
  at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
  at System.Xml.XmlTextReaderImpl.ParseElement()
  at System.Xml.XmlTextReaderImpl.ParseElementContent()
  at System.Xml.XmlReader.MoveToContent()
  at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read3_MigrationOptions(Boolean isNullable, Boolean checkType)
  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)
Aborted (core dumped)


Any advice would be appreciated! In typical n00b fashion, I didn't make a back-up, ah well ...


RE: jellyfin won't launch since 10.9.11 update - TheDreadPirate - 2024-09-15

Have you always been starting jellyfin by typing literally "jellyfin"? Jellyfin should be starting as a service.

What is the output of this command.

Code:
sudo systemctl status jellyfin



RE: jellyfin won't launch since 10.9.11 update - jellyhank - 2024-09-15

Ah, nope! It's always autostarted. But ever since things got funky, I was curious about what would happen if I wrote jellyfin and if the output of that would be a helpful diagnostic.
I've inputted your command. Here's what it says:


hank@jellyfin:~$ sudo systemctl status jellyfin
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: core-dump) since Sat 2024-09-14 23:33:57 UTC; 1h 32min ago
  Duration: 1.173s
  Main PID: 851 (code=dumped, signal=ABRT)
        CPU: 372ms

Sep 14 23:33:57 jellyfin systemd[1]: jellyfin.service: Scheduled restart job, restart counter i>
Sep 14 23:33:57 jellyfin systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 14 23:33:57 jellyfin systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Sep 14 23:33:57 jellyfin systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
lines 1-13/13 (END)



RE: jellyfin won't launch since 10.9.11 update - TheDreadPirate - 2024-09-15

Running "jellyfin" does not work the same as starting the service. It will use different parameters and not use your existing config files.

Share the output of this command via pastebin.

Code:
sudo journalctl -u jellyfin -n 200 --no-pager



RE: jellyfin won't launch since 10.9.11 update - jellyhank - 2024-09-15

I see, thank you!
Here is the output of your suggested command:
https://pastebin.com/amepScL0


RE: jellyfin won't launch since 10.9.11 update - TheDreadPirate - 2024-09-15

Try removing /etc/jellyfin/migrations.xml then sudo systemctl restart jellyfin. If it still fails remove all of the XMLs in /etc/jellyfin.


RE: jellyfin won't launch since 10.9.11 update - jellyhank - 2024-09-15

Thanks! So I tried deleting migrations.xml and that didn't work, so then I tried deleting all the XMLs in the /etc/jellyfin. No dice. Whenever I try to log into Jellyfin on Chrome, it just says the site can't be reached. What else should I try?


RE: jellyfin won't launch since 10.9.11 update - TheDreadPirate - 2024-09-15

Is the service actually running now? If so, clear your browser cache or ctrl+f5.


RE: jellyfin won't launch since 10.9.11 update - jellyhank - 2024-09-15

Nah, the service still isn't running. This is what I get with the sudo systemctl status jellyfin command you suggested earlier:

hank@jellyfin:~$ sudo systemctl status jellyfin
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: core-dump) since Sun 2024-09-15 16:34:50 UTC; 3min 58s ago
  Duration: 1.394s
    Process: 2633 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_>
  Main PID: 2633 (code=dumped, signal=ABRT)
        CPU: 536ms

Sep 15 16:34:50 jellyfin systemd[1]: jellyfin.service: Scheduled restart job, restart counter i>
Sep 15 16:34:50 jellyfin systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 15 16:34:50 jellyfin systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Sep 15 16:34:50 jellyfin systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
lines 1-14/14 (END)



RE: jellyfin won't launch since 10.9.11 update - TheDreadPirate - 2024-09-16

Can share the latest output of this command?

Code:
sudo systemctl restart jellyfin

When this fails

Code:
sudo journalctl -u jellyfin -n 200 --no-pager