• 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 Service Fails to Start (but Server Still Works)

     
    • 0 Vote(s) - 0 Average

    SOLVED: Jellyfin Service Fails to Start (but Server Still Works)

    Zeanoth
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:Canada
    #1
    2024-11-18, 04:08 PM
    I recently installed Jellyfin (10.10.2.0) on an Ubuntu Server 24.04.1 VM through ProxMox. Everything worked correctly until the server rebooted and the service failed to start. However, if I go to connect to the web console I can connect and get full functionality if I just remove the server and re-add it. 
    When I use journalctl on jellyfin I get the following:

    Code:
    jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    ░░ Subject: Unit process exited
    ░░ Defined-By: systemd
    ░░ Support: http://www.ubuntu.com/support
    ░░
    ░░ An ExecStart= process belonging to unit jellyfin.service has exited.
    ░░
    ░░ The process' exit code is 'exited' and its exit status is 1.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    ░░ Subject: Unit failed
    ░░ Defined-By: systemd
    ░░ Support: http://www.ubuntu.com/support
    ░░
    ░░ The unit jellyfin.service has entered the 'failed' state with result 'exit-code'.
    Nov 17 12:44:53 nas 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: http://www.ubuntu.com/support
    ░░
    ░░ Automatic restarting of the unit jellyfin.service has been scheduled, as the result for
    ░░ the configured Restart= setting for the unit.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Start request repeated too quickly.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    ░░ Subject: Unit failed
    ░░ Defined-By: systemd
    ░░ Support: http://www.ubuntu.com/support
    ░░
    ░░ The unit jellyfin.service has entered the 'failed' state with result 'exit-code'.
    Nov 17 12:44:53 nas systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
    ░░ Subject: A start job for unit jellyfin.service has failed
    ░░ Defined-By: systemd
    ░░ Support: http://www.ubuntu.com/support
    ░░
    ░░ A start job for unit jellyfin.service has finished with a failure.
    ░░
    ░░ The job identifier is 1528 and the job result is failed.

    Here's the output of systemctl status jellyfin:

    Code:
    sudo systemctl status jellyfin
    × jellyfin.service - Jellyfin Media Server
        Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
        Drop-In: /etc/systemd/system/jellyfin.service.d
                └─jellyfin.service.conf
        Active: failed (Result: exit-code) since Sun 2024-11-17 12:44:53 EST; 22h ago
      Duration: 201ms
      Main PID: 1782 (code=exited, status=1/FAILURE)
            CPU: 188ms

    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Start request repeated too quickly.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:53 nas systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

    The log files show nothing from November 17th, they were last updated 3 days earlier when I purged and reinstalled. I can't start the service but if I do sudo /usr/bin/jellyfin start --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg it starts fine, even though the service still says that it's not running. If the service isn't required can I just have this command run on after boot without any issues? Thanks!
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-11-18, 04:19 PM
    Can you share the output of the command below via pastebin?

    Code:
    sudo journalctl -u jellyfin -n 200 --no-pager
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Zeanoth
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:Canada
    #3
    2024-11-18, 04:55 PM
    (2024-11-18, 04:19 PM)TheDreadPirate Wrote: Can you share the output of the command below via pastebin?

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

    Sure. 
    Code:
    Nov 17 12:39:11 nas jellyfin[9224]: Jellyfin.Server 10.10.2.0
    Nov 17 12:39:11 nas jellyfin[9224]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:39:11 nas jellyfin[9224]: ERROR(S):
    Nov 17 12:39:11 nas jellyfin[9224]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:39:11 nas jellyfin[9224]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:39:11 nas jellyfin[9224]:                            etc.).
    Nov 17 12:39:11 nas jellyfin[9224]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:39:11 nas jellyfin[9224]:                            web client.
    Nov 17 12:39:11 nas jellyfin[9224]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:39:11 nas jellyfin[9224]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:39:11 nas jellyfin[9224]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:39:11 nas jellyfin[9224]:                            and pictures).
    Nov 17 12:39:11 nas jellyfin[9224]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:39:11 nas jellyfin[9224]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:39:11 nas jellyfin[9224]:                            of default found in PATH.
    Nov 17 12:39:11 nas jellyfin[9224]:  --service                Run as headless service.
    Nov 17 12:39:11 nas jellyfin[9224]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:39:11 nas jellyfin[9224]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:39:11 nas jellyfin[9224]:                            process
    Nov 17 12:39:11 nas jellyfin[9224]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:39:11 nas jellyfin[9224]:                            status change.
    Nov 17 12:39:11 nas jellyfin[9224]:  --help                    Display this help screen.
    Nov 17 12:39:11 nas jellyfin[9224]:  --version                Display version information.
    Nov 17 12:39:11 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:39:11 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:39:11 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 4.
    Nov 17 12:39:11 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:39:11 nas (jellyfin)[9235]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:39:11 nas jellyfin[9235]: Jellyfin.Server 10.10.2.0
    Nov 17 12:39:11 nas jellyfin[9235]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:39:11 nas jellyfin[9235]: ERROR(S):
    Nov 17 12:39:11 nas jellyfin[9235]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:39:11 nas jellyfin[9235]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:39:11 nas jellyfin[9235]:                            etc.).
    Nov 17 12:39:11 nas jellyfin[9235]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:39:11 nas jellyfin[9235]:                            web client.
    Nov 17 12:39:11 nas jellyfin[9235]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:39:11 nas jellyfin[9235]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:39:11 nas jellyfin[9235]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:39:11 nas jellyfin[9235]:                            and pictures).
    Nov 17 12:39:11 nas jellyfin[9235]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:39:11 nas jellyfin[9235]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:39:11 nas jellyfin[9235]:                            of default found in PATH.
    Nov 17 12:39:11 nas jellyfin[9235]:  --service                Run as headless service.
    Nov 17 12:39:11 nas jellyfin[9235]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:39:11 nas jellyfin[9235]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:39:11 nas jellyfin[9235]:                            process
    Nov 17 12:39:11 nas jellyfin[9235]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:39:11 nas jellyfin[9235]:                            status change.
    Nov 17 12:39:11 nas jellyfin[9235]:  --help                    Display this help screen.
    Nov 17 12:39:11 nas jellyfin[9235]:  --version                Display version information.
    Nov 17 12:39:12 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:39:12 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:39:12 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    Nov 17 12:39:12 nas systemd[1]: jellyfin.service: Start request repeated too quickly.
    Nov 17 12:39:12 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:39:12 nas systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
    -- Boot e663572c98b6418ca7098908475a0ec8 --
    Nov 17 12:44:50 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:44:50 nas (jellyfin)[1568]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:44:51 nas jellyfin[1568]: Jellyfin.Server 10.10.2.0
    Nov 17 12:44:51 nas jellyfin[1568]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:44:51 nas jellyfin[1568]: ERROR(S):
    Nov 17 12:44:51 nas jellyfin[1568]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:44:51 nas jellyfin[1568]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:44:51 nas jellyfin[1568]:                            etc.).
    Nov 17 12:44:51 nas jellyfin[1568]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:44:51 nas jellyfin[1568]:                            web client.
    Nov 17 12:44:51 nas jellyfin[1568]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:44:51 nas jellyfin[1568]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:44:51 nas jellyfin[1568]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:44:51 nas jellyfin[1568]:                            and pictures).
    Nov 17 12:44:51 nas jellyfin[1568]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:44:51 nas jellyfin[1568]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:44:51 nas jellyfin[1568]:                            of default found in PATH.
    Nov 17 12:44:51 nas jellyfin[1568]:  --service                Run as headless service.
    Nov 17 12:44:51 nas jellyfin[1568]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:44:51 nas jellyfin[1568]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:44:51 nas jellyfin[1568]:                            process
    Nov 17 12:44:51 nas jellyfin[1568]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:44:51 nas jellyfin[1568]:                            status change.
    Nov 17 12:44:51 nas jellyfin[1568]:  --help                    Display this help screen.
    Nov 17 12:44:51 nas jellyfin[1568]:  --version                Display version information.
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 1.
    Nov 17 12:44:51 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:44:51 nas (jellyfin)[1745]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:44:51 nas jellyfin[1745]: Jellyfin.Server 10.10.2.0
    Nov 17 12:44:51 nas jellyfin[1745]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:44:51 nas jellyfin[1745]: ERROR(S):
    Nov 17 12:44:51 nas jellyfin[1745]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:44:51 nas jellyfin[1745]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:44:51 nas jellyfin[1745]:                            etc.).
    Nov 17 12:44:51 nas jellyfin[1745]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:44:51 nas jellyfin[1745]:                            web client.
    Nov 17 12:44:51 nas jellyfin[1745]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:44:51 nas jellyfin[1745]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:44:51 nas jellyfin[1745]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:44:51 nas jellyfin[1745]:                            and pictures).
    Nov 17 12:44:51 nas jellyfin[1745]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:44:51 nas jellyfin[1745]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:44:51 nas jellyfin[1745]:                            of default found in PATH.
    Nov 17 12:44:51 nas jellyfin[1745]:  --service                Run as headless service.
    Nov 17 12:44:51 nas jellyfin[1745]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:44:51 nas jellyfin[1745]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:44:51 nas jellyfin[1745]:                            process
    Nov 17 12:44:51 nas jellyfin[1745]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:44:51 nas jellyfin[1745]:                            status change.
    Nov 17 12:44:51 nas jellyfin[1745]:  --help                    Display this help screen.
    Nov 17 12:44:51 nas jellyfin[1745]:  --version                Display version information.
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:51 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 2.
    Nov 17 12:44:51 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:44:51 nas (jellyfin)[1754]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:44:52 nas jellyfin[1754]: Jellyfin.Server 10.10.2.0
    Nov 17 12:44:52 nas jellyfin[1754]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:44:52 nas jellyfin[1754]: ERROR(S):
    Nov 17 12:44:52 nas jellyfin[1754]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:44:52 nas jellyfin[1754]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:44:52 nas jellyfin[1754]:                            etc.).
    Nov 17 12:44:52 nas jellyfin[1754]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:44:52 nas jellyfin[1754]:                            web client.
    Nov 17 12:44:52 nas jellyfin[1754]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:44:52 nas jellyfin[1754]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:44:52 nas jellyfin[1754]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:44:52 nas jellyfin[1754]:                            and pictures).
    Nov 17 12:44:52 nas jellyfin[1754]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:44:52 nas jellyfin[1754]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:44:52 nas jellyfin[1754]:                            of default found in PATH.
    Nov 17 12:44:52 nas jellyfin[1754]:  --service                Run as headless service.
    Nov 17 12:44:52 nas jellyfin[1754]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:44:52 nas jellyfin[1754]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:44:52 nas jellyfin[1754]:                            process
    Nov 17 12:44:52 nas jellyfin[1754]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:44:52 nas jellyfin[1754]:                            status change.
    Nov 17 12:44:52 nas jellyfin[1754]:  --help                    Display this help screen.
    Nov 17 12:44:52 nas jellyfin[1754]:  --version                Display version information.
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 3.
    Nov 17 12:44:52 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:44:52 nas (jellyfin)[1766]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:44:52 nas jellyfin[1766]: Jellyfin.Server 10.10.2.0
    Nov 17 12:44:52 nas jellyfin[1766]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:44:52 nas jellyfin[1766]: ERROR(S):
    Nov 17 12:44:52 nas jellyfin[1766]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:44:52 nas jellyfin[1766]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:44:52 nas jellyfin[1766]:                            etc.).
    Nov 17 12:44:52 nas jellyfin[1766]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:44:52 nas jellyfin[1766]:                            web client.
    Nov 17 12:44:52 nas jellyfin[1766]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:44:52 nas jellyfin[1766]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:44:52 nas jellyfin[1766]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:44:52 nas jellyfin[1766]:                            and pictures).
    Nov 17 12:44:52 nas jellyfin[1766]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:44:52 nas jellyfin[1766]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:44:52 nas jellyfin[1766]:                            of default found in PATH.
    Nov 17 12:44:52 nas jellyfin[1766]:  --service                Run as headless service.
    Nov 17 12:44:52 nas jellyfin[1766]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:44:52 nas jellyfin[1766]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:44:52 nas jellyfin[1766]:                            process
    Nov 17 12:44:52 nas jellyfin[1766]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:44:52 nas jellyfin[1766]:                            status change.
    Nov 17 12:44:52 nas jellyfin[1766]:  --help                    Display this help screen.
    Nov 17 12:44:52 nas jellyfin[1766]:  --version                Display version information.
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:52 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 4.
    Nov 17 12:44:52 nas systemd[1]: Started jellyfin.service - Jellyfin Media Server.
    Nov 17 12:44:52 nas (jellyfin)[1782]: jellyfin.service: Referenced but unset environment variable evaluates to an empty string: JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT
    Nov 17 12:44:53 nas jellyfin[1782]: Jellyfin.Server 10.10.2.0
    Nov 17 12:44:53 nas jellyfin[1782]: Copyright ©  2019 Jellyfin Contributors. Code released under the GNU General Public License
    Nov 17 12:44:53 nas jellyfin[1782]: ERROR(S):
    Nov 17 12:44:53 nas jellyfin[1782]:  Option 'ffmpeg' is defined multiple times.
    Nov 17 12:44:53 nas jellyfin[1782]:  -d, --datadir            Path to use for the data folder (database files,
    Nov 17 12:44:53 nas jellyfin[1782]:                            etc.).
    Nov 17 12:44:53 nas jellyfin[1782]:  --nowebclient            Indicates that the web server should not host the
    Nov 17 12:44:53 nas jellyfin[1782]:                            web client.
    Nov 17 12:44:53 nas jellyfin[1782]:  -w, --webdir              Path to the Jellyfin web UI resources.
    Nov 17 12:44:53 nas jellyfin[1782]:  -C, --cachedir            Path to use for caching.
    Nov 17 12:44:53 nas jellyfin[1782]:  -c, --configdir          Path to use for configuration data (user settings
    Nov 17 12:44:53 nas jellyfin[1782]:                            and pictures).
    Nov 17 12:44:53 nas jellyfin[1782]:  -l, --logdir              Path to use for writing log files.
    Nov 17 12:44:53 nas jellyfin[1782]:  --ffmpeg                  Path to external FFmpeg executable to use in place
    Nov 17 12:44:53 nas jellyfin[1782]:                            of default found in PATH.
    Nov 17 12:44:53 nas jellyfin[1782]:  --service                Run as headless service.
    Nov 17 12:44:53 nas jellyfin[1782]:  --package-name            Used when packaging Jellyfin (example, synology).
    Nov 17 12:44:53 nas jellyfin[1782]:  --published-server-url    Jellyfin Server URL to publish via auto discover
    Nov 17 12:44:53 nas jellyfin[1782]:                            process
    Nov 17 12:44:53 nas jellyfin[1782]:  --nonetchange            Indicates that the server should not detect network
    Nov 17 12:44:53 nas jellyfin[1782]:                            status change.
    Nov 17 12:44:53 nas jellyfin[1782]:  --help                    Display this help screen.
    Nov 17 12:44:53 nas jellyfin[1782]:  --version                Display version information.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Main process exited, code=exited, status=1/FAILURE
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Start request repeated too quickly.
    Nov 17 12:44:53 nas systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    Nov 17 12:44:53 nas systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

    If I remove the variables that it's having an issue with ( JELLYFIN_NOWEBAPP_OPT, JELLYFIN_SERVICE_OPT) will it launch after? I went to the config file and saw that it had the ffmpeg listed in the additional options as well as the standard options and I've fixed that. Thanks!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-11-18, 05:03 PM
    You shouldn't modify the service. You shouldn't HAVE to change anything with the service file or the environment variables file. I strongly recommend you don't modify it further. It seems like you or something else changed it.

    Show me the contents of /usr/lib/systemd/system/jellyfin.service and /etc/default/jellyfin.

    jellyfin.service should look like

    Code:
    [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_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target

    /etc/default/jellyfin should look like

    Code:
    # Jellyfin default configuration options
    # This is a POSIX shell fragment

    # Use this file to override the default configurations; add additional
    # options with JELLYFIN_ADD_OPTS.

    # Under systemd, use
    #  /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
    # to override the user or this config file's location.

    #
    # General options
    #

    # Program directories
    JELLYFIN_DATA_DIR="/var/lib/jellyfin"
    JELLYFIN_CONFIG_DIR="/etc/jellyfin"
    JELLYFIN_LOG_DIR="/var/log/jellyfin"
    JELLYFIN_CACHE_DIR="/var/cache/jellyfin"

    # temporary directory path; used to construct paths for short-lived temporary files
    # the old default was $JELLYFIN_CACHE_DIR/temp; use that to restore previous behaviour,
    # though it will have an additional jellyfin/ subdir appended
    # otherwise, leave this commented
    #TMPDIR="/tmp"

    # web client path, installed by the jellyfin-web package
    JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web"

    # ffmpeg binary paths, overriding the system values
    JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"

    # Disable glibc dynamic heap adjustment
    MALLOC_TRIM_THRESHOLD_=131072

    # [OPTIONAL] run Jellyfin as a headless service
    #JELLYFIN_SERVICE_OPT="--service"

    # [OPTIONAL] run Jellyfin without the web app
    #JELLYFIN_NOWEBAPP_OPT="--nowebclient"

    # Space to add additional command line options to jellyfin (for help see ~$ jellyfin --help)
    JELLYFIN_ADDITIONAL_OPTS=""

    # [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
    # 0 = Workstation
    # 1 = Server
    #COMPlus_gcServer=1

    #
    # SysV init/Upstart options
    #
    # Note: These options are ignored by systemd; use /etc/systemd/system/jellyfin.d overrides instead.
    #

    # Application username
    JELLYFIN_USER="jellyfin"
    # Full application command
    JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR"
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Zeanoth
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:Canada
    #5
    2024-11-18, 05:19 PM
    (2024-11-18, 05:03 PM)TheDreadPirate Wrote: You shouldn't modify the service.  You shouldn't HAVE to change anything with the service file or the environment variables file.  I strongly recommend you don't modify it further.  It seems like you or something else changed it.

    Show me the contents of /usr/lib/systemd/system/jellyfin.service and /etc/default/jellyfin.

    jellyfin.service should look like

    Code:
    [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_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target

    /etc/default/jellyfin should look like

    Code:
    # Jellyfin default configuration options
    # This is a POSIX shell fragment

    # Use this file to override the default configurations; add additional
    # options with JELLYFIN_ADD_OPTS.

    # Under systemd, use
    #  /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
    # to override the user or this config file's location.

    #
    # General options
    #

    # Program directories
    JELLYFIN_DATA_DIR="/var/lib/jellyfin"
    JELLYFIN_CONFIG_DIR="/etc/jellyfin"
    JELLYFIN_LOG_DIR="/var/log/jellyfin"
    JELLYFIN_CACHE_DIR="/var/cache/jellyfin"

    # temporary directory path; used to construct paths for short-lived temporary files
    # the old default was $JELLYFIN_CACHE_DIR/temp; use that to restore previous behaviour,
    # though it will have an additional jellyfin/ subdir appended
    # otherwise, leave this commented
    #TMPDIR="/tmp"

    # web client path, installed by the jellyfin-web package
    JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web"

    # ffmpeg binary paths, overriding the system values
    JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"

    # Disable glibc dynamic heap adjustment
    MALLOC_TRIM_THRESHOLD_=131072

    # [OPTIONAL] run Jellyfin as a headless service
    #JELLYFIN_SERVICE_OPT="--service"

    # [OPTIONAL] run Jellyfin without the web app
    #JELLYFIN_NOWEBAPP_OPT="--nowebclient"

    # Space to add additional command line options to jellyfin (for help see ~$ jellyfin --help)
    JELLYFIN_ADDITIONAL_OPTS=""

    # [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
    # 0 = Workstation
    # 1 = Server
    #COMPlus_gcServer=1

    #
    # SysV init/Upstart options
    #
    # Note: These options are ignored by systemd; use /etc/systemd/system/jellyfin.d overrides instead.
    #

    # Application username
    JELLYFIN_USER="jellyfin"
    # Full application command
    JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR"

    Here's the service config:

    Code:
    [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_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target

    and here's the /etc/default/jellyfin config:
    Code:
    # Jellyfin default configuration options
    # This is a POSIX shell fragment

    # Use this file to override the default configurations; add additional
    # options with JELLYFIN_ADD_OPTS.

    # Under systemd, use
    #  /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
    # to override the user or this config file's location.

    #
    # General options
    #

    # Program directories
    JELLYFIN_DATA_DIR="/var/lib/jellyfin"
    JELLYFIN_CONFIG_DIR="/etc/jellyfin"
    JELLYFIN_LOG_DIR="/var/log/jellyfin"
    JELLYFIN_CACHE_DIR="/var/cache/jellyfin"

    # temporary directory path; used to construct paths for short-lived temporary files
    # the old default was $JELLYFIN_CACHE_DIR/temp; use that to restore previous behaviour,
    # though it will have an additional jellyfin/ subdir appended
    # otherwise, leave this commented
    #TMPDIR="/tmp"

    # web client path, installed by the jellyfin-web package
    JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web"

    # ffmpeg binary paths, overriding the system values
    JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"

    # Disable glibc dynamic heap adjustment
    MALLOC_TRIM_THRESHOLD_=131072

    # [OPTIONAL] run Jellyfin as a headless service
    #JELLYFIN_SERVICE_OPT="--service"

    # [OPTIONAL] run Jellyfin without the web app
    #JELLYFIN_NOWEBAPP_OPT="--nowebclient"

    # Space to add additional command line options to jellyfin (for help see ~$ jellyfin --help)
    JELLYFIN_ADDITIONAL_OPTS=""

    # [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
    # 0 = Workstation
    # 1 = Server
    #COMPlus_gcServer=1

    #
    # SysV init/Upstart options
    #
    # Note: These options are ignored by systemd; use /etc/systemd/system/jellyfin.d overrides instead.
    #

    # Application username
    JELLYFIN_USER="jellyfin"
    # Full application command
    JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR"

    I haven't modified this config, all of the other options that are commented out were like that from install, as far as I know
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-11-18, 05:40 PM
    Code:
    sudo systemctl start jellyfin
    sudo systemctl status jellyfin

    If it fails to start, redo this command.

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

    Because the output you shared from the last time only appears to have your attempts to start it will the extra ffmpeg option, which cause it to fail to start because it is already defined.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Zeanoth
    Offline

    Junior Member

    Posts: 5
    Threads: 2
    Joined: 2024 Nov
    Reputation: 0
    Country:Canada
    #7
    2024-11-18, 06:14 PM
    (2024-11-18, 05:19 PM)Zeanoth Wrote:
    (2024-11-18, 05:03 PM)TheDreadPirate Wrote: You shouldn't modify the service.  You shouldn't HAVE to change anything with the service file or the environment variables file.  I strongly recommend you don't modify it further.  It seems like you or something else changed it.

    Show me the contents of /usr/lib/systemd/system/jellyfin.service and /etc/default/jellyfin.

    jellyfin.service should look like

    Code:
    [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_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target

    /etc/default/jellyfin should look like

    Code:
    # Jellyfin default configuration options
    # This is a POSIX shell fragment

    # Use this file to override the default configurations; add additional
    # options with JELLYFIN_ADD_OPTS.

    # Under systemd, use
    #  /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
    # to override the user or this config file's location.

    #
    # General options
    #

    # Program directories
    JELLYFIN_DATA_DIR="/var/lib/jellyfin"
    JELLYFIN_CONFIG_DIR="/etc/jellyfin"
    JELLYFIN_LOG_DIR="/var/log/jellyfin"
    JELLYFIN_CACHE_DIR="/var/cache/jellyfin"

    # temporary directory path; used to construct paths for short-lived temporary files
    # the old default was $JELLYFIN_CACHE_DIR/temp; use that to restore previous behaviour,
    # though it will have an additional jellyfin/ subdir appended
    # otherwise, leave this commented
    #TMPDIR="/tmp"

    # web client path, installed by the jellyfin-web package
    JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web"

    # ffmpeg binary paths, overriding the system values
    JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"

    # Disable glibc dynamic heap adjustment
    MALLOC_TRIM_THRESHOLD_=131072

    # [OPTIONAL] run Jellyfin as a headless service
    #JELLYFIN_SERVICE_OPT="--service"

    # [OPTIONAL] run Jellyfin without the web app
    #JELLYFIN_NOWEBAPP_OPT="--nowebclient"

    # Space to add additional command line options to jellyfin (for help see ~$ jellyfin --help)
    JELLYFIN_ADDITIONAL_OPTS=""

    # [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
    # 0 = Workstation
    # 1 = Server
    #COMPlus_gcServer=1

    #
    # SysV init/Upstart options
    #
    # Note: These options are ignored by systemd; use /etc/systemd/system/jellyfin.d overrides instead.
    #

    # Application username
    JELLYFIN_USER="jellyfin"
    # Full application command
    JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR"

    Here's the service config:

    Code:
    [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_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS
    Restart = on-failure
    TimeoutSec = 15
    SuccessExitStatus=0 143

    [Install]
    WantedBy = multi-user.target

    and here's the /etc/default/jellyfin config:
    Code:
    # Jellyfin default configuration options
    # This is a POSIX shell fragment

    # Use this file to override the default configurations; add additional
    # options with JELLYFIN_ADD_OPTS.

    # Under systemd, use
    #  /etc/systemd/system/jellyfin.service.d/jellyfin.service.conf
    # to override the user or this config file's location.

    #
    # General options
    #

    # Program directories
    JELLYFIN_DATA_DIR="/var/lib/jellyfin"
    JELLYFIN_CONFIG_DIR="/etc/jellyfin"
    JELLYFIN_LOG_DIR="/var/log/jellyfin"
    JELLYFIN_CACHE_DIR="/var/cache/jellyfin"

    # temporary directory path; used to construct paths for short-lived temporary files
    # the old default was $JELLYFIN_CACHE_DIR/temp; use that to restore previous behaviour,
    # though it will have an additional jellyfin/ subdir appended
    # otherwise, leave this commented
    #TMPDIR="/tmp"

    # web client path, installed by the jellyfin-web package
    JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web"

    # ffmpeg binary paths, overriding the system values
    JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"

    # Disable glibc dynamic heap adjustment
    MALLOC_TRIM_THRESHOLD_=131072

    # [OPTIONAL] run Jellyfin as a headless service
    #JELLYFIN_SERVICE_OPT="--service"

    # [OPTIONAL] run Jellyfin without the web app
    #JELLYFIN_NOWEBAPP_OPT="--nowebclient"

    # Space to add additional command line options to jellyfin (for help see ~$ jellyfin --help)
    JELLYFIN_ADDITIONAL_OPTS=""

    # [OPTIONAL] run Jellyfin with ASP.NET Server Garbage Collection (uses more RAM and less CPU than Workstation GC)
    # 0 = Workstation
    # 1 = Server
    #COMPlus_gcServer=1

    #
    # SysV init/Upstart options
    #
    # Note: These options are ignored by systemd; use /etc/systemd/system/jellyfin.d overrides instead.
    #

    # Application username
    JELLYFIN_USER="jellyfin"
    # Full application command
    JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS --datadir $JELLYFIN_DATA_DIR --configdir $JELLYFIN_CONFIG_DIR --logdir $JELLYFIN_LOG_DIR --cachedir $JELLYFIN_CACHE_DIR"

    I haven't modified this config, all of the other options that are commented out were like that from install, as far as I know

    Looks like the extra FFMPEG option was what was causing it to crash, removing it seems to have fixed it. Thanks for your help!
    jaja
    Offline

    Junior Member

    Posts: 11
    Threads: 4
    Joined: 2024 Nov
    Reputation: 0
    Country:France
    #8
    2024-11-18, 06:37 PM (This post was last modified: 2024-11-18, 06:41 PM by jaja. Edited 1 time in total.)
    hello,

    mon server ne lance plus également suite à la dernière mise à jour !

    quel ligne avez-vous modifié ? et dans quel fichier ?
    merci Winking-face

    edit : c'est un autre problème. je refais un post !
    « 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