Jellyfin Forum
Jellyfin can't restart by itself? - 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 can't restart by itself? (/t-jellyfin-can-t-restart-by-itself)



Jellyfin can't restart by itself? - AbendrotBarbecue - 2025-08-22

Jellyfin hasn't been able to restart by itself recently (I think since I connected it to nginx?), it just acts like if I'd asked it to shut off. 
When I type "systemctl start Jellyfin" it asks for my authentication for "org.freedesktop.systemd1.manage-units". 
There's nothing actually wrong after that, it's just inconvinient having to SSH into my server to start jellyfin manually when there's a button to restart the server right there. 
How do I get Jellyfin to let itself restart again? 
Thank you in advance!


RE: Jellyfin can't restart by itself? - AbendrotBarbecue - 2025-08-22

From what I can gather, it's starting to look like a permissions issue...


RE: Jellyfin can't restart by itself? - crobibero - 2025-08-22

It might be a permissions issue, I suggest adding the server logs as they would likely show why Jellyfin failed to restart


RE: Jellyfin can't restart by itself? - AbendrotBarbecue - 2025-08-22

Okay, found a solution but it's probably not a good one.

I looked into the command that was stopping it (polkit) and found this link:
https://bbs.archlinux.org/viewtopic.php?id=304468

Which lead me to make the same file but with tweaks like so:
Code:
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units")
    {
        return polkit.Result.YES;
    }
});


Is it wise? Probably not, no, but it works, and that's about all I can ask.

(2025-08-22, 02:02 PM)crobibero Wrote: It might be a permissions issue, I suggest adding the server logs as they would likely show why Jellyfin failed to restart

Sorry! Was typing right when you sent that. I figured out the specific program that was causing it so I can confirm it's no fault of Jellyfins! This was actually an issue with Polkit (why now I don't know, but I know it's probably out of the scope of this forum! Sorry...!)