Jellyfin Forum
Cant install on Debian 12 - 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: Cant install on Debian 12 (/t-cant-install-on-debian-12)

Pages: 1 2


Cant install on Debian 12 - Ilya - 2024-08-29

I've tried installing jellyfin by different methods on a fresh OS install (including curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash), but get the same result - jellyfin service does not start

Results are always the same:
Code:
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: signal) since Thu 2024-08-29 19:04:05 BST; 4min 8s ago
  Duration: 479ms
    Process: 2102 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=killed, signal=ABRT)
  Main PID: 2102 (code=killed, signal=ABRT)
        CPU: 450ms

Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Failed with result 'signal'.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Aug 29 19:04:05 Berryzavr systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Start request repeated too quickly.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Failed with result 'signal'.
Aug 29 19:04:05 Berryzavr systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
× jellyfin.service - Jellyfin Media Server
    Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/jellyfin.service.d
            └─jellyfin.service.conf
    Active: failed (Result: signal) since Thu 2024-08-29 19:04:05 BST; 4min 8s ago
  Duration: 479ms
    Process: 2102 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=killed, signal=ABRT)
  Main PID: 2102 (code=killed, signal=ABRT)
        CPU: 450ms

Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Failed with result 'signal'.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Aug 29 19:04:05 Berryzavr systemd[1]: Stopped jellyfin.service - Jellyfin Media Server.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Start request repeated too quickly.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Failed with result 'signal'.
Aug 29 19:04:05 Berryzavr systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
-------------------------------------------------------------------------------

You should see the service as 'active (running)' above. If not, use https://jellyfin.org/contact to find us for troubleshooting.

You can access your new instance now at http://192.168.0.186:8096 in your web browser to finish setting up Jellyfin.

Thank you for installing Jellyfin, and happy watching!

Ilya@Berryzavr:~ $ journalctl -xeu jellyfin
Aug 29 19:04:05 Berryzavr 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 2096 and the job result is done.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Start request repeated too quickly.
Aug 29 19:04:05 Berryzavr systemd[1]: jellyfin.service: Failed with result 'signal'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit jellyfin.service has entered the 'failed' state with result 'signal'.
Aug 29 19:04:05 Berryzavr 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 2096 and the job result is failed.
lines 509-530/530 (END)



RE: Cant install on Debian 12 - Fate - 2024-08-29

can you post everything in:
journalctl -u jellyfin.service
to pastebin and link it here?

or
journalctl -u jellyfin.service --since=yesterday
if the other is too much text


RE: Cant install on Debian 12 - TheDreadPirate - 2024-08-29

(2024-08-29, 06:24 PM)Fate Wrote: can you post everything in:
journalctl -u jellyfin.service
to pastebin and link it here?

or
journalctl -u jellyfin.service --since=yesterday
if the other is too much text

You can also use this to limit the output

Code:
sudo journalctl -u jellyfin -n 200 --no-pager

-n 200 limits it to the last 200 lines, --no-pager will just dump the output to the terminal instead of putting you in a vim-like interface.


RE: Cant install on Debian 12 - bitzerj - 2024-08-30

Same issue...tried to install on a new bare metal PC.  Same exact error...

Debian 12 is a clean new install...


RE: Cant install on Debian 12 - Host-in-the-Shell - 2024-08-30

Could you also provide the same logs that others requested of OP? That way we can have an idea of what actually is going on.

Edit: Missed your log. Thanks.

Edit2: Did you by any chance ran the installer script as the root user instead of using sudo as a normal user? I've heard of that causing issues. If you did, uninstall jellyfin as the root user, then log back in as a user with sudo permissions (if you don't have one, then you'll have to make one) and reinstall under said user while invoking sudo.


RE: Cant install on Debian 12 - bitzerj - 2024-08-30

I ran it under a user account with sudo permissions. I did an uninstall (Remove) and reinstall just to check and had the same error.


RE: Cant install on Debian 12 - Host-in-the-Shell - 2024-08-30

Since it's a fresh install and I'm assuming it's okay to start over, could you try to run

Code:
sudo apt purge jellyfin
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash

and see if there's any difference?


RE: Cant install on Debian 12 - bitzerj - 2024-08-30

No difference, had the same error when it tried to start the service.


RE: Cant install on Debian 12 - bitzerj - 2024-08-30

Success! I went in and removed the systemd stuff from the previous installations and did a daemon-reload. Sorry, not a real linux expert... I rebooted the server, ran the curl script again and it failed, but this time was with a different error, that the service was disabled. I did a systemctl enable jellyfin and then a systemctl start jellyfin and it started.


RE: Cant install on Debian 12 - Host-in-the-Shell - 2024-08-30

That's great. Just for reference and in case somebody else is still stuck even after all of this, then there seems to be a permissions issue with one of the core directories (although that shouldn't happen if you've installed using the installation script, but let's continue).

What I would try then is to uninstall jellyfin, delete every directory related to it (/var/lib/jellyfin, /var/log/jellyfin, /var/cache/jellyfin) with a command like

Code:
sudo rm -r /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin
 
and reinstall with the script to see if that gets rid of the permissions issue.

All that said, I'm glad you were able to fix the problem. If anything, I also forgot to ask you for the output of 

Code:
sudo systemctl status jellyfin.service

so it's my fault as well for assuming you would know to check that. But hey, all's well that ends well.