Jump to content

Failed emby install on armhf


p1xelbr0ther

Recommended Posts

p1xelbr0ther

Hi..

 

I am trying to install emby server on my ASUS RT-AC86U which is armhf based . I keep getting the following error when trying to install any version. The service does not appear to be available and I am not sure what is missing. Any help or ideas?

 

root@tsunami:/mnt# dpkg -i emby-server-deb_4.2.1.0_armhf.deb
(Reading database ... 16943 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.2.1.0_armhf.deb ...
emby-server: unrecognized service
Unpacking emby-server (4.2.1.0) over (3.4.1.0) ...
Setting up emby-server (4.2.1.0) ...
Installing new version of config file /etc/emby-server.conf ...
usermod: no changes
emby-server: unrecognized service
dpkg: error processing package emby-server (--install):
 installed emby-server package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 emby-server

 

...

root@tsunami:/mnt# uname -r
4.1.27
root@tsunami:/mnt# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"



 

  • Like 1
Link to comment
Share on other sites

p1xelbr0ther

Thanks for the fast response. I tried to remove the package and install 4.3.0.14, which looks to be the latest beta. I get the same or similar output:

root@tsunami:/mnt# dpkg -r emby-server
(Reading database ... 13503 files and directories currently installed.)
Removing emby-server (4.2.1.0) ...
emby-server: unrecognized service
Processing triggers for libc-bin (2.28-10) ...
root@tsunami:/mnt#
root@tsunami:/mnt#
root@tsunami:/mnt# dpkg -i emby-server-deb_4.3.0.14_armhf.deb
Selecting previously unselected package emby-server.
(Reading database ... 11938 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.3.0.14_armhf.deb ...
Unpacking emby-server (4.3.0.14) ...
Setting up emby-server (4.3.0.14) ...
usermod: no changes
emby-server: unrecognized service
dpkg: error processing package emby-server (--install):
 installed emby-server package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
 emby-server

  • Like 1
Link to comment
Share on other sites

Hi there, our best suggestion right now would be to install Docker and then use our Docker image. Please let us know if this helps. Thanks.

Link to comment
Share on other sites

p1xelbr0ther

Thanks for your patience. I am having trouble with docker (have not used it before). Docker works fine on a Debian 9 install on amd64 though on the ASUS armhf, I am unsable to get the service started/installed properly. Still testing though:

root@tsunami:/# docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

Link to comment
Share on other sites

p1xelbr0ther

Yes, but it docker does not completely work to the point of where I can load emby. This only applies to the armhf install.

Link to comment
Share on other sites

Ok unfortunately as i mentioned we haven't tested this device ourselves, so at this point we don't have the answer here. But if you continue to work through it we're happy to throw out ideas.

Link to comment
Share on other sites

  • 1 year later...

I have also tried to install emby to ASUS router with ENTWARE and Debian Stretch installed and got the same error. Look into the post installation script prompting error.

/var/lib/dpkg/info/emby-server.postinst

    if [ -x "$(which systemctl)" ]; then
      systemctl daemon-reload
      systemctl enable emby-server || true
      systemctl start emby-server || true
    else
      service emby-server start
    fi

It tries to startup emby-server by systemd which does not work under chroot environment or sysVinit that the init script is no longer provided.

To solve the problem, you have to create customized startup script under the /etc/init.d before the installation.

admin@RT-AX86U:/tmp/home/root# debian enter

root@RT-AX86U:/# ls -l /etc/init.d/emby-server
-rwxr-xr-x 1 root root 1297 Dec 27 01:13 /etc/init.d/emby-server


root@RT-AX86U:/# cd home
root@RT-AX86U:/home# dpkg -i emby-server-deb_4.5.4.0_armhf.deb
(Reading database ... 14855 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.5.4.0_armhf.deb ...
Emby Server is not running.
Unpacking emby-server (4.5.4.0) over (4.5.4.0) ...
Setting up emby-server (4.5.4.0) ...
usermod: no changes
Starting Emby Server.
Processing triggers for libc-bin (2.28-10) ...

root@RT-AX86U:/home# ps -ef |grep emby
emby      5729     1 16 01:14 ?        00:00:16 /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
root      5961  5577  0 01:16 pts/0    00:00:00 grep emby
root@RT-AX86U:/home#
 

 

 

  
 

 

Edited by cppong
  • Like 1
Link to comment
Share on other sites

PyaePhyo

I have also tried to install emby to ASUS router with ENTWARE and Debian Stretch installed and got the same error. Look into the post installation script prompting error.

/var/lib/dpkg/info/emby-server.postinst

    if [ -x "$(which systemctl)" ]; then
      systemctl daemon-reload
      systemctl enable emby-server || true
      systemctl start emby-server || true
    else
      service emby-server start
    fi

It tries to startup emby-server by systemd which does not work under chroot environment or sysVinit that the init script is no longer provided.

To solve the problem, you have to create customized startup script under the /etc/init.d before the installation.

admin@RT-AX86U:/tmp/home/root# debian enter

root@RT-AX86U:/# ls -l /etc/init.d/emby-server
-rwxr-xr-x 1 root root 1297 Dec 27 01:13 /etc/init.d/emby-server


root@RT-AX86U:/# cd home
root@RT-AX86U:/home# dpkg -i emby-server-deb_4.5.4.0_armhf.deb
(Reading database ... 14855 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.5.4.0_armhf.deb ...
Emby Server is not running.
Unpacking emby-server (4.5.4.0) over (4.5.4.0) ...
Setting up emby-server (4.5.4.0) ...
usermod: no changes
Starting Emby Server.
Processing triggers for libc-bin (2.28-10) ...

root@RT-AX86U:/home# ps -ef |grep emby
emby      5729     1 16 01:14 ?        00:00:16 /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
root      5961  5577  0 01:16 pts/0    00:00:00 grep emby
root@RT-AX86U:/home#

 

have also tried to install emby to ASUS router with ENTWARE and Debian Stretch installed and got the same error. Look into the post installation script prompting error.

/var/lib/dpkg/info/emby-server.postinst

    if [ -x "$(which systemctl)" ]; then
      systemctl daemon-reload
      systemctl enable emby-server || true
      systemctl start emby-server || true
    else
      service emby-server start
    fi

It tries to startup emby-server by systemd which does not work under chroot environment or sysVinit that the init script is no longer provided.

To solve the problem, you have to create customized startup script under the /etc/init.d before the installation.

admin@RT-AX86U:/tmp/home/root# debian enter

root@RT-AX86U:/# ls -l /etc/init.d/emby-server
-rwxr-xr-x 1 root root 1297 Dec 27 01:13 /etc/init.d/emby-server


root@RT-AX86U:/# cd home
root@RT-AX86U:/home# dpkg -i emby-server-deb_4.5.4.0_armhf.deb
(Reading database ... 14855 files and directories currently installed.)
Preparing to unpack emby-server-deb_4.5.4.0_armhf.deb ...
Emby Server is not running.
Unpacking emby-server (4.5.4.0) over (4.5.4.0) ...
Setting up emby-server (4.5.4.0) ...
usermod: no changes
Starting Emby Server.
Processing triggers for libc-bin (2.28-10) ...

root@RT-AX86U:/home# ps -ef |grep emby
emby      5729     1 16 01:14 ?        00:00:16 /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
root      5961  5577  0 01:16 pts/0    00:00:00 grep emby
root@RT-AX86U:/home#

Link to comment
Share on other sites

PyaePhyo

Please give me  "Customized startup script" or How to Create "Customized startup script"

Mention

"To solve the problem, you have to create customized startup script under the /etc/init.d before the installation."

Link to comment
Share on other sites

20 hours ago, PyaePhyo said:

Please give me  "Customized startup script" or How to Create "Customized startup script"

Mention

"To solve the problem, you have to create customized startup script under the /etc/init.d before the installation."

Have you tried creating one?

  • Like 1
Link to comment
Share on other sites

PyaePhyo

No, I can't make emby-server script and emby-server script not include automactically.

Example,

Dibean script is here....https://hqt.ro/how-to-install-debian-stretch-arm/

 

cat >> /opt/etc/init.d/S99debian << 'EOF'
#!/bin/sh
PATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin
# Folder with Debian Stretch
CHROOT_DIR=/tmp/mnt/sda1/entware/debian
# Some folder outside of sandbox,
# will be mounted to /mnt folder in Debian
# Uncommented "EXT_DIR=" line if you need to
# mount a folder inside debian (remove #)
# EXT_DIR=/tmp/mnt/sda1/Media/
CHROOT_SERVICES_LIST=/opt/etc/chroot-services.list
if [ ! -e "$CHROOT_SERVICES_LIST" ]; then
echo "Please, define Debian services to start in
$CHROOT_SERVICES_LIST first!"
echo "One service per line. Hint: this is a script names from
Debian's /etc/init.d/"
exit 1
fi
MountedDirCount="$(mount | grep $CHROOT_DIR | wc -l)"
start() {
if [ $MountedDirCount -gt 0 ]; then
echo "Chroot'ed services seems to be already started,
exiting..."
exit 1
fi
echo "Starting chroot'ed Debian services..."
for dir in dev proc sys; do
mount -o bind /$dir $CHROOT_DIR/$dir
done
[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mnt
for item in $(cat $CHROOT_SERVICES_LIST); do
chroot $CHROOT_DIR /etc/init.d/$item start
done
}
stop() {
if [ $MountedDirCount -eq 0 ]; then
echo "Chroot'ed services seems to be already stopped,
exiting..."
exit 1
fi
echo "Stopping chroot'ed Debian services..."
for item in $(cat $CHROOT_SERVICES_LIST); do
chroot $CHROOT_DIR /etc/init.d/$item stop
sleep 2
done
umount /opt/debian/dev/pts
mount | grep $CHROOT_DIR | awk '{print $3}' | xargs umount -l
}
restart() {
if [ $MountedDirCount -eq 0 ]; then
echo "Chroot'ed services seems to be already stopped"
start
else
echo "Stopping chroot'ed Debian services..."
for item in $(cat $CHROOT_SERVICES_LIST); do
chroot $CHROOT_DIR /etc/init.d/$item stop
sleep 2
done
mount | grep $CHROOT_DIR | awk '{print $3}' | xargs umount -l
echo "Restarting chroot'ed Debian services..."
for dir in dev proc sys; do
mount -o bind /$dir $CHROOT_DIR/$dir
done
[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mnt
for item in $(cat $CHROOT_SERVICES_LIST); do
chroot $CHROOT_DIR /etc/init.d/$item start
done
fi
}
enter() {
[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mnt
mount -o bind /dev/ /opt/debian/dev/
mount -o bind /dev/pts/ /opt/debian/dev/pts/
mount -o bind /proc/ /opt/debian/proc/
mount -o bind /sys/ /opt/debian/sys/
chroot /opt/debian /bin/bash
}
status() {
if [ $MountedDirCount -gt 0 ]; then
echo "Chroot'ed services running..."
else
echo "Chroot'ed services not running!"
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
enter)
enter
;;
status) status
;;
*)
echo "Usage: (start|stop|restart|enter|status)"
exit 1
;;
esac
echo Done.
exit 0
EOF

 

 

 

Link to comment
Share on other sites

Actually, U just add script to provide start, stop, restart options for post package installation script to start the service.

I have attached my own script for my environment only. Not sure it works for others. pls modified for your own environment or configuration and put it in /etc/init.d

if u also install in Asus merlin with Debian, remember to put it after chroot

admin@RT-AX86U:/tmp/home/root# debian enter

root@RT-AX86U:/# ls -l /etc/init.d/emby-server

-rwxr-xr-x 1 root root 1297 Dec 26 16:52 /etc/init.d/emby-server 

 

or

admin@RT-AX86U:/tmp/home/root# ls -l /opt/debian/etc/init.d/emby-server

-rwxr-xr-x 1 admin root 1297 Dec 27 00:52 /opt/debian/etc/init.d/emby-server 

emby-server

Edited by cppong
  • Like 1
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...