Jellyfin Forum
jellyfin.service Fails to Start - 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.service Fails to Start (/t-jellyfin-service-fails-to-start)



jellyfin.service Fails to Start - X0X0X0 - 2024-12-24

On Debian 12 machine.

Jellyfin was working all find and dandy until I decided to "Shutdown" the server via the web-panel. 

I couldn't start it manually. At the moment, Jellyfin server will not launch.

I did try to uninstall Jellyfin*, yet, when installed via repository, says already installed.

Managed to install Jellyfin server via .deb package finally.

Code:
user@debian:~$ sudo systemctl start jellyfin.service                         
Job for jellyfin.service failed because of unavailable resources or another system error.
See "systemctl status jellyfin.service" and "journalctl -xeu jellyfin.service" for details.
user@debian:~$ sudo systemctl status jellyfin.service
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
    Active: failed (Result: resources) since Tue 2024-12-24 12:22:03 PST; 4min 6s ago
        CPU: 0

Dec 24 12:22:03 PC systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Dec 24 12:22:03 PC systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
Dec 24 12:22:03 PC systemd[1]: jellyfin.service: Start request repeated too quickly.
Dec 24 12:22:03 PC systemd[1]: jellyfin.service: Failed with result 'resources'.
Dec 24 12:22:03 PC systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

user@debian:~$ sudo systemctl restart jellyfin
Job for jellyfin.service failed because of unavailable resources or another system error.
See "systemctl status jellyfin.service" and "journalctl -xeu jellyfin.service" for details.

Any suggestion on how to overcome this issue? 

Thank you


RE: jellyfin.service Fails to Start - X0X0X0 - 2024-12-24

Here are the results of: journalctl -xeu jellyfin

Code:
User@PC:~$ sudo  journalctl -xeu jellyfin
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit jellyfin.service has entered the 'failed' state with result 'resources'.
Dec 24 12:29:59 PC systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
░░ Subject: A start job for unit jellyfin.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit jellyfin.service has finished with a failure.
░░
░░ The job identifier is 7276 and the job result is failed.
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 4.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit jellyfin.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 24 12:29:59 PC systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
░░ Subject: A stop job for unit jellyfin.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit jellyfin.service has finished.
░░
░░ The job identifier is 7443 and the job result is done.
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Failed to load environment files: No such file or directory
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Failed to run 'start' task: No such file or directory
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit jellyfin.service has entered the 'failed' state with result 'resources'.
Dec 24 12:29:59 PC systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
░░ Subject: A start job for unit jellyfin.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit jellyfin.service has finished with a failure.
░░
░░ The job identifier is 7443 and the job result is failed.
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit jellyfin.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 24 12:29:59 PC systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
░░ Subject: A stop job for unit jellyfin.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit jellyfin.service has finished.
░░
░░ The job identifier is 7610 and the job result is done.
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Start request repeated too quickly.
Dec 24 12:29:59 PC systemd[1]: jellyfin.service: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit jellyfin.service has entered the 'failed' state with result 'resources'.
Dec 24 12:29:59 PC systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
░░ Subject: A start job for unit jellyfin.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit jellyfin.service has finished with a failure.
░░
░░ The job identifier is 7610 and the job result is failed.



RE: jellyfin.service Fails to Start - X0X0X0 - 2024-12-24

By Jove! This is magic..!

I tried out these steps from this Thread: SOLVED: Jellyfin attempting to access /jellyfin after server reboot


Code:
sudo mkdir /jellyBackup
cd /jellyBackup
sudo rsync -a -p --progress /var/lib/jellyfin libJellyfin/
sudo rsync -a -p --progress /etc/jellyfin etcJellyfin/
sudo rsync -a -p --progress /var/cache/jellyfin cacheJellyfin/
sudo apt purge jellyfin*
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash
sudo systemctl stop jellyfin
sudo rsync -a -p --progress libJellyfin/jellyfin /var/lib/ --delete
sudo rsync -a -p --progress etcJellyfin/jellyfin /etc/ --delete
sudo rsync -a -p --progress cacheJellyfin/jellyfin /var/cache/ --delete
sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/cache/jellyfin
sudo systemctl start jellyfin


I thank you @TheDreadPirate