• 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)

    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]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Jellyfin Service Fails to Start (but Server Still Works) - by Zeanoth - 2024-11-18, 04:08 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by TheDreadPirate - 2024-11-18, 04:19 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by Zeanoth - 2024-11-18, 04:55 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by TheDreadPirate - 2024-11-18, 05:03 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by Zeanoth - 2024-11-18, 05:19 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by Zeanoth - 2024-11-18, 06:14 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by TheDreadPirate - 2024-11-18, 05:40 PM
    RE: Jellyfin Service Fails to Start (but Server Still Works) - by jaja - 2024-11-18, 06:37 PM

    • 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