Enable DVR -> Shield permission errors

Attempting to setup DVR for the first time on 3TB USB drive.
Error: unable to create dvr directory: mkdir /storage/6C5CE2595CE21E12/Channels_DVR/DVR: permission denied.
I previously had seen the message Error: no write permission on DVR directory

I tried reformatting the drive on a W10 PC. I'm 'somewhat' familiar with Linux, but I don't see how to get access to the Shield file system to chmod (if that's even what I should try to do)

here is some of the log file

2018/12/17 20:10:01 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2018/12/17 20:13:06 [ERR] Failed to read directory /storage/42F2C803F2C7F8E5/Channels_DVR: open /storage/42F2C803F2C7F8E5/Channels_DVR: no such file or directory
2018/12/17 20:19:57 [ERR] Failed to read directory /storage/6C5CE2595CE21E18/Channels_DVR/DVR: open /storage/6C5CE2595CE21E18/Channels_DVR/DVR: no such file or directory

If it matters, I previously had seen the following in the log when I had a 120GB SSD connected as "device storage" I disconnected that when I installed the 3TB drive as "removable storage"

2018/12/16 22:57:19 [TNR] Closed connection to 1064D12D for ch5.1
2018/12/16 22:57:19 [DVR] Error running job 1545013800-ch5.1 Tom Petty and the Heartbreakers : One 30th Anniversary Concert From Gainesville, FL: mkdir /storage/emulated/0/DVR/TV: read-only file system

I hope I haven't gone overboard with info on this first post. Thank you for your help

For what its worth, I just uninstalled and reinstalled Channels DVR and Channels DVR Server. I once again get the following:

We recommend creating a new DVR directory on your storage drive for Channels DVR. For example, /Volumes/USB/DVR or D:\DVR . Once you navigate to your storage drive, click on the button to create a new subdirectory.

Error: unable to create dvr directory: mkdir /storage/6C5CE2595CE21E18/DVR: permission denied

I'll give up now until I get a reply - thanks

You will need to create /storage/xxxx/NVIDIA_SHIELD/DVR

2 Likes

That did it - so simple. Thank you!

2 Likes

Hi, I just got the Nvidia Shield Pro and attached a 4TB usb drive. I'm getting the same error you described above "unable to create dvr directory: mkdir /storage/data: permission denied". This includes trying the exact directory name you suggested and many other combinations.

Here's the log

2019/11/20 05:18:27 [SYS] Starting Channels DVR v2019.11.19.2312 (android-arm64 pid:11539) in /data/data/com.getchannels.dvr/files/channels-dvr/data
2019/11/20 05:18:28 [HDR] Found 0 devices
2019/11/20 05:18:28 [ERR] Failed to refresh auth: missing oauth client
2019/11/20 05:18:28 [SYS] Started HTTP Server
2019/11/20 05:18:28 [SYS] Bonjour service running for dvr-shield.local. [10.89.232.117]
2019/11/20 05:34:59 [ERR] Failed to read directory /storage/emulated/0//Channels/DVR: open /storage/emulated/0//Channels/DVR: no such file or directory
2019/11/20 05:38:07 [ERR] Failed to read directory /storage/emulated/0//Channels: open /storage/emulated/0//Channels: no such file or directory
2019/11/20 05:38:07 [ERR] Failed to read directory /storage/emulated/0//Channels: open /storage/emulated/0//Channels: no such file or directory
2019/11/20 05:38:27 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:38:27 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:38:44 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:38:44 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:39:13 [ERR] Failed to read directory /storage//Volumes/USB/DVR: open /storage//Volumes/USB/DVR: no such file or directory
2019/11/20 05:39:23 [ERR] Failed to read directory /storage//Volumes/USB/DVR: open /storage//Volumes/USB/DVR: no such file or directory
2019/11/20 05:39:23 [ERR] Failed to read directory /storage//Volumes/USB/DVR: open /storage//Volumes/USB/DVR: no such file or directory
2019/11/20 05:39:23 [ERR] Failed to read directory /storage//Volumes/USB/DVR: open /storage//Volumes/USB/DVR: no such file or directory
2019/11/20 05:45:57 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:46:17 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD/DVR: open /storage/xxxx/NVIDIA_SHIELD/DVR: no such file or directory
2019/11/20 05:46:21 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD/DVR: open /storage/xxxx/NVIDIA_SHIELD/DVR: no such file or directory
2019/11/20 05:46:21 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD/DVR: open /storage/xxxx/NVIDIA_SHIELD/DVR: no such file or directory
2019/11/20 05:46:21 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD/DVR: open /storage/xxxx/NVIDIA_SHIELD/DVR: no such file or directory
2019/11/20 05:49:38 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD: open /storage/xxxx/NVIDIA_SHIELD: no such file or directory
2019/11/20 05:49:38 [ERR] Failed to read directory /storage/xxxx/NVIDIA_SHIELD: open /storage/xxxx/NVIDIA_SHIELD: no such file or directory
2019/11/20 05:49:39 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:49:39 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:50:16 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:50:18 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:50:18 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:50:18 [ERR] Failed to read directory /storage/xxxx: open /storage/xxxx: no such file or directory
2019/11/20 05:53:03 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:53:03 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:53:12 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:53:12 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:54:47 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:54:47 [ERR] Failed to read directory /storage/emulated: open /storage/emulated: permission denied
2019/11/20 05:55:10 [ERR] Failed to read directory /storage//data/DVR: open /storage//data/DVR: no such file or directory
2019/11/20 05:55:14 [ERR] Failed to read directory /storage//data: open /storage//data: no such file or directory
2019/11/20 05:55:14 [ERR] Failed to read directory /storage//data: open /storage//data: no such file or directory
2019/11/20 05:55:28 [ERR] Failed to read directory /storage/data/DVR: open /storage/data/DVR: no such file or directory

Hi - Let me first say that I don't even fully understand what I am about to tell you. I muddled through getting this to work, and have forgotten about it since then, so your source of real information should probably be from the techs (developers) at Channels DVR.

Having said that, the xxxx in the path refers to whatever directory name was assigned by the Shield when the external storage was set up. In my case it is /storage/4C9D-2CC8 but I suspect yours may be different.

So my files are in /storage/4C9D-2CC8/NVIDIA_SHIELD/DVR, but this may not work for you.

I hope someone will correct / add to what I have said above if necessary

The 4C9D-2CC8 portion is the UUID of the partition, and is unique to your drive (until you format it again). From the appearance of it, it looks to be an ExFAT partition, but you may want to check on that. Regular FAT partitions can only have files <4GB in size, and an hour of OTA broadcast TV is usually 5–7GB in size (in MPEG-2).

so i put just /storage/xxxx/NVIDIA_SHIELD/DVR? how do i create this folder?

Click storage on the left. Does it show something like XXXX-XXXX? If not that means you didn't format the drive correctly when you attached it. It has to be setup as removable storage

FYI. Installing an external USB hard drive on shieldTV doesn't work with channels DVR because the drive maps under /sdcard and not under /root/storage/

We recommend that usb drives are attached to the SHIELD as removable storage, NOT adopted storage.