• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting SOLVED: Jellyfin won't restart. core-dump

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin won't restart. core-dump

    Michael Tot Korsgaard
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #1
    2024-12-23, 07:10 PM
    So today my Jellyfin started to no longer allow me to log in. I realised that this was caused by no more space on the server I increased that, moved my movie library (not installation) to a new folder and softl inked that to the old folder, in order to keep references as they were.

    Then I restarted the instance via

    Code:
    sudo systemctl restart jellyfin

    After which my server started responding with a 502 for my jellyfin instance.

    Doing a

    Code:
    sudo systemctl status jellyfin.service

    Gives me this:

    Code:
    × 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 Mon 2024-12-23 18:57:22 UTC; 53ms ago
      Duration: 455ms
        Process: 1880814 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=dumped, signal=ABRT)
      Main PID: 1880814 (code=dumped, signal=ABRT)
            CPU: 341ms

    Dec 23 18:57:22 ubuntu-16gb-hel1-2 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    Dec 23 18:57:22 ubuntu-16gb-hel1-2 systemd[1]: jellyfin.service: Start request repeated too quickly.
    Dec 23 18:57:22 ubuntu-16gb-hel1-2 systemd[1]: jellyfin.service: Failed with result 'core-dump'.
    Dec 23 18:57:22 ubuntu-16gb-hel1-2 systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

    And the log looks like this:

    Code:
    [2024-12-23 18:57:21.796 +00:00] [INF] Jellyfin version: "10.10.3"
    [2024-12-23 18:57:21.815 +00:00] [INF] Environment Variables: ["[JELLYFIN_ADDITIONAL_OPTS, ]", "[JELLYFIN_DATA_DIR, /var/lib/jellyfin]", "[JELLYFIN_CONFIG_DIR, /etc/jellyfin]", "[JELLYFIN_FFMPEG_OPT, --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg]", "[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]", "[JELLYFIN_CACHE_DIR, /var/cache/jellyfin]", "[JELLYFIN_WEB_OPT, --webdir=/usr/share/jellyfin/web]", "[JELLYFIN_LOG_DIR, /var/log/jellyfin]"]
    [2024-12-23 18:57:21.817 +00:00] [INF] Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--webdir=/usr/share/jellyfin/web", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
    [2024-12-23 18:57:21.818 +00:00] [INF] Operating system: "Ubuntu 24.04.1 LTS"
    [2024-12-23 18:57:21.818 +00:00] [INF] Architecture: X64
    [2024-12-23 18:57:21.818 +00:00] [INF] 64-Bit Process: True
    [2024-12-23 18:57:21.818 +00:00] [INF] User Interactive: True
    [2024-12-23 18:57:21.818 +00:00] [INF] Processor count: 8
    [2024-12-23 18:57:21.819 +00:00] [INF] Program data path: "/var/lib/jellyfin"
    [2024-12-23 18:57:21.819 +00:00] [INF] Log directory path: "/var/log/jellyfin"
    [2024-12-23 18:57:21.819 +00:00] [INF] Config directory path: "/etc/jellyfin"
    [2024-12-23 18:57:21.819 +00:00] [INF] Cache path: "/var/cache/jellyfin"
    [2024-12-23 18:57:21.819 +00:00] [INF] Temp directory path: "/tmp/jellyfin"
    [2024-12-23 18:57:21.819 +00:00] [INF] Web resources path: "/usr/share/jellyfin/web"
    [2024-12-23 18:57:21.819 +00:00] [INF] Application directory: "/usr/lib/jellyfin/bin/"
    [2024-12-23 18:57:21.862 +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)

    I'm not good that reading these kind of things and was hoping that someone could help me dechipher it.

    My setup:
    Ubuntu 24.04.1 LTS running on a Hetzner server.
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-23, 07:38 PM
    Delete all the XML files in /etc/jellyfin.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Michael Tot Korsgaard
    Offline

    Junior Member

    Posts: 7
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    #3
    2024-12-23, 07:42 PM
    Thanks. That solved it after restarting the instance.

    Can you explain why that works?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-23, 07:57 PM (This post was last modified: 2024-12-23, 07:57 PM by TheDreadPirate. Edited 2 times in total.)
    One of the XML files in that directory was corrupted or truncated. I can't definitively say why that happens (it's never happened to me), but other users that had this problem USUALLY had their disk fill up at some point.

    Deleting those files will trigger Jellyfin to regenerate them with default settings.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    at0ms
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Jan
    Reputation: 0
    #5
    2025-01-22, 01:06 AM
    This was my solution also. Thank you.
    asilvera4
    Offline

    Junior Member

    Posts: 7
    Threads: 1
    Joined: 2024 May
    Reputation: 2
    Country:United States
    #6
    2025-05-07, 05:40 PM
    So glad I found this. This also fixed my non-starting service today. Thank you.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode