Jump to content

update-rc.d: error: cannot find a LSB script for emby-server


ziomario

Recommended Posts

ziomario

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 ?
 

Link to comment
Share on other sites

Hi, is this your first time installing, or did you have a previous version before?

Link to comment
Share on other sites

ziomario

I'd already installed an old version,but since it didn't work anymore,I have installed a new version.

Link to comment
Share on other sites

ziomario

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 by ziomario
Link to comment
Share on other sites

ziomario

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

Link to comment
Share on other sites

I mean you said an old version was working, so what exactly happened with it?

Link to comment
Share on other sites

ziomario

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.
 

Link to comment
Share on other sites

ziomario

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 by ziomario
Link to comment
Share on other sites

ziomario

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.

Link to comment
Share on other sites

ziomario
On this post :
 
 
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 by ziomario
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...