Dear people from plex!
Recently i wanted to migrate my docker to place the config files somehwere else since the data is getting bulky. Been running plex on docker without issues thus far. As i was working with docker i thought this would be easy but i ran into some problems.
Setup:
- Ubuntu 20.04 LTS
- Docker 19.03.8
- Latest plex docker image
Steps ive done (for full commands see below):
- Stop running PMS
- created a folder on my NAS which i acces through cifs share; same NAS as where my media lives, only different folder.
- Copied the config and transcode folders to their new destination (cp -a -v -L method)
- Start new docker container with similar commands as previous working container, only new locations of files.
Then it takes about 2 minuts of starting before it says “unhealthy”. Also tried step 4 with adding UID and GID.
The docker logs i see are these:
[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…
When i go to the webadress (same one as old container) i get a 502 error.
Docker command for working container:
docker run -d --name plex --network=host -e TZ=“Europe/Amsterdam” -v /home/wouter/docker/plex/config:/config -v /home/wouter/docker/plex/transcode:/transcode -v /MEDIA/:/data plexinc/pms-docker
Docker command for intended new container:
docker run -d --name plex_live --network=host -e PLEX_UID=0 -e PLEX_GID=0 -e TZ=“Europe/Amsterdam” -v /MEDIA/Software/DOCKER_LIVE/plex/config:/config -v /home/wouter/docker/plex/transcode:/transcode -v /MEDIA/:/data plexinc/pms-docker
Commands for copying the files to the new folder:
cp -a -v -L /home/wouter/docker/plex/config/* /MEDIA/Software/DOCKER_LIVE/plex/config
cp -a -v -L /home/wouter/docker/plex/transcode/* /MEDIA/Software/DOCKER_LIVE/plex/transcode
