Server Version#: 1.26.2.5797
Player Version#: 4.82.1
With Chuck’s help, I managed to get Plex running in a Docker container on my Synology running DSM 7.1. I was excited because I was also able to get hardware transcoding working. However, I think I found a problem with being able to delete media from the Plex web interface. It always fails now.
Thinking in terms of Docker I went into the container where I remembered that inside the container, processes are run as the “plex” user and the UID of that user is 297536 in my case, whereas the files are owned by the 1000 user (in general my username andrew).
No. Didn’t even know Synology provided one. Under /volume1 I make a directory called Media with Videos, Pictures and Music under it then filed it with my stuff.
That’s good. The more you do for yourself, the better.
There have been conflicts between VideoStation, AudioStation, and PhotoStation with Plex due to how Synology overwrites permissions on a frequent basis in the “Video” shared folder
I assume you mean when I log into Plex. I’ve only ever logged into Plex as my one user, which owns the server. Note that at one time delete from the Plex web was working, then I switched to the docker thing and it hasn’t worked since.
This is not a real big deal as I’m well versed in the rm(1) command and usually access my files on Plex (under an NFS mount of plex_server:/volume1/Media) when I want to manipulate files (I’m doing a big run of Tdarr right now compressing my files). But it would be nice if delete from the Plex web worked again.
List the contents of one mounted directory from the Linux side.
Now SSH into the Syno and list that same directory.
On the Syno ssh, you should see the ACLs attached,
chuck@ds418:/volume1/Animated$ ls -la
total 432
drwxrwxrwx+ 104 chuck root 4096 Jun 25 2020 .
drwxr-xr-x 48 root root 4096 May 27 21:03 ..
drwxrwxrwx+ 2 chuck root 4096 Feb 8 2018 'Aladdin (1992)'
drwxrwxrwx+ 2 chuck root 4096 Sep 23 2017 'Alvin and the Chipmunks (2007)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Alvin and the Chipmunks Chipwrecked (2011)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Alvin and the Chipmunks The Road Chip (2015)'
drwxrwxrwx+ 2 chuck root 4096 Aug 11 2018 'Alvin and the Chipmunks The Squeakquel (2009)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Atlantis The Lost Empire (2001)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Bambi (1942)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Beauty and the Beast (1991)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Boundin'\'' (2003)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Brave (2012)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'BURN·E (2008)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Cars (2006)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Cars 2 (2011)'
drwxrwxrwx+ 2 chuck root 4096 Feb 8 2018 'Cars 3 (2017)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Day & Night (2010)'
drwxrwxrwx+ 2 chuck root 4096 Mar 11 2018 'Despicable Me (2010)'
drwxrwxrwx+ 2 chuck root 4096 Sep 17 2017 'Despicable Me 2 (2013)'
drwxrwxrwx+ 2 chuck root 4096 Feb 8 2018 'Despicable Me 3 (2017)'
From NFS on the workstation, you won’t.
root@lizum:/home/chuck# ls -la /mnt3
total 424
drwxrwxrwx 104 1026 root 4096 Jun 25 2020 .
drwxr-xr-x 31 root root 4096 May 26 00:53 ..
drwxrwxrwx 2 1026 root 4096 Feb 8 2018 'Aladdin (1992)'
drwxrwxrwx 2 1026 root 4096 Sep 23 2017 'Alvin and the Chipmunks (2007)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Alvin and the Chipmunks Chipwrecked (2011)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Alvin and the Chipmunks The Road Chip (2015)'
drwxrwxrwx 2 1026 root 4096 Aug 11 2018 'Alvin and the Chipmunks The Squeakquel (2009)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Atlantis The Lost Empire (2001)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Bambi (1942)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Beauty and the Beast (1991)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Boundin'\'' (2003)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Brave (2012)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'BURN·E (2008)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Cars (2006)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Cars 2 (2011)'
drwxrwxrwx 2 1026 root 4096 Feb 8 2018 'Cars 3 (2017)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Day & Night (2010)'
drwxrwxrwx 2 1026 root 4096 Mar 11 2018 'Despicable Me (2010)'
drwxrwxrwx 2 1026 root 4096 Sep 17 2017 'Despicable Me 2 (2013)'
drwxrwxrwx 2 1026 root 4096 Feb 8 2018 'Despicable Me 3 (2017)'
Since everything on the Syno is driven by ACLs, and PlexMediaServer is a non-privileged user, any filesystem activity which clears the ACL (you modifying files from the NFS side) will block Plex from having the assigned “DSM permissions”.
The file access will resort (in Syno’s words) to “Linux mode”.
When the ACLs are intact to permit writing (deletion) then you’ll be able to delete the file(s).
This was so much easier in DSM 6. It’s been made overly secure in the DSM 7 redesign. (IMHO)
Note that all of Read and Write are checked. I can see that This folder, Child folders, Child files, and All descendants are already checked.
6. There is no Save but there is a Done. Clicking on it does nothing but close the dialog box.
Wait! This Apply to this folder, sub-folders and files check box is on the Edit Shared Folder Media dialog box. Well, that’s a strange place to put that! One would think UI/UX-wise that that would appear on in individual User’s settings.
Ah so now it’s applying properly. This will take a while…
Seems to be working now:
Jupiter:ll /Videos/
total 0
drwxrwxrwx+ 1 andrew defaria 262 Apr 19 06:48 ./
drwxrwxrwx+ 1 andrew defaria 108 May 19 21:18 ../
drwxrwxrwx+ 1 andrew defaria 922 May 22 11:19 4k/
drwxrwxrwx+ 1 andrew defaria 1448 Mar 16 11:38 Concerts/
drwxrwxrwx+ 1 andrew defaria 3366 Mar 25 14:59 Documentaries/
drwxrwxrwx+ 1 andrew defaria 1032 Mar 16 14:43 Family/
drwxrwxrwx+ 1 andrew defaria 138 Sep 21 2020 HomeMade/
drwxrwxrwx+ 1 andrew defaria 3544 Oct 2 2020 Lectures/
drwxrwxrwx+ 1 andrew defaria 94 Mar 16 13:57 Miscellaneous/
drwxrwxrwx+ 1 andrew defaria 336612 May 27 18:20 Movies/