Help with new install!

Hi all, just found out about this app and am excited to try it out. I'm trying to do the install on my Unraid server per the directions on this site, however the container doesn't start. I took a look at the log after first start, and all that's in there is the following:

Installing Channels DVR..
./run.sh: 7: cd: can't cd to /channels-dvr/data
Installing Channels DVR..
./run.sh: 7: cd: can't cd to /channels-dvr/data

My docker volume mappings are:

/shares > /mnt/user/data/media/dvr/
/channels-dvr > /mnt/user/appdata/ChannelsDVR

Everything else on the server is working just fine. Anyone have any idea what's going on?

Does this path exist and have the right permissions?

1 Like

Yes to both. Just in case it was something weird with permissions I even gave it a chmod -R 777 and still no dice.

1 Like

It looks like your mappings are backward. The options in the Docker command should be:

…
-v /mnt/user/data/media/dvr:/shares/DVR \
-v /mnt/user/appdata/ChannelsDVR:/channels-dvr \
…

Of course, it doesn't matter where you mount the DVR directory (mine is at /dvr, but the /channels-dvr mount is the most important.

1 Like

Apologies, I wrote them down backward because I was in a hurry. They're mapped correctly in the Unraid GUI, it just displays them backward for some reason:

The setup.sh script creates the /channels-dvr/data directory.
Does /mnt/user/appdata/ChannelsDVR/data exist?

1 Like

For some reason it doesn't appear to be doing so. When I get that error I look in the /mnt/user/appdata/ChannelsDVR folder and it's completely empty.

1 Like

It also creates channels-dvr/2021.10.25.1801 and downloads that versions code to ti

Yep, and the main folder is perms 777 and nothing at all appears to get written to it.

No other errors in the container log?

Sadly, no. What I put in the original post was all that was in the log.

Unless the devs have an idea, what I would do is attach an interactive terminal session to the container and look at things from its point of view.
From a shell do an ls -l to see if channels-dvr directory is there.
do an ls -l channels-dvr
if the data directory isn't there, try mkdir -p channels-dvr/data to see if it can be created.
That mimics what setup.sh should have done.

Did you try to delete the container and start over?

Yep, tried wiping it, tried doing it from the CLI as opposed to the GUI, no dice on either.

If I manually create the /mnt/user/appdata/ChannelsDVR/data folder, in the log I get:

Installing Channels DVR..
Running Channels DVR..

But nothing happens. If I look in the /data folder I see there's a "channels-dvr.log", and the contents of it are:

./run.sh: 9: exec: ../latest/channels-dvr: not found

And nothing else. Thoughts?

and latest -> 2021.10.25.1801
It's failing to create directories from within the container.
You should be seeing the errors.

This was my last successful install.

2021-08-19 02:44:51	stdout	Installing Channels DVR.. 
2021-08-19 02:45:41	stdout	Downloading Channels DVR 2021.08.12.0054 (linux-x86_64) to //channels-dvr......
2021-08-19 02:45:41	stdout	Channels DVR has been downloaded.
2021-08-19 02:45:41	stdout	Running Channels DVR..

Wonder if the logs just aren't displaying stderr ?

What do you see here? https://getchannels.com/dvr/setup.sh
The first time I downloaded it, it was empty.
Second time I got the file.
That would account for the behavior you see.

Something interesting I just found - I was trying to install the Channels-DVR:NVidia template and was getting this error. If I install the Channels-DVR:TVE template, it seems to work just fine. So it looks like the issue is restricted to the Nvidia passthrough template.

1 Like

Super newbie here... is that the link to download the server to my PC ?

Thx

No
See here Channels — Channels DVR Server