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:
After moving the content to the new folders, I have deleted the old folders:
I have modified the file "/etc/default/jellyfin":
and the file "/etc/systemd/system/jellyfin.service.d/jellyfin.service.conf":
jellyfin.service does not work after modifying server paths.
The new folders don't seem to have any problems because jellyfin runs correctly if run directly from the terminal indicating the server paths.
It seems that jellyfin.service does not read the '/etc/default/jellyfin' file at all because even if I modify the parameter "JELLYFIN_ARGS"
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"The next line of "systemctl status" is always the same.
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"
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)