Live TV works, but recording does not

I think it is a permission issue with the “plex” user, but I can’t get it figured out.

I’m running pms (1.9.2.4285) on linux machine (Peppermint 7). The media files are stored on a My Cloud 6TB Personal Cloud device (model: WDBCTL0060HWT-NESN firmware: 2.30.165).

I use the following fstab entry to mount the share:

//mccloud.local/PlexMedia /media/McCloud-Plex cifs uid=1000, gid=1000, credentials=/home/johnm/.Crdentials-McCloud, iocharset-utf8, sec=ntlm 0 0

This works fine for playing my media and I have a HDHomerun Prime which is working for playing live TV, but I cannot get recordings to work. The error I get from Plex is “No write access to destination”. (I can pause and rewind live tv though… I guess this is being stored in the plex home directory…)

The My Cloud device already had a group with gid of 2000 called cloudholders which i’ve added myself (johnm) and plex users to.

I’ve also added a cloudholders group (gid: 2000) with johnm and plex users to the linux machine running pms.

My uid on both devices is 1000 and plex is 115.

The permissions on the local directory are drwxr-xr-x 2 johnm johnm 0 Sep 27 05:01 McCloud-Plex.

I’ve tried to change these with chown, but no matter what user I use, they won’t change. No error either.

I’ve also tried different uid and gid codes in the fstab entry, but no luck.

Please let me know if you can help me get this working.

Thanks!

Can you switch to NFS from CIFS? (That one is for you Chuck)

Also you say:

My uid on both devices is 1000 and plex is 115.
I’ve also tried different uid and gid codes in the fstab entry, but no luck.

Did you try setting uid=1000 to uid=115 and get the gid for plex by issuing id -g when logged in as plex user and set the gid for plex in your fstab?

sudo chown -Rv 755 /media/McCloud-Plex

The v is going to give you verbose and might return an error to help you figure out why you can’t give write access to others (which is why you can play media but not record).

Ensure that you have read/write access to the temporary folder that PLEX DVR uses. By default, the folder is named ‘.grab’ and is located within the folder you have specified for your recordings. While recording, PLEX will write to this ‘.grab’ folder and once a recording is done, it will move the file to its final destination.

Thanks, everyone. I will try these things today and report back. I appreciate the help!

nokdim,

I have an option on the mycloud for NFS. It is turned on and the mount point is: nfs://192.168.1.248/nfs/PlexMedia. I don’t know how to use this, though.

I changed the fstab entry to uid:115 and gid:127

After mounting, doesn’t look like the permissions changed:

total 16K
drwxr-xr-x 6 root root 4.0K Sep 29 13:27 .
drwxr-xr-x 24 root root 4.0K Sep 28 23:12 …
drwxr-x—+ 2 root root 4.0K Feb 5 2017 johnm
drwxr-xr-x 2 plex plex 4.0K Sep 28 19:48 McCloud
drwxr-xr-x 2 johnm johnm 0 Sep 28 22:20 McCloud-JohnsCloud
drwxr-xr-x 2 johnm johnm 0 Sep 27 05:01 McCloud-Plex
-rw-r–r-- 1 root root 0 Sep 29 13:27 testfile.txt

Ultimately, I want both plex and my user (johnm) to be able to read/write to this share.

Thank you

bpcomp,

Here’s the output after running: sudo chown -Rv 755 /media/McCloud-Plex

changed ownership of ‘/media/McCloud-Plex’ from johnm to 755

Here’s the results:

total 16K
drwxr-xr-x 6 root root 4.0K Sep 29 13:27 .
drwxr-xr-x 24 root root 4.0K Sep 28 23:12 …
drwxr-x—+ 2 root root 4.0K Feb 5 2017 johnm
drwxr-xr-x 2 plex plex 4.0K Sep 28 19:48 McCloud
drwxr-xr-x 2 johnm johnm 0 Sep 28 22:20 McCloud-JohnsCloud
drwxr-xr-x 2 johnm johnm 0 Sep 27 05:01 McCloud-Plex
-rw-r–r-- 1 root root 0 Sep 29 13:27 testfile.txt

Doesn’t look like anything changed.

Thank you

leguelp,

I searched for *.grab and nothing was found. I looked in the “TV Shows” directory for that and don’t see any files with that either. I don’t see a setting in plex to designate a recording folder. All I have done so far is select “TV Shows” as the library when selecting a program to record.

Thank you

Here is a link on NFS and Plex

You already have the fstab setup so you just need a different fstab entry for NFS which the above link should cover.

When you add a mount in fstab it will only change the local permissions so it will never update any ownership or permissions on your WD only on Peppermint box if that makes sense.

nokdim,

Thank you. I had previously tried to go that route, but the nas will not let me set read or read/write access for user plex. I can set read/write access for my user acct, johnm. I don’t know what the problem is that’s keeping me from changing permissions on both devices.

Here’s the groups and users on the nas:

root@McCloud PlexMedia # cat /etc/group
root:x:0:root
administrators:x:1001:johnm
share:!:1000:johnm,nobody,katym,jackm,shellym,annam,plex,plex
allaccount:!:501:katym,jackm,shellym,annam,plex,plex
cloudholders:!:2000:johnm,katym,jackm,shellym,annam,plex,plex
netdev:x:2001:
2000:x:2002:plex
root@McCloud PlexMedia # cat /etc/passwd
root:x:0:0:Linux User,:/home/root:/bin/sh
sshd:x:0:0:Linux User,:/home/root:/bin/sh
ftp:*:95:95::/usr/share/ftp:
johnm:x:500:1000:John McCormick,:/home/admin:/bin/sh
nobody:x:501:1000:Linux User,:/home/nobody:/bin/sh
squeezecenter:x:65530:65530:Linux User,:/home/squeezecenter:/bin/sh
messagebus:x:65531:65531:Linux User,:/home/messagebus:/bin/sh
katym:x:1002:1000:Katy McCormick,,,,katybug511@live.com:/usr/share/ftp:/bin/sh
jackm:x:1003:1000:Jack McCormick,,,,jackm3@live.com:/usr/share/ftp:/bin/sh
shellym:x:1004:1000:Shelly McCormick,,,,johnmcjr@aol.com:/usr/share/ftp:/bin/sh
annam:x:1005:1000:Anna McCormick,,,,annamm13@outlook.com:/usr/share/ftp:/bin/sh
plex:x:1007:2002:,:/usr/share/ftp:/bin/sh
plex:x:115:1000:,:/usr/share/ftp:/bin/sh

I have no idea why there are 2 plex users. When I view users through the wd gui, only one plex user shows up.

Thanks

Hi All,

I was finally able to get recording working by doing a system reset on the wd device and recreating the users. This allowed my original fstab entry to change the uid and gid on the local file giving user plex permission to write.

I never did get nfs to work. Even though there’s an nfs option, it doesn’t seem like the wd device really supports it. Hopefully, it continues to work with cifs.

Thanks again for all the help.