Package failed to install on Synology 411J

Hey

I've got a Synology 411J (yes I know it's ancient!) and I can't seem to get the Channels package to install. Here's the error message that pops up:

I've tried restarting the NAS and it's running the latest version of DSM (DSM 6.1-15047 Update 2).

Anyone got any advice?

Many thanks,
James

SSH in and run this and copy/paste the results:

find /volume1/@appstore/ChannelsDVR -ls

Here’s the output:

131570    4 drwxr-xr-x   3 root     root         4096 Mar 25 21:05 /volume1/@appstore/ChannelsDVR
131571    4 drwxr-xr-x   4 root     root         4096 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr
131575    4 drwxr-xr-x   2 root     root         4096 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223
131579    4 -rw-r--r--   1 root     root          300 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223/linux-armv5tel.sha256
131580 9856 -rw-r--r--   1 root     root     10089332 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223/ffmpeg
131581 9804 -rw-r--r--   1 root     root     10038804 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223/ffprobe
131582 9148 -rw-r--r--   1 root     root      9366684 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223/comskip
131583 5188 -rw-r--r--   1 root     root      5308901 Mar 25 21:06 /volume1/@appstore/ChannelsDVR/channels-dvr/2017.03.24.2223/channels-dvr
131578    4 drwxr-xr-x   2 root     root         4096 Mar 25 21:05 /volume1/@appstore/ChannelsDVR/channels-dvr/data

Cheers,
James

Looks like it got through most of the install…

Try this package: https://channels-dvr.s3.amazonaws.com/synology/ChannelsDVR_1.0.1.spk

Unfortunately it still doesn't install. It looks like it's upgrading but then I get either the same screenshot as before or this one:

Maybe my old workhorse is not destined to be a DVR. :expressionless:

Can you maybe uninstall it first? Or is it in some stuck state.

Try this one, it should list more errors when the install fails so we can see why: https://channels-dvr.s3.amazonaws.com/synology/ChannelsDVR_1.0.2.spk

Hi there

Channels DVR doesn't appear in the "Installed" list so I can't uninstall it.

I have tried installing the new version and I got a slightly different error message:

The package now does appear in the "Installed" list, however I get the error "Failed to run the package service."

I don't know if that helps?

James

Thanks. Let’s try a manual install over SSH and see what happens.

SSH in and run these commands, and copy/paste all the output back:

cd /volume1/@appstore/ChannelsDVR/
curl -s -f https://getchannels.com/dvr/setup.sh | DOWNLOAD_ONLY=1 sh -x

Ok so I ran the command and here’s the output after the initial few commands:

Downloading Channels DVR 2017.03.28.1753 (linux-armv5tel) to /volume1/@appstore/ChannelsDVR/channels-dvr+ mkdir -p channels-dvr/2017.03.28.1753 channels-dvr/data
mkdir: cannot create directory ā€˜channels-dvr/2017.03.28.1753’: Permission denied
+ 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.

James

After running the command again as the root user here’s the output:

Downloading Channels DVR 2017.03.28.1753 (linux-armv5tel) to /volume1/@appstore/ChannelsDVR/channels-dvr+ mkdir -p channels-dvr/2017.03.28.1753 channels-dvr/data
+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 -o channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel channels-dvr/2017.03.28.1753/ffmpeg
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffmpeg
+ atexit
+ '[' 56 -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.

Cheers,
James

Okay now we’re getting somewhere.

Try running this command now, in the same root console with the directory set from before:

curl https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffmpeg

So a download ā€œtableā€ appeared and it downloaded 100%. I ran your previous command again and it now fails after ffprobe:

Downloading Channels DVR 2017.03.28.1753 (linux-armv5tel) to /volume1/@appstore/ChannelsDVR/channels-dvr+ mkdir -p channels-dvr/2017.03.28.1753 channels-dvr/data
+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 -o channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel channels-dvr/2017.03.28.1753/ffmpeg
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffmpeg
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffprobe-linux-armv5tel channels-dvr/2017.03.28.1753/ffprobe
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffprobe-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffprobe
+ atexit
+ '[' 56 -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.

James

Okay run that command again over and over a few times, until it fails.

It looks like some kind of network error is causing the files to randomly fail while downloading.

Also run ā€œcurl --versionā€ and post the output.

The curl is failing with error 56 which means:

CURLE_RECV_ERROR (56)
Failure with receiving network data.

Seems like you’re right. I ran it a few more times and it seemed to get a little further each time here’s the final output:

Downloading Channels DVR 2017.03.28.1753 (linux-armv5tel) to /volume1/@appstore/ChannelsDVR/channels-dvr+ mkdir -p channels-dvr/2017.03.28.1753 channels-dvr/data
+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/linux-armv5tel.sha256 -o channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel channels-dvr/2017.03.28.1753/ffmpeg
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffmpeg-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffmpeg
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffprobe-linux-armv5tel channels-dvr/2017.03.28.1753/ffprobe
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/ffprobe-linux-armv5tel -o channels-dvr/2017.03.28.1753/ffprobe
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/comskip-linux-armv5tel channels-dvr/2017.03.28.1753/comskip
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/comskip-linux-armv5tel -o channels-dvr/2017.03.28.1753/comskip
+ printf .
.+ fetch https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/channels-dvr-linux-armv5tel channels-dvr/2017.03.28.1753/channels-dvr
+ options=
+ '[' 1 = 1 ']'
+ test -n ''
+ curl -f -s https://channels-dvr.s3.amazonaws.com/2017.03.28.1753/channels-dvr-linux-armv5tel -o channels-dvr/2017.03.28.1753/channels-dvr
+ echo .
.
+ chmod +x channels-dvr/2017.03.28.1753/channels-dvr channels-dvr/2017.03.28.1753/comskip channels-dvr/2017.03.28.1753/ffmpeg channels-dvr/2017.03.28.1753/ffprobe channels-dvr/2017.03.28.1753/linux-armv5tel.sha256
+ ln -nsf 2017.03.28.1753 channels-dvr/latest
+ test -n 1
+ echo 'Channels DVR has been downloaded.'
Channels DVR has been downloaded.
+ atexit
+ '[' 0 -ne 0 ']'

Here’s the output for the curl version:

curl 7.51.0 (armle-unknown-linux-gnu) libcurl/7.51.0 OpenSSL/1.0.2k zlib/1.2.8 c-ares/1.12.0 libssh2/1.7.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS Debug TrackMemory IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets

James

So I tried to run the package again but got the following error:

ā€œFailed to run the package service. Already runningā€

I checked the status before, during and after clicking run and it was reporting ā€œStoppedā€

James

Gave the Synology a reboot and it seemed to kick in to gear. The package has run and I’ve managed to configure the settings.

I’ve opened the Channels app on Apple TV and selected the DVR tab, however I can’t seem to get past the ā€œWelcome to Channels DVR!ā€ page. I’ve selected a folder on the NAS and enabled the DVR. Am I missing something really obvious?

James

Quick update…

Completely missed the ā€œAdd to DVRā€ link in the devices section. Clicked that and everything’s now working as expected.

Thanks so much for your support @tmm1. Really grateful.

James

2 Likes