Unable to install DVR

Keep Getting Following error command in Terminal app when trying to install DVR. Any assistance would be greatly appreciated.

Pfrangs-iMac:~ jspfrang$ curl -f -s https://getchannels.com/dvr/setup.sh | sh
Downloading Channels DVR 2017.03.13.2338 (darwin-x86_64) to /Users/jspfrang/channels-dvr
mkdir: channels-dvr/2017.03.13.2338: Permission denied

ERROR: Installation of Channels DVR failed.
ERROR: Please contact [email protected] with the full output above.
Pfrangs-iMac:~ jspfrang$

Hm, seems like the permissions on your home directory are incorrect?

Can you run this command and post the results:

ls -alhd . …

Last login: Tue Mar 14 16:06:29 on ttys000
Pfrangs-iMac:~ jspfrang$ ls -alhd . ..
drwxr-xr-x+ 30 jspfrang  staff   1.0K Mar 13 20:30 .
drwxr-xr-x   5 root      admin   170B Oct 15 21:27 ..
Pfrangs-iMac:~ jspfrang$

Ok that looks normal. How about these commands:

id
mkdir channels-dvr
ls -alh channels-dvr

Last login: Tue Mar 14 16:10:02 on ttys000
Pfrangs-iMac:~ jspfrang$ id
uid=501(jspfrang) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh)
Pfrangs-iMac:~ jspfrang$ mkdir channels-dvr
mkdir: channels-dvr: File exists
Pfrangs-iMac:~ jspfrang$ ls -alh channels-dvr
total 0
drwxr-xr-x   3 root      staff   102B Mar 13 20:30 .
drwxr-xr-x+ 30 jspfrang  staff   1.0K Mar 13 20:30 ..
drwxr--r--   2 root      staff    68B Mar 13 20:30 data
Pfrangs-iMac:~ jspfrang$

I had the DVR previously but the folder got moved/deleted. so attempting to reinstall

I see, looks like a previous installation but its owned by root somehow.

Open Finder.app, go to your Home directory and delete the channels-dvr folder. It will ask for your password as the directory is owned by root.

Then reinstall and it should work as expected.

So, I deleted it and still getting same error. When I go find the new Channels DVR app and attempt to open I get another permissions error. see attached

I have noticed once I delete the folder from USER it is automatically adding a new right back in its place.

Hrm, can you explain what happened to the previous installation?

Try running these commands:

ps aux | grep channels-dvr
launchctl list com.getchannels.dvr
sudo launchctl list com.getchannels.dvr

Last login: Tue Mar 14 16:23:50 on ttys000
Pfrangs-iMac:~ jspfrang$ ps aux | grep channels-dvr
jspfrang 17722 0.0 0.0 2423384 228 s000 R+ 4:39PM 0:00.00 grep channels-dvr
Pfrangs-iMac:~ jspfrang$ launchctl list com.getchannels.dvr
{
“StandardOutPath” = “/Users/jspfrang/channels-dvr/data/channels-dvr.log”;
“LimitLoadToSessionType” = “Aqua”;
“StandardErrorPath” = “/Users/jspfrang/channels-dvr/data/channels-dvr.log”;
“Label” = “com.getchannels.dvr”;
“TimeOut” = 30;
“OnDemand” = false;
“LastExitStatus” = 19968;
“Program” = “/Users/jspfrang/channels-dvr/latest/channels-dvr”;
“ProgramArguments” = (
“/Users/jspfrang/channels-dvr/latest/channels-dvr”;
);
};
Pfrangs-iMac:~ jspfrang$ sudo launchctl list com.getchannels.dvr
Password:

I believe the folder got moved to an attached external hard drive, then deleted.

Okay, seems its still trying to run in the background so that’s probably why the directory is showing up.

Run this command:

launchctl remove com.getchannels.dvr

Then delete the channels-dvr directory and try the install again.

It Worked! Thanks for your assistance!

1 Like