Very strange. Try this command:
/bin/bash -x channels-dvr/install.sh
Very strange. Try this command:
/bin/bash -x channels-dvr/install.sh
$ /bin/bash -x channels-dvr/install.sh
+ set -e
+++ dirname channels-dvr/install.sh
++ cd channels-dvr
++ pwd
+ base_path=/srv/dev-disk-by-label-NAS/HDHomeRun/GAC/channels-dvr
++ which sudo
+ sudo_path=/usr/bin/sudo
++ id -u
+ uid=1000
+ sudo -n true
+ echo 'NOTE: Your root password is required to install Channels DVR as a service.'
NOTE: Your root password is required to install Channels DVR as a service.
+ echo 'NOTE: Please enter it at the prompt below.'
NOTE: Please enter it at the prompt below.
+ systemctl
+ grep -q '\-.mount'
+ install_systemd
+ cat
+ sudo tee /etc/systemd/system/channels-dvr.service
+ '[' 1000 = 0 ']'
+ /usr/bin/sudo tee /etc/systemd/system/channels-dvr.service
++ id -n -u
++ id -n -g
[sudo] password for GAC:
+ sudo systemctl enable channels-dvr
+ '[' 1000 = 0 ']'
+ /usr/bin/sudo systemctl enable channels-dvr
Created symlink /etc/systemd/system/multi-user.target.wants/channels-dvr.service → /etc/systemd/system/channels-dvr.service.
+ sudo systemctl start channels-dvr
+ '[' 1000 = 0 ']'
+ /usr/bin/sudo systemctl start channels-dvr
Okay it should be working this time.
I enter this using a tab on my Chrome browser, correct? It refuses to connect
What does this command say:
sudo systemctl status channels-dvr
[sudo systemctl status channels-dvr
● channels-dvr.service - Channels DVR
Loaded: loaded (/etc/systemd/system/channels-dvr.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-10-03 16:59:59 EDT; 10min ago
Process: 29105 ExecStart=/bin/sh -c exec /srv/dev-disk-by-label-NAS/HDHomeRun/GAC/channels-dvr/latest/channels-dvr >> /srv/dev-disk-by-label-NAS/HDHomeRun/GAC/channels-dvr/data/channels-dvr.log 2
Main PID: 29105 (code=exited, status=126)
CPU: 9ms
Oct 03 16:59:59 odroidxu4 systemd[1]: channels-dvr.service: Failed with result ‘exit-code’.
Oct 03 16:59:59 odroidxu4 systemd[1]: channels-dvr.service: Service hold-off time over, scheduling restart.
Oct 03 16:59:59 odroidxu4 systemd[1]: Stopped Channels DVR.
Oct 03 16:59:59 odroidxu4 systemd[1]: channels-dvr.service: Start request repeated too quickly.
Oct 03 16:59:59 odroidxu4 systemd[1]: Failed to start Channels DVR.
Oct 03 16:59:59 odroidxu4 systemd[1]: channels-dvr.service: Unit entered failed state.
Oct 03 16:59:59 odroidxu4 systemd[1]: channels-dvr.service: Failed with result ‘exit-code’.
lines 1-14/14 (END)
Ugh, I see.
The problem is that your mounts are all marked noexec, so they’re not allowed to host executables.
Usually we recommend installing the software onto the root filesystem. Your paths are super weird… for instance your home directory is in /srv/dev-disk-by-label-NAS/HDHomeRun/GAC which seems to be on the external storage that’s attached.
How much space is on your root filesystem (ssd?). What does this command say:
df -h
$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 930M 0 930M 0% /dev
tmpfs 200M 22M 178M 12% /run
/dev/mmcblk1p2 7.4G 831M 6.4G 12% /
tmpfs 997M 0 997M 0% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 997M 0 997M 0% /sys/fs/cgroup
tmpfs 997M 100K 997M 1% /tmp
/dev/mmcblk1p1 58M 22M 34M 40% /boot
folder2ram 997M 7.5M 990M 1% /var/log
folder2ram 997M 0 997M 0% /var/tmp
folder2ram 997M 268K 997M 1% /var/lib/openmediavault/rrd
folder2ram 997M 24K 997M 1% /var/spool
folder2ram 997M 15M 983M 2% /var/lib/rrdcached
folder2ram 997M 8.0K 997M 1% /var/lib/monit
folder2ram 997M 4.0K 997M 1% /var/lib/php
folder2ram 997M 4.0K 997M 1% /var/lib/netatalk/CNID
folder2ram 997M 420K 997M 1% /var/cache/samba
/dev/sda1 916G 124M 916G 1% /srv/dev-disk-by-label-NAS
tmpfs 200M 0 200M 0% /run/user/1000
Okay you have 6GB+ free on your SSD so that’s where the software should go.
First clean up the existing stuff:
bash channels-dvr/uninstall.sh
and delete it:
rm -rf channels-dvr
Then create a directory for the install inside /usr/local:
cd /usr/local && sudo mkdir -p channels-dvr && sudo chown $(id -u -n) channels-dvr
and then run the installer:
cd /usr/local && curl -f -s https://getchannels.com/dvr/setup.sh | sh
OK, I’ll do that. I have to apologize but I am committed to be somewhere soon. I’ll have to pick this up tomorrow. Thank you very much for your help. I couldn’t have gotten this far without it.
I think I’ve finally got it! We’ll find out overnight if it records what I asked it to. For some reason I couldn’t get into setup with the device name (that I copy/pasted from the install). I had to use the IP address. All else was straightforward.
Thanks