• 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 does not start after changing server paths

     
    • 0 Vote(s) - 0 Average

    SOLVED: jellyfin service does not start after changing server paths

    sidre
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: 2024 Jan
    Reputation: 0
    #1
    2024-01-15, 02:17 PM (This post was last modified: 2024-01-15, 02:38 PM by sidre. Edited 3 times in total.)
    Hello. Sorry for my bad English.

    I have created the folders:
    Quote:/DATA/jellyfin/config
    /DATA/jellyfin/cache
    /DATA/jellyfin/data
    /DATA/jellyfin/log

    After moving the content to the new folders, I have deleted the old folders:
    Quote:sudo rm -r /var/lib/jellyfin
    sudo rm -r /etc/jellyfin
    sudo rm -r /var/log/jellyfin
    sudo rm -r /var/cache/jellyfin

    I have modified the file "/etc/default/jellyfin":
    Quote:JELLYFIN_DATA_DIR="/DATA/jellyfin/data"
    JELLYFIN_CONFIG_DIR="/DATA/jellyfin/config"
    JELLYFIN_LOG_DIR="/DATA/jellyfin/log"
    JELLYFIN_CACHE_DIR="/DATA/jellyfin/cache"

    and the file "/etc/systemd/system/jellyfin.service.d/jellyfin.service.conf":
    Quote:[Service]
    User = jellyfin
    EnvironmentFile = /etc/default/jellyfin

    jellyfin.service does not work after modifying server paths.
    Quote:$ sudo systemctl status jellyfin
    × jellyfin.service - Jellyfin Media Server
        Loaded: loaded (/lib/systemd/system/jellyfin.service; enabled; vendor preset: enabled)
        Drop-In: /etc/systemd/system/jellyfin.service.d
                └─jellyfin.service.conf
        Active: failed (Result: exit-code) since Mon 2024-01-15 14:29:05 UTC; 1s ago
        Process: 3850 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=200/CHDIR)
      Main PID: 3850 (code=exited, status=200/CHDIR)
            CPU: 2ms

    ene 15 14:29:05 b85 systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
    ene 15 14:29:05 b85 systemd[1]: Stopped Jellyfin Media Server.
    ene 15 14:29:05 b85 systemd[1]: jellyfin.service: Start request repeated too quickly.
    ene 15 14:29:05 b85 systemd[1]: jellyfin.service: Failed with result 'exit-code'.
    ene 15 14:29:05 b85 systemd[1]: Failed to start Jellyfin Media Server.

    The new folders don't seem to have any problems because jellyfin runs correctly if run directly from the terminal indicating the server paths.
    Quote:$ sudo -u jellyfin jellyfin -d /DATA/jellyfin/data -C /DATA/jellyfin/cache -c /DATA/jellyfin/config -l /DATA/jellyfin/log -w /usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg

    It seems that jellyfin.service does not read the '/etc/default/jellyfin' file at all because even if I modify the parameter "JELLYFIN_ARGS"
    Quote:JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS"

    JELLYFIN_ARGS="-d $JELLYFIN_DATA_DIR -C $JELLYFIN_CACHE_DIR -c $JELLYFIN_CONFIG_DIR -l $JELLYFIN_LOG_DIR $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS"

    JELLYFIN_ARGS="-d /DATA/jellyfin/data -C /DATA/jellyfin/cache -c /DATA/jellyfin/config -l /DATA/jellyfin/log $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLFIN_ADDITIONAL_OPTS"
    The next line of "systemctl status" is always the same.
    Quote:    Process: 3850 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=200/CHDIR)
    Go to solution
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    jellyfin service does not start after changing server paths - by sidre - 2024-01-15, 02:17 PM
    RE: jellyfin service does not start after changing server paths - by tmsrxzar - 2024-01-15, 02:52 PM
    RE: jellyfin service does not start after changing server paths - by sidre - 2024-01-15, 03:13 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