Jellyfin Forum
SOLVED: Jellyfin service not starting - 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: SOLVED: Jellyfin service not starting (/t-solved-jellyfin-service-not-starting)

Pages: 1 2 3 4


RE: Jellyfin service not starting - TheDreadPirate - 2024-01-13

What is all his stuff where you are creating jellyfin.sh? What is in it?

Open this file and show me what the contents are.

/etc/systemd/system/multi-user.target.wants/jellyfin.service


RE: Jellyfin service not starting - merulius - 2024-01-14

(2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

Open this file and show me what the contents are.

/etc/systemd/system/multi-user.target.wants/jellyfin.service

As follows. 

[Unit]
Description=Jellyfin
After=network.target

[Service]
Type=simple
User=jellyfin
Restart=always
ExecStart=/lib/jellyfin/jellyfin.sh

[Install]
WantedBy=multi-user.target


RE: Jellyfin service not starting - merulius - 2024-01-14

I've just realised the History is going to be mileading because I have been running sessions on two different machines.


RE: Jellyfin service not starting - merulius - 2024-01-14

I have done a bit more purging of apps that I installed as trials (Kodi, Plex), purged Jellyfin (again) and re-installed.

Here is the result of install. Still not working. There must be SOMETHING hanging it up.

https://srcb.in/W8WYf1VhlI


RE: Jellyfin service not starting - TheDreadPirate - 2024-01-14

(2024-01-14, 11:29 AM)merulius Wrote:
(2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

Open this file and show me what the contents are.

/etc/systemd/system/multi-user.target.wants/jellyfin.service

As follows. 

[Unit]
Description=Jellyfin
After=network.target

[Service]
Type=simple
User=jellyfin
Restart=always
ExecStart=/lib/jellyfin/jellyfin.sh

[Install]
WantedBy=multi-user.target

I'm wondering if apt purge doesn't remove this file.  Because this file is wrong (ExecStart primarily), I'm assuming from when you were editing it. Which I'm assuming since you opened it with nano.

Here is mine.  Copy and paste it into yours and try to start the service again.

Quote:[Unit]
Description = Jellyfin Media Server
After = network-online.target

[Service]
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143

[Install]
WantedBy = multi-user.target



RE: Jellyfin service not starting - merulius - 2024-01-15

Thanks Pirate. Sounds like a plan.
I'm out for the morning, but will report back this afternoon.


(2024-01-14, 05:06 PM)TheDreadPirate Wrote:
(2024-01-14, 11:29 AM)merulius Wrote:
(2024-01-13, 11:43 PM)TheDreadPirate Wrote: What is all his stuff where you are creating jellyfin.sh?  What is in it?

Open this file and show me what the contents are.

/etc/systemd/system/multi-user.target.wants/jellyfin.service

As follows. 

[Unit]
Description=Jellyfin
After=network.target

[Service]
Type=simple
User=jellyfin
Restart=always
ExecStart=/lib/jellyfin/jellyfin.sh

[Install]
WantedBy=multi-user.target

I'm wondering if apt purge doesn't remove this file.  Because this file is wrong (ExecStart primarily), I'm assuming from when you were editing it.  Which I'm assuming since you opened it with nano.

Here is mine.  Copy and paste it into yours and try to start the service again.

Quote:[Unit]
Description = Jellyfin Media Server
After = network-online.target

[Service]
Type = simple
EnvironmentFile = /etc/default/jellyfin
User = jellyfin
Group = jellyfin
WorkingDirectory = /var/lib/jellyfin
ExecStart = /usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
Restart = on-failure
TimeoutSec = 15
SuccessExitStatus=0 143

[Install]
WantedBy = multi-user.target



RE: Jellyfin service not starting - merulius - 2024-01-15

And just like that, it works!

Thanks, Pirate. You stuck with it, I learned a lot, and maybe others will be helped.

Could you summarise what you think happened here so that other forum members can get fixed? I can't be the only one to accidentally screw it up.

If I could "buy you a coffee" I would.


RE: Jellyfin service not starting - TheDreadPirate - 2024-01-15

TLDR, don't modify systemd files unless you know what you are doing. Ask for help before you get too deep in Linux's bowels. Read the documentation completely before starting.


RE: Jellyfin service not starting - dohuyhoangvn93 - 2024-05-13

I am new to linux and solved the problem with this article. Ok-hand
This is the difference between the two .service files I searched on gemini.
It is puzzling that this erroneous content is on Jellyfin's main documentation page.  Face-with-monocle

Mine had an error when installing on Linux Mint 21

It happened after I uninstalled flatpak and reinstalled it via CLI
Does anyone have the same problem as me? Why doesn't it run when following the instructions in the official jellyfin documentation?

[Image: Capture.png][/img]
[Image: Capture.png]


RE: Jellyfin service not starting - TheDreadPirate - 2024-05-13

(2024-05-13, 02:24 AM)dohuyhoangvn93 Wrote: I am new to linux and solved the problem with this article. Ok-hand
This is the difference between the two .service files I searched on gemini.
It is puzzling that this erroneous content is on Jellyfin's main documentation page.  Face-with-monocle

Mine had an error when installing on Linux Mint 21

It happened after I uninstalled flatpak and reinstalled it via CLI
Does anyone have the same problem as me? Why doesn't it run when following the instructions in the official jellyfin documentation?

[Image: Capture.png][/img]
[Image: Capture.png]

The documentation you screenshoted is for a "manual" Linux install for distros that we do not have packages for.  If you are running linux mint, the jellyfin service file is automatically created and configured correctly after you install from our repo with apt.