Guide for installing Plex in Docker?

Currently reading
Guide for installing Plex in Docker?

1599939419792.png
 
Regardless of the folder beeing owned by user root (uid0) in the group root (gid 0), the access rights are read/write/execute (777) for the owner, the owners group and every other group. This should not prevent your plex process to access its content using any PUID/PGID, because the access rights for "other group" apply - which is read/write/execute..

Though, its quite possible that the access rights of the subfolders and/or the media files are more restrictive and are actualy what's spoiling it.

Can you share how you configured the volume tab of your container, and how you actualy configured your library inside plex?
 
Last edited:
1599940385392.png

Top two are my movie-folders.
Subfolders seems to have my admin-account as uid/gid.. But it won't help with those id's either...
Here's my plex-library view, not much to see.. "Filmer" is visible but empty.. (sorry for swedish)
1599940541910.png
 
I feel its impossible to help you, if you do not start sharing exact screenshots of a) the container volume tab, b) the library setting in plex, c) the PUID/PGID used in the environment tab and finaly the access rights and ownership of all folders starting with /volume1 up to one of your media files and all the folders inbetween. If we manage to make plex see one media file, we know it works and you can reproduce the solution to everything else.

This task is less than complicated if docker volumes, access rights and owner ship are understood.
 
I edited my previous post with screenshots for some stuff you asked for.. I checked "stat" for a few of my media-files and they seem to uid/pgid of my admin-user aswell. I am not sure how I can grab a screenshot of "accessrights and ownership of all folders starting with /volume1"..?
Here are my PUID/PGID for my plex-container:
1599940867903.png
 
I am an almost complete newbie at Docker-stuff (but really interested in getting the hang of it...) so please have patience with me. :) I appreciate all the help I can get. :) I've configured another container before, "Deluge" and got it working fine with permissions without no real struggle so not sure why Plex bothers me this much..
 
Last edited:
Thanks for providing the full picture.

Since literaly everything has 0777 permissions it the PUID/PGID of the plex container should not matter.

I feel like the syno acl are preventing the container to actualy bind the folders properly.
To test this theory we need further screenshots of:
Code:
ls -le /volume1/Filmer
ls -le /volume1/Filmer/Blandat
ls -le /volume1/Filmer/Blandat/0-C
ls -le /volume1/Filmer/Blandat/0-C/2012.1080.mkv
If many subfolders/files are in the folders, please paste the output into an editor and remove unneccesary details.

The output we are looking for looks like this:
ls -le /volume1/test
....
drwxrwxrwx+ 2 me users 4096 Apr 9 19:03 test
[0] user:me:allow:rwxpdDaARWcCo:fd-- (level: 1)
[1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
[2] owner::allow:rwxpdDaARWcCo:fdi- (level: 2)
[3] user:me:allow:rwxpdDaARWcCo:---- (level: 2)
[4] everyone::allow:--x----------:fd-- (level: 2)

Just for the sake of completeness, you can see the field descriptions when executing synoacltool
Code:
...
                Fields
                        name: user/group name
                        ACL Perm: rwxpdDaARWcCo
                                 r: (r)ead data
                                 w: (w)rite data (create file)
                                 x: e(x)ecute
                                 p: a(p)pend data (create dir)
                                 d: (d)elete
                                 D: (D)elete child (only for dir)
                                 a: read (a)ttribute (For SMB read-only/hidden/archive/system)
                                 A: write (A)ttribute
                                 R: (R)ead xattr
                                 W: (W)rite xattr
                                 c: read a(c)l
                                 C: write a(c)l
                                 o: get (o)wner ship

                        inherit mode: fdin
                                 f: (f)ile inherited
                                 d: (d)irectory inherited
                                 i: (i)nherit only
                                 n: (n)o propagate
 
Last edited:
I need this output for every in between folder as well. If the acl details are missing, it simply means they have no acl applied.

You can get rid of the acls and change your permissions back to 777 with two commands:
Code:
find /volume1/Filmer -exec echo "{}:" \; -exec synoacltool -del {} \;
chmod 777 -R  /volume1/Filmer

This will remove all acl details and make it use the unix access rights only.
 
Here are some requested details. Does they give any hints for you?
"ls -le /volume1/Filmer/Blandat/0-C" just lists all my movies, is that still relevant or can I check for something special there so I don't have to paste the entire thing here?

Code:
 ls -le /volume1/Filmer
total 6713796
drwxrwxrwx+ 1 admin users         18 May  7 20:46 4K
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        416 Apr  6  2018 Amigademos
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        226 Apr 25 22:26 _Annat
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users       3466 Aug  6 16:44 Barn
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        648 May  8 22:53 Barn tv-serier
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users         48 Aug  6 16:47 Blandat
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        358 May  8 22:17 Blu-ray
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 root  root          66 Sep 12 22:23 @eaDir
         [0] everyone::allow:rwxpdDaARWcCo:fd-- (level: 0)

drwxrwxrwx+ 1 admin users         62 May  8 21:40 h265
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        124 Nov 14  2016 Hemmavideo
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users        866 Jul 28 21:33 ISO
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxrwxrwx+ 1 admin users       1390 Jun  4  2018 Musikvideos
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

drwxr-xr-x  1 root  root         666 Sep 13 02:00 #snapshot

drwxrwxrwx+ 1 admin users        926 Jul 28 21:32 Tv-serier
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 1)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 1)

Code:
ls -le /volume1/Filmer/Blandat
total 0
drwxrwxrwx+ 1 admin users 2598 Sep  9 21:19 0-C
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 3016 Aug  1 22:13 D-F
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 4152 Sep  9 21:21 G-J
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 3776 Aug  1 22:14 K-M
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 4068 Sep  9 20:49 N-P
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 4644 Sep  9 21:13 Q-S
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users 4460 Aug  7 07:50 T-V
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)

drwxrwxrwx+ 1 admin users  434 Aug  1 22:14 W-Z
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 2)
         [1] group:administrators:allow:rwxpdDaARWc--:fd-- (level: 2)
         [2] user:plex:allow:r-x---a-R-c--:fd-- (level: 2)
 
I am by no means a pro when it commes to acls.

Though, when I compare my acl rules with yours, there are some differences:

mine:
Code:
drwxrwxrwx+ 2 me users 4096 Apr 9 19:03 test
[0] user:me:allow:rwxpdDaARWcCo:fd-- (level: 1)
...
[2] owner::allow:rwxpdDaARWcCo:fdi- (level: 2)
...

yours:
Code:
drwxrwxrwx+ 1 admin users         48 Aug  6 16:47 Blandat
         [0] user:docker:allow:rwxpdDaARWc--:fd-- (level: 1)
         ...

While my rule has the folder owner in rule 0, your has the docker user. Mine additionals has owner, which none of your has. Since the acl permissions are inherited from a parent folders setting ( :fd... ),

It might be sufficient to replcace the permissions for the user:docker with the user:admin.
If it is not, someone more knowledged about acls needs to pitch in.

I personaly would simply delete the acl's (you can find the commands above). Yesterday I did so, and to my surprise Plex found 4 new media items. Once Plex is able to see the folder content, you can re-assign acls one by one, and check if one of them breaks the volume moun visibility.
 
Last edited:
Can this be accomplished within the DSM UI someway? Or can I fix this with a workaround somehow that lets me know what I am doing? :)
EDIT: I tried removing plex/docker users and leaving only admin as user (within DSM). But when I add "plex" or "docker" later, the "admin" role looses it's 0-position to the newly added users when i use the stat-command... (not sure what I'm talking about, perhaps it makes sense for someone? :))
 
As inidicated earlier we officialy reached my competency limits with acl.

Though, this is not a docker problem per se, as it has no idea about the syno acls.
This is a permission issue on the Syno side, which I am sure other users of this forum are more qualified to address :)
 
I ran across this thread today on hardware transcoding for Plex Docker installs. Perhaps you @oRBIT may find it helpful...
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Last edited:
It's not really related to my problem but thanks anyway. Tried installing "JellyFin" instead (working out-of-the-box with hardware transcoding btw) and had no issues adding my movies-folder so that's odd that it struggles with Plex only. Too bad JellyFin have alot of other issues though..

EDIT: Got my Plex-docker setup working now actually. I set "everyone" has read-access to my movies-folder in DSM and now they appears fine. :) Perhaps I have to struggle with enable hardware-transcoding anyway in Plex now. Seems to be everything but straightforward though..
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top