Drobo package debugging

I was able to get the package to show up in Drobo Apps in the dashboard but it did not completely install. I get the following in the channels-dvd.log that shows up in the directory under Drobo apps. /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/service.sh: line 20: …/latest/channels-dvr: not found
/mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/service.sh: line 20: …/latest/channels-dvr: not found

Can you run over ssh:

find /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0 -ls

Drobo5N:/mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0 $ ls -ltr
-rwxr-xr-x 1 root root 89 Apr 7 12:53 update.sh*
-rwxr-xr-x 1 root root 429 Apr 7 12:53 service.sh*
-rwxr-xr-x 1 root root 143 Apr 7 12:53 install.sh*
-r–r--r-- 1 root root 15 Apr 7 13:00 host_uid.txt
-rw-r–r-- 1 root root 103 Apr 7 13:00 channels-dvr.log

Seems like the install script didn’t get run.

Are you SSH’d in as root, or another user? (Run whoami)

If you’re root, try running the install script in verbose mode and see what happens:

sh -x install.sh ; echo $?

yep as root. looks like curl is needed
Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # sh -x install.sh ; echo $?

  • realpath install.sh
  • dirname /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/install.sh
  • prog_dir=/mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0
  • cd /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0
  • export DOWNLOAD_ONLY=1
  • curl -f -s+ https://getchannels.com/dvr/setup.sh
    shinstall.sh:
    line 1: curl: not found
    0

Try wget --version to see if that’s available

yep its there
Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # wget --version
GNU Wget 1.16.3 built on linux-gnueabi.

Okay next step to see if the SSL versions are up to date.

Try:

wget https://getchannels.com/dvr/setup.sh

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # wget https://getchannels.com/dvr/setup.sh
pathconf: Value too large for defined data type
pathconf: Value too large for defined data type
–2017-04-07 13:17:57-- https://getchannels.com/dvr/setup.sh
Resolving getchannels.com… 104.24.112.77, 104.24.113.77, 2400:cb00:2048:1::6818:714d, …
Connecting to getchannels.com|104.24.112.77|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: unspecified [application/x-sh]
Saving to: ‘setup.sh’

setup.sh [ <=> ] 2.37K --.-KB/s in 0s

2017-04-07 13:17:57 (4.77 MB/s) - ‘setup.sh’ saved [2422]

Okay cool.

Next run the setup script:

DOWNLOAD_ONLY=1 sh -x setup.sh

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # DOWNLOAD_ONLY=1 sh -x setup.sh
+ set -e
+ trap atexit EXIT
+ curl --version
+ wget --version
+ have_wget=1
+ uname -s
+ tr [A-Z] [a-z]
+ os=linux
+ uname -m
+ arch=armv7l
+ fetch https://channels-dvr.s3.amazonaws.com/latest.txt -
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O - https://channels-dvr.s3.amazonaws.com/latest.txt
+ version=2017.04.06.0200
+ [ armv7l = amd64 ]
+ [ armv7l = armv8l ]
+ [ armv7l = aarch64 ]
+ pwd
+ printf Downloading Channels DVR 2017.04.06.0200 (linux-armv7l) to /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/channels-dvr
Downloading Channels DVR 2017.04.06.0200 (linux-armv7l) to /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/channels-dvr+ mkdir -p channels-dvr/2017.04.06.0200 channels-dvr/data
+ fetch https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/linux-armv7l.sha256 channels-dvr/2017.04.06.0200/linux-armv7l.sha256
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O channels-dvr/2017.04.06.0200/linux-armv7l.sha256 https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/linux-armv7l.sha256
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/ffmpeg-linux-armv7l channels-dvr/2017.04.06.0200/ffmpeg
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O channels-dvr/2017.04.06.0200/ffmpeg https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/ffmpeg-linux-armv7l
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/ffprobe-linux-armv7l channels-dvr/2017.04.06.0200/ffprobe
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O channels-dvr/2017.04.06.0200/ffprobe https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/ffprobe-linux-armv7l
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/comskip-linux-armv7l channels-dvr/2017.04.06.0200/comskip
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O channels-dvr/2017.04.06.0200/comskip https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/comskip-linux-armv7l
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/channels-dvr-linux-armv7l channels-dvr/2017.04.06.0200/channels-dvr
+ options=
+ [  = 1 ]
+ test -n 
+ test -n 
+ wget -q -O channels-dvr/2017.04.06.0200/channels-dvr https://channels-dvr.s3.amazonaws.com/2017.04.06.0200/channels-dvr-linux-armv7l
channels-dvr/2017.04.06.0200/channels-dvr: Text file busy
+ atexit
+ [ 1 -ne 0 ]
+ echo

+ echo ERROR: Installation of Channels DVR failed.
ERROR: Installation of Channels DVR failed.
+ echo ERROR: Please contact [email protected] with the full output above.
ERROR: Please contact [email protected] with the full output above.

Huh.

ls -alh channels-dvr/2017.04.06.0200
df -h

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # ls -alh channels-dvr/2017.04.06.0200
drwxr-xr-x    2 root     root        4.0K Apr  7 13:27 ./
drwxr-xr-x    4 root     root        4.0K Apr  7 13:27 ../
-rwxr-xr-x    1 root     root       16.0M Apr  5 19:20 channels-dvr*
-rwxr-xr-x    1 root     root        6.1M Apr  5 19:20 comskip*
-rwxr-xr-x    1 root     root        6.7M Apr  5 19:20 ffmpeg*
-rwxr-xr-x    1 root     root        6.6M Apr  5 19:20 ffprobe*
-rwxr-xr-x    1 root     root         300 Apr  5 19:20 linux-armv7l.sha256*

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                   30.0M     27.6M      2.4M  92% /
/dev/root                30.0M     27.6M      2.4M  92% /
tmpfs                   433.6M      3.8M    429.9M   1% /tmp
/dev/shm                 64.0M         0     64.0M   0% /dev/shm
/dev/mtdblock1            3.0M    592.0K      2.4M  19% /var
/dev/sda1                63.9T    971.9G     63.0T   1% /mnt/DroboFS

How about the output of

mount

Lets try removing the downloaded files and installing again:

rm -rf channels-dvr
DOWNLOAD_ONLY=1 sh -x setup.sh

that looks like it worked
.

  • chmod +x channels-dvr/2017.04.06.0200/channels-dvr channels-dvr/2017.04.06.0200/comskip channels-dvr/2017.04.06.0200/ffmpeg channels-dvr/2017.04.06.0200/ffprobe channels-dvr/2017.04.06.0200/linux-armv7l.sha256
  • ln -nsf 2017.04.06.0200 channels-dvr/latest
  • test -n 1
  • echo Channels DVR has been downloaded.
    Channels DVR has been downloaded.
  • atexit
  • [ 0 -ne 0 ]

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # ls -alh channels-dvr/2017.04.06.0200
drwxr-xr-x 2 root root 4.0K Apr 7 13:48 ./
drwxr-xr-x 4 root root 4.0K Apr 7 13:48 …/
-rwxr-xr-x 1 root root 16.0M Apr 5 19:20 channels-dvr*
-rwxr-xr-x 1 root root 6.1M Apr 5 19:20 comskip*
-rwxr-xr-x 1 root root 6.7M Apr 5 19:20 ffmpeg*
-rwxr-xr-x 1 root root 6.6M Apr 5 19:20 ffprobe*
-rwxr-xr-x 1 root root 300 Apr 5 19:20 linux-armv7l.sha256*

Okay cool. What’s mount say? Curious what filesystem it’s using for /mnt/DroboFS

The DVR is basically installed now… you should be able to start it from the drobo apps dashboard. Can you snap a pic of what it looks like in there?

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0 # mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (rw,seclabel,relatime)
sysfs on /sys type sysfs (rw,seclabel,relatime)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
proc on /proc type proc (rw,relatime)
nodev on /sys/kernel/debug type debugfs (rw,relatime)
devpts on /dev/pts type devpts (rw,seclabel,relatime,gid=5,mode=620)
tmpfs on /tmp type tmpfs (rw,seclabel,relatime)
/dev/shm on /dev/shm type tmpfs (rw,seclabel,relatime,size=65536k)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
/dev/mtdblock1 on /var type jffs2 (rw,seclabel,relatime)
/dev/sda1 on /mnt/DroboFS type ext4 (rw,seclabel,noatime,nodiratime,user_xattr,barrier=1,data=ordered,discard)

1 Like

When I go to configure I get to the login page but when I click login I get an error
Error during authentication

Drobo5N:~/Shares/DroboApps/ChannelsDVR_1.0.0/channels-dvr/data # cat channels-dvr.log
2017/04/07 13:55:20 [SYS] Starting Channels DVR v2017.04.06.0200 (linux-armv7l) in /mnt/DroboFS/Shares/DroboApps/ChannelsDVR_1.0.0/channels-dvr/data
2017/04/07 13:55:21 [HDR] Found 1 devices
2017/04/07 13:55:21 [SYS] Started HTTP Server
2017/04/07 13:55:21 [SYS] Bonjour service running for dvr-drobo5n.local. [10.0.1.2]
2017/04/07 13:55:21 [SYS] Error checking for update: Get https://channels-dvr.s3.amazonaws.com/latest.json: x509: failed to load system roots and no roots provided
couldn’t open settings.db: timeout