p1xelbr0ther 2 Posted October 14, 2019 Share Posted October 14, 2019 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 serviceUnpacking 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 changesemby-server: unrecognized servicedpkg: error processing package emby-server (--install): installed emby-server package post-installation script subprocess returned error exit status 1Processing triggers for libc-bin (2.28-10) ...Errors were encountered while processing: emby-server ... root@tsunami:/mnt# uname -r4.1.27root@tsunami:/mnt# cat /etc/os-releasePRETTY_NAME="Debian GNU/Linux 10 (buster)"NAME="Debian GNU/Linux"VERSION_ID="10"VERSION="10 (buster)"VERSION_CODENAME=busterID=debianHOME_URL="https://www.debian.org/"SUPPORT_URL="https://www.debian.org/support"BUG_REPORT_URL="https://bugs.debian.org/" 1 Link to comment Share on other sites More sharing options...
Luke 37023 Posted October 14, 2019 Share Posted October 14, 2019 Hi there, can you try the beta package from our website and see if that is any different? Thanks. Link to comment Share on other sites More sharing options...
p1xelbr0ther 2 Posted October 14, 2019 Author Share Posted October 14, 2019 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 1 Link to comment Share on other sites More sharing options...
Luke 37023 Posted October 14, 2019 Share Posted October 14, 2019 Ok, we haven't tested Asus devices but I'll see what our package developer thinks of this. Thanks. Link to comment Share on other sites More sharing options...
p1xelbr0ther 2 Posted October 14, 2019 Author Share Posted October 14, 2019 Okay, thank you. Just to add to this the ASUS RT-AC86U has ENTWARE with Debian Stretch for ARM installed. Link to comment Share on other sites More sharing options...
Luke 37023 Posted October 15, 2019 Share Posted October 15, 2019 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 More sharing options...
Luke 37023 Posted October 17, 2019 Share Posted October 17, 2019 Hi, were you able to try this? Link to comment Share on other sites More sharing options...
p1xelbr0ther 2 Posted October 18, 2019 Author Share Posted October 18, 2019 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 More sharing options...
Luke 37023 Posted October 18, 2019 Share Posted October 18, 2019 Ok so right now you're just at the point of installing Docker? Link to comment Share on other sites More sharing options...
p1xelbr0ther 2 Posted October 18, 2019 Author Share Posted October 18, 2019 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 More sharing options...
Luke 37023 Posted October 18, 2019 Share Posted October 18, 2019 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 More sharing options...
cppong 2 Posted December 26, 2020 Share Posted December 26, 2020 (edited) 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 December 26, 2020 by cppong 1 Link to comment Share on other sites More sharing options...
Luke 37023 Posted December 26, 2020 Share Posted December 26, 2020 Hi, and then it works after that? Link to comment Share on other sites More sharing options...
cppong 2 Posted December 27, 2020 Share Posted December 27, 2020 8 hours ago, Luke said: Hi, and then it works after that? yes, it works afterwards Link to comment Share on other sites More sharing options...
Luke 37023 Posted December 27, 2020 Share Posted December 27, 2020 Ok that's very helpful info, thanks ! Link to comment Share on other sites More sharing options...
PyaePhyo 0 Posted December 29, 2020 Share Posted December 29, 2020 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 More sharing options...
PyaePhyo 0 Posted December 29, 2020 Share Posted December 29, 2020 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 More sharing options...
Luke 37023 Posted December 30, 2020 Share Posted December 30, 2020 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? 1 Link to comment Share on other sites More sharing options...
PyaePhyo 0 Posted December 30, 2020 Share Posted December 30, 2020 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/shPATH=/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin# Folder with Debian StretchCHROOT_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.listif [ ! -e "$CHROOT_SERVICES_LIST" ]; thenecho "Please, define Debian services to start in$CHROOT_SERVICES_LIST first!"echo "One service per line. Hint: this is a script names fromDebian's /etc/init.d/"exit 1fiMountedDirCount="$(mount | grep $CHROOT_DIR | wc -l)"start() {if [ $MountedDirCount -gt 0 ]; thenecho "Chroot'ed services seems to be already started,exiting..."exit 1fiecho "Starting chroot'ed Debian services..."for dir in dev proc sys; domount -o bind /$dir $CHROOT_DIR/$dirdone[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mntfor item in $(cat $CHROOT_SERVICES_LIST); dochroot $CHROOT_DIR /etc/init.d/$item startdone}stop() {if [ $MountedDirCount -eq 0 ]; thenecho "Chroot'ed services seems to be already stopped,exiting..."exit 1fiecho "Stopping chroot'ed Debian services..."for item in $(cat $CHROOT_SERVICES_LIST); dochroot $CHROOT_DIR /etc/init.d/$item stopsleep 2doneumount /opt/debian/dev/ptsmount | grep $CHROOT_DIR | awk '{print $3}' | xargs umount -l}restart() {if [ $MountedDirCount -eq 0 ]; thenecho "Chroot'ed services seems to be already stopped"startelseecho "Stopping chroot'ed Debian services..."for item in $(cat $CHROOT_SERVICES_LIST); dochroot $CHROOT_DIR /etc/init.d/$item stopsleep 2donemount | grep $CHROOT_DIR | awk '{print $3}' | xargs umount -lecho "Restarting chroot'ed Debian services..."for dir in dev proc sys; domount -o bind /$dir $CHROOT_DIR/$dirdone[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mntfor item in $(cat $CHROOT_SERVICES_LIST); dochroot $CHROOT_DIR /etc/init.d/$item startdonefi}enter() {[ -z "$EXT_DIR" ] || mount -o bind $EXT_DIR $CHROOT_DIR/mntmount -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 ]; thenecho "Chroot'ed services running..."elseecho "Chroot'ed services not running!"fi}case "$1" instart)start;;stop)stop;;restart)restart;;enter)enter;;status) status;;*)echo "Usage: (start|stop|restart|enter|status)"exit 1;;esacecho Done.exit 0EOF Link to comment Share on other sites More sharing options...
PyaePhyo 0 Posted December 30, 2020 Share Posted December 30, 2020 Plex is easy installation reference but i want to get emby. https://hqt.ro/plex-media-server-on-asuswrt-armhf-routers/ Link to comment Share on other sites More sharing options...
Luke 37023 Posted December 31, 2020 Share Posted December 31, 2020 I'll pass this on to our package developer to see if he has any ideas. 1 Link to comment Share on other sites More sharing options...
cppong 2 Posted January 7, 2021 Share Posted January 7, 2021 (edited) 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 January 7, 2021 by cppong 1 Link to comment Share on other sites More sharing options...
Luke 37023 Posted January 7, 2021 Share Posted January 7, 2021 Great, thanks ! 2 Link to comment Share on other sites More sharing options...
PyaePhyo 0 Posted January 8, 2021 Share Posted January 8, 2021 Great, thank you so much for your script and I like it so much. Link to comment Share on other sites More sharing options...
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