ziomario 5 Posted February 15, 2024 Posted February 15, 2024 Hello. I tried to install emby server on my Chroembook arm 32 bit,but something went bad : root@devuan-bunsen:/home/user/Downloads# dpkg -i emby-server-deb_4.8.1.0_armhf.deb (Reading database ... 510241 files and directories currently installed.) Preparing to unpack emby-server-deb_4.8.1.0_armhf.deb ... service emby-server stop emby-server: unrecognized service update-rc.d emby-server disable update-rc.d: error: cannot find a LSB script for emby-server Unpacking emby-server (4.8.1.0) over (4.7.14.0) ... Setting up emby-server (4.8.1.0) ... usermod: no changes daemon-reload is a NOP. update-rc.d emby-server enable update-rc.d: error: cannot find a LSB script for emby-server service emby-server start emby-server: unrecognized service Processing triggers for libc-bin (2.36-9+deb12u4) ... what happens ? how to fix the errors ?
Luke 40136 Posted February 15, 2024 Posted February 15, 2024 Hi, is this your first time installing, or did you have a previous version before?
ziomario 5 Posted February 15, 2024 Author Posted February 15, 2024 I'd already installed an old version,but since it didn't work anymore,I have installed a new version.
ziomario 5 Posted February 15, 2024 Author Posted February 15, 2024 (edited) root@devuan-bunsen:/mnt/zroot2/zroot2# service emby start emby: unrecognized service root@devuan-bunsen:/mnt/zroot2/zroot2# service emby-server start emby: unrecognized service Edited February 15, 2024 by ziomario
ziomario 5 Posted February 15, 2024 Author Posted February 15, 2024 This is the directory where the emby-server.service is : root@devuan-bunsen:/usr/lib/systemd/system# ls drkonqi-coredump-processor@.service emby-server@.service emby-server.service pam_namespace.service may be is useful for you to know what's the content of the emby-server.service file : [Unit] Description=Emby Server is a personal media server with apps on just about every device After=network.target [Service] EnvironmentFile=/etc/emby-server.conf WorkingDirectory=/opt/emby-server ExecStart=/opt/emby-server/bin/emby-server RestartForceExitStatus=3 User=emby [Install] WantedBy=multi-user.target
Luke 40136 Posted February 16, 2024 Posted February 16, 2024 I mean you said an old version was working, so what exactly happened with it?
ziomario 5 Posted February 16, 2024 Author Posted February 16, 2024 Probably I'd forgot how to run it. I remembered that it works if I run the emby server like this : root@devuan-bunsen:/opt/emby-server/bin# ./emby-server & but not if it is invoked as a service. Not good.
ziomario 5 Posted February 16, 2024 Author Posted February 16, 2024 (edited) Solution for everyone that will have the same problem : Quote Looking at the above error messages your emby-server package does not contain a sysvinit.script: update-rc.d: error: cannot find a LSB script for emby-server You can find a script here: https://pastebin.com/9WPkDT1m (from 2018 so check the used settings) It seems clearly your fault to do not provide the correct script for the not systemD users who wants to install Emby as a service. Edited February 16, 2024 by ziomario
ziomario 5 Posted February 16, 2024 Author Posted February 16, 2024 I have renamed the script to emby and I've copied it in /etc/init.d and then I tried to start it. This is what happened : root@devuan-bunsen:/etc/init.d# service emby start env: '/etc/init.d/emby': No such file or directory Someone can help me to fix the error that's inside the script ? Sorry,I'm not experienced in shell scripting. Very thanks.
ziomario 5 Posted February 18, 2024 Author Posted February 18, 2024 (edited) On this post : https://emby.media/community/index.php?/topic/121640-update-rcd-error-cannot-find-a-lsb-script-for-emby-server/ I found a workaround. I ran emby server like this : # emby-server & well,emby starts without giving errors,but unfortunately after sometime the process is killed by some unknown reason. This method is not reliable. I've checked if it was active from time to time and I see that it disappears without a precise behavioral pattern. The same is happening choosing : DAEMON=/opt/emby-server/bin/emby-server This is what happens,in fact : root@devuan-bunsen:/etc/init.d# service emby-server start Starting emby-server daemon: root@devuan-bunsen:/etc/init.d# ps ax 0872 ? Sl 0:00 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect / but after some seconds : root@devuan-bunsen:/etc/init.d# ps ax | grep emby 20888 pts/0 S+ 0:00 grep emby it is killed. Don't know why it is unable to stay on. Check this : root@devuan-bunsen:/opt/emby-server/bin# nano start-emby.sh /opt/emby-server/bin/./emby-server & root@devuan-bunsen:/etc/init.d# sudo -u emby bash -c 'cd /opt/emby-server/bin/ && ./start-emby.sh' root@devuan-bunsen:/etc/init.d# ps ax | grep emby 20889 pts/0 Tl 0:03 mousepad emby-server 20972 ? Sl 0:00 /opt/emby-server/system/EmbyServer -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_armhf.deb 20984 pts/0 S+ 0:00 grep emby after some seconds : root@devuan-bunsen:/etc/init.d# ps ax | grep emby 20889 pts/0 Tl 0:03 mousepad emby-server 20987 pts/0 S+ 0:00 grep emby Edited February 18, 2024 by ziomario
Luke 40136 Posted February 18, 2024 Posted February 18, 2024 On 2/16/2024 at 4:17 AM, ziomario said: Solution for everyone that will have the same problem : It seems clearly your fault to do not provide the correct script for the not systemD users who wants to install Emby as a service. Right currently we are only supporting systemd.
ziomario 5 Posted February 18, 2024 Author Posted February 18, 2024 Some help to fix this error here ? ---> thanks.
ziomario 5 Posted May 12, 2024 Author Posted May 12, 2024 ...adding it to /etc/inittab 7:2345:respawn:/opt/emby-server/bin/emby-server id:runlevels:action:process respawn The process will be restarted whenever it terminates (e.g. getty). 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now