• 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 immediately goes inactive (dead) after I start it

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin immediately goes inactive (dead) after I start it

    GodlessArco
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Sep
    Reputation: 0
    #1
    2025-09-19, 01:41 AM
    it lasts for maybe a second before it just shuts itself down. Idk what the issue is

    Code:
    [color=#000000]○ jellyfin.service - Jellyfin Media Server[/color] [/font]
    [font=monospace][color=#000000]    Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; [/color][color=#54ff54][b]enabled[/b][/color][color=#000000]; preset: [/color][color=#54ff54][b]enabled[/b][/color][color=#000000])[/color] [/font]
    [font=monospace][color=#000000]   Drop-In: /etc/systemd/system/jellyfin.service.d[/color] [/font]
    [font=monospace][color=#000000]            └─jellyfin.service.conf[/color] [/font]
    [font=monospace][color=#000000]    Active: inactive (dead) since Fri 2025-09-19 01:33:25 UTC; 5s ago[/color] [/font]
    [font=monospace][color=#000000]  Duration: 1.572s[/color] [/font]
    [font=monospace][color=#000000]   Process: 2864 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPT[/color][color=#ffffff]>[/color] [/font]
    [font=monospace][color=#000000]  Main PID: 2864 (code=exited, status=0/SUCCESS)[/color] [/font]
    [font=monospace][color=#000000]       CPU: 1.588s[/color] [/font]

    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]:    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParam[/color][color=#ffffff]>[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]:    at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, Can[/color][color=#ffffff]>[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]:    at Emby.Server.Implementations.ApplicationHost.InitializeServices()[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]:    at Emby.Server.Implementations.ApplicationHost.InitializeServices()[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]:    at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConf[/color][color=#ffffff]>[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]: [01:33:25] [INF] Running query planner optimizations in the database... This might take a while[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]: [01:33:25] [INF] Disposing CoreAppHost[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez jellyfin[2864]: [01:33:25] [INF] Disposing PluginManager[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez systemd[1]: jellyfin.service: Deactivated successfully.[/color] [/font]
    [font=monospace][color=#000000]Sep 19 01:33:25 cabrerarodriguez systemd[1]: jellyfin.service: Consumed 1.588s CPU time, 50.4M memory peak, 0B memory swap peak[/color][/font]
    [font=monospace]

    If im fast enough I can see it active when i systemctl status it after systemctl start it
    Go to solution
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,379
    Threads: 0
    Joined: 2024 Jun
    Reputation: 73
    #2
    2025-09-19, 03:54 AM
    post the results from this command: sudo journalctl -u jellyfin -n 500 --no-pager
    GodlessArco
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Sep
    Reputation: 0
    #3
    2025-09-20, 01:25 AM
    (2025-09-19, 03:54 AM)theguymadmax Wrote: post the results from this command: sudo journalctl -u jellyfin -n 500 --no-pager

    its too long to share here so this is what ive got
    https://pastecode.io/s/5fjdab26
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,379
    Threads: 0
    Joined: 2024 Jun
    Reputation: 73
    #4
    2025-09-20, 01:48 AM
    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
    GodlessArco
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Sep
    Reputation: 0
    #5
    2025-09-20, 01:55 AM
    (2025-09-20, 01:48 AM)theguymadmax Wrote: 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

    That changed nothing. Was I supposed to get an output from any of those commands?
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,379
    Threads: 0
    Joined: 2024 Jun
    Reputation: 73
    #6
    2025-09-20, 03:16 AM
    Looking more at the logs, it says you dont' have write access to the database. Run the below two commands to make sure Jellyfin has the correct permissions. 

    sudo chown -R jellyfin:jellyfin /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /etc/jellyfin
    sudo chmod -R u+rwX /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /etc/jellyfin
    GodlessArco
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2025 Sep
    Reputation: 0
    #7
    2025-09-20, 12:34 PM
    (2025-09-20, 03:16 AM)theguymadmax Wrote: Looking more at the logs, it says you dont' have write access to the database. Run the below two commands to make sure Jellyfin has the correct permissions. 

    sudo chown -R jellyfin:jellyfin /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /etc/jellyfin
    sudo chmod -R u+rwX /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /etc/jellyfin

    Yup that was it!, thank you very much!
    « 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