Server Version#: plexinc/pms-docker:latest
I am unable to get things started properly with plex.
After running the docker, here are the logs I see.
[santosh@SRCS docker_mounts]$ docker logs plex
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
chown: cannot read directory ‘/config’: Permission denied
chown: cannot read directory ‘/transcode’: Permission denied
Creating pref shell
mkdir: cannot create directory ‘/config/Library’: Permission denied
/var/run/s6/etc/cont-init.d/40-plex-first-run: line 82: /config/Library/Application Support/Plex Media Server/Preferences.xml: No such file or directory
chown: cannot access ‘/config/Library/Application Support/Plex Media Server’: No such file or directory
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
failed to load external entity “/config/Library/Application Support/Plex Media Server/Preferences.xml”
Attempting to obtain server token from claim token
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
Plex Media Server first run setup complete
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
[cont-finish.d] executing container finish scripts…
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
More debugging:
[santosh@SRCS docker_mounts] docker exec -it -u plex:plex plex /bin/bash
plex@Media:/ ls -l
total 44
drwxr-xr-x. 2 root root 8192 Mar 4 2016 bin
drwxr-xr-x. 2 root root 6 Apr 12 2016 boot
drwxr-xr-x. 2 plex plex 4096 Aug 26 20:40 config
drwxr-xr-x. 9 plex users 134 May 4 2018 data
drwxr-xr-x. 5 root root 360 Aug 26 20:44 dev
drwxrwxr-x. 54 root root 4096 Aug 26 20:44 etc
-rwxrwxr-x. 1 root root 158 Aug 22 00:13 healthcheck.sh
drwxr-xr-x. 2 root root 6 Apr 12 2016 home
-rwxr-xr-x. 1 root root 369 Mar 5 2016 init
-rwxrwxr-x. 1 root root 490 Aug 22 00:13 installBinary.sh
drwxr-xr-x. 8 root root 96 Sep 13 2015 lib
drwxr-xr-x. 2 root root 34 Jul 20 06:50 lib64
drwxr-xr-x. 2 root root 28 Mar 4 2016 libexec
drwxr-xr-x. 2 root root 6 Jul 20 06:50 media
drwxr-xr-x. 2 root root 6 Jul 20 06:50 mnt
drwxr-xr-x. 2 root root 6 Jul 20 06:50 opt
-rwxrwxr-x. 1 root root 1512 Aug 22 00:13 plex-common.sh
dr-xr-xr-x. 465 root root 0 Aug 26 20:44 proc
drwx------. 2 root root 37 Jul 20 06:51 root
drwxr-xr-x. 4 root root 80 Aug 26 20:44 run
drwxr-xr-x. 2 root root 4096 Mar 4 2016 sbin
drwxr-xr-x. 2 root root 6 Jul 20 06:50 srv
dr-xr-xr-x. 13 root root 0 Aug 26 20:11 sys
drwxrwxrwt. 2 root root 40 Aug 26 20:44 tmp
drwxr-xr-x. 3 plex plex 23 Aug 22 23:29 transcode
drwxr-xr-x. 10 root root 105 Mar 4 2016 usr
drwxr-xr-x. 11 root root 139 Jul 20 06:51 var
-rw-r–r--. 1 root root 22 Aug 22 00:14 version.txt
plex@Media:/$
plex@Media:/$ ls /config
ls: cannot open directory ‘/config’: Permission denied
plex@Media:/$ id whoami
uid=1000(plex) gid=1000(plex) groups=1000(plex),44(video),100(users)
plex@Media:/$
I started the contained with a macvlan driver like so:
docker run -d --name plex --net=srv_net --ip=172.16.11.6 --dns=172.16.11.10 -e TZ=“America/Los_Angeles” -e PLEX_CLAIM=“claim-XXXX” -e ADVERTISE_IP=“http://ple:32400/” -h Media -v /srv/docker_mounts/plex:/config:rw -v /media/transcode:/transcode:rw -v /media/data:/data:ro plexinc/pms-docker
permisson on /srv/docker_mounts/plex:
drwxr-xr-x. 2 santosh docker 4096 Aug 26 20:40 plex
santosh@SRCS docker_mounts]$ id whoami
uid=1000(santosh) gid=100(users) groups=100(users),1000(docker)
The uid and gid inside and outside the container matches.
Ive tried numerous iterations and even reinstalled image etc… wtih no luck. Would appreciate any help!!
