Trying to Move Plex Database to New User

I decided that it would be a good idea to ‘containerize’ my home media configuration on my Mac Media Server (running MacOS Sierra). To keep things clean I opted to setup the new containerized versions of the various software that I use under a new user (docker user).

I am using the official Plex container pulled from the plexinc/pms-docker container and a docker-compose file as shown below:

Plex Media Server

  plexms:
    container_name: plexms
    hostname: plexms_docker
    restart: always
    image: plexinc/pms-docker
    volumes:
      - ${USERDIR}/docker/plexms:/config
      - ${DATADIR_2}/downloaded/plex_tmp:/transcode
      - ${DATADIR_1}/Public/iMac\ Movies:/media
      - ${DATADIR_1}/Public/iMac\ Music:/media
      - ${DATADIR_1}/Public/TV:/media
      - ${DATADIR_1}/Public/iMac\ Pictures:/media 
      - ${USERDIR}/docker/shared:/shared

# changed all 32xxx ports to 38xxx ports to see if it negates port in use
# errors
    ports:
      - "38400:32400/tcp"  # use 33400
      - "3005:3005/tcp"
      - "8324:8324/tcp"
      - "38469:32469/tcp" # complains already in use - switch to 32470
      - "1900:1900/udp"
      - "38410:32410/udp"
      - "38412:32412/udp"
      - "38413:32413/udp"
      - "38414:32414/udp"
    environment:
      - TZ=${TZ}
      - HOSTNAME="Docker Plex"
      - PLEX_CLAIM="claim-GarRfKZV6U3gFkQP2rqN"
      - PLEX_UID=${PUID}
      - PLEX_GID=${PGID}
      - ADVERTISE_IP="http://192.168.10.26:38400/"

Although the container starts I cannot connect using localhost:38400. An excerpt from the start of the container log is shown below:

[fix-attrs.d] done.,[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...,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 40-plex-first-run: executing... ,
/var/run/s6/etc/cont-init.d/40-plex-first-run: line 39: [: 506:: integer expression expected,
/var/run/s6/etc/cont-init.d/40-plex-first-run: line 61: [: 507:: integer expression expected,
Creating pref shell,
Attempting to obtain server token from claim token,
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current,
                                 Dload  Upload   Total   Spent    Left  Speed,

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     1    0     1    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100     1    0     1    0     0      0      0 --:--:--  0:00:01 --:--:--     0,
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.,
Critical: libusb_init failed,
[s6-finish] sending all processes the KILL signal and exiting.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
failed to load external entity "/config/Library/Application Support/Plex Media Server/Preferences.xml",
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign

I’d appreciate feedback on what I may have misconfigured in the Docker-compose file. As far as I can tell it is more or less similar to that provided on the Plexinc/pms-docker Github site.

https://github.com/plexinc/pms-docker/blob/master/docker-compose-bridge.yml.template

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.