mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Error when starting service in Devuan #526
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#526
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @97carmine on GitHub (Mar 18, 2019).
Describe the bug
I installed Jellyfin in Devuan following the Debian repository, but I found an error when starting the service
error
root@F-35:/home/superusuario# service jellyfin status cat: /var/run/jellyfin.pid: No existe el fichero o el directorio Jellyfin is not runningroot@F-35:/home/superusuario# service jellyfin start cat: /var/run/jellyfin.pid: No existe el fichero o el directorio /etc/init.d/jellyfin: 18: [: unexpected operator Jellyfin already runningSystem (please complete the following information):
@joshuaboniface commented on GitHub (Mar 19, 2019):
The traditional initscript is not particularly well-maintained - we're de facto only supporting
systemdunit files right now since that's what all the majordeb-based distros use. That said, the initscript is there (underdeployment/debian-package-x64/pkg-src) and we'd welcome a PR fixing it up.@texneus commented on GitHub (Apr 7, 2019):
Just wanted to chime in with a couple of options...not fixes but work arounds. I've been trying MX Linux 18.1 lately which uses systemvinit and systemd-shim. I'm not an init guru by any means but the systemd-shim is supposed to "translate" systemd requests to systemv. IME, it frequently fails for software that is not in the MX Linus repos, Jellyfin included.
While Jellyfin-ffmpeg installs fine, I get similar errors installing Jellyfin:
Note that despite the error Jellyfin IS NOT running either before or after the install.
Two possibilities which may or may not work for other non-systemd distros:
Run the generic Linux version of Jellyfin (see #1208 )
If you can install Docker, then run Jellyfin as a docker container. Note I have not actually done this on MX, but I have confirmed Docker for Debian Stretch will install and appears to function on MX Linux with the exception that the docker repository (step 4)
deb https://download.docker.com/linux/debian stretch stable, must be added manually to/etc/apt/sources.list.d/various.list.Hope this is helpful...
@zeigerpuppy commented on GitHub (Nov 6, 2021):
I managed to start on
Devaun Beowulfusing the standardBusterpackages install and then running manually:Not sure why
/etc/init.d/jellyfishfails yet but shouldn't be too hard to resolve. I have a hunch it may be an improperly set media DB path.anyway, to start via
/etc/rc.localtry adding this:$your_db_dirshould be the parent of thejellyfinDB dirwould be good to re-open this issue as I think it'll turn out to be a minor change to the init file.
@hugueslarrive commented on GitHub (Dec 13, 2021):
I installed version 10.7.7 (bullseye) on Devuan chimaera and encountered the same problem: start-stop-daemon does not pass the environment variables *_DIR to jellyfin which fails to launch.
Since these paths can be passed as arguments, I think the best way to solve it is to add them to JELLYFIN_ARGS in /etc/default/jellyfin:
JELLYFIN_ARGS="$JELLYFIN_WEB_OPT $JELLYFIN_RESTART_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT -d $JELLYFIN_DATA_DIR -c $JELLYFIN_CONFIG_DIR -l $JELLYFIN_LOG_DIR -C $JELLYFIN_CACHE_DIR"@hankster112 commented on GitHub (Jul 22, 2023):
This is still an issue with Devuan 4 Chimaera. Modifying
/etc/init.d/jellyfinlike @hugueslarrive suggested isn't working. Adding those commands in a script (and removing the typos), and setting it to run in Jellyfin's crontab at startup also isn't working.The crontab script in question:
This starts Jellyfin but places its data directory in the main user's home folder instead of /var/lib/jellyfin. I believe Jellyfin is not being passed its env variables at startup which is causing these issues. There shouldn't be hacks like this just to run Jellyfin on a system without systemd. I see #6991 was proposed but never merged, which may have fixed the issue.