Unable to start plexpass docker image

I’ve been using the plexpass docker image for a log time now but yesterday had reason to restart the images so I foolishly pulled the latest image at the same time.

Now the container won’t start.

In the container logs I get this:

[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... 


Plex Media Server first run setup complete


[cont-init.d] 40-plex-first-run: exited 0.


[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 


[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.


[cont-init.d] 50-plex-update: executing... 


/plex-common.sh: line 26: declare: warning: remoteVersion: circular name reference


/plex-common.sh: line 26: warning: remoteVersion: circular name reference


/plex-common.sh: line 27: declare: warning: remoteFile: circular name reference


/plex-common.sh: line 27: warning: remoteFile: circular name reference


/plex-common.sh: line 54: warning: remoteVersion: circular name reference


/plex-common.sh: line 55: warning: remoteFile: circular name reference


Could not get update version


[cont-init.d] 50-plex-update: exited 0.


[cont-init.d] done.


[services.d] starting services


[services.d] done.


Starting Plex Media Server.


s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory


kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]


Stopping Plex Media Server.


Starting Plex Media Server.


s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory


Stopping Plex Media Server.

please help

did you use the provided docker-compose yaml from here?

What platform are you running it on?

Yes I used the macvlan version as the starting point. It’s running on a Synology NAS running DSM6.2.3 and the docker package version 18.09.0-0513.

services:
  plex-topgun:
    image: plexinc/pms-docker:plexpass
    container_name: plex-topgun
    hostname: topgun
    restart: unless-stopped
    environment:
      - CHANGE_CONFIG_DIR_OWNERSHIP=true
      - TZ=Europe/London
      - PLEX_CLAIM=claim-9MaH1oxs5SZT1y-2Kyzn
      - PLEX_UID=1026
      - PLEX_GID=100
      - ALLOWED_NETWORKS=192.168.0.0/16
      - HOSTNAME=topgun
    privileged: true
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - /volume1/Public:/common
      - /volume1/SecurityCams:/mnt/cams
      - /volume1/docker/plexservers/topgun/config:/config
      - /volume1/docker/plexservers/topgun/transcode:/transcode
    networks:
      aa_frontend:
        ipv4_address: 192.168.2.198
        priority: 100
        aliases:
          - topgun

Why don’t you make life easy and just use the PMS for Synology package?
Screenshot 2020-12-06 at 11.37.44

1 Like

I run 2 servers to separate out some of the media and the Synology package isn’t that up to date from what I’ve seen.

It’s been running fine for a couple of years it’s just this last update thats not working.
I suspect it’s to do with the base image ubuntu version update.

The Synology version is absolute latest - v1.21.0.3711

Still doesn’t solve the 2 instances need.
To be honest I like using docker containers as it’s made moving between physical hardware much easier in the past.

Running with DEBUG=true on I can this around the first reported error:


+ getVersionInfo beta jesyQJz23tdwXfyx5yQY remoteVersion remoteFile


+ local version=beta


+ local token=jesyQJz23tdwXfyx5yQY


+ declare -n remoteVersion=remoteVersion


/plex-common.sh: line 26: declare: warning: remoteVersion: circular name reference


/plex-common.sh: line 26: warning: remoteVersion: circular name reference


+ declare -n remoteFile=remoteFile


/plex-common.sh: line 27: declare: warning: remoteFile: circular name reference


/plex-common.sh: line 27: warning: remoteFile: circular name reference

So it does look like an issue in the plex scripts somewhere.

1 Like

Scratch that look like the issue is that the container can’t resolve plex.tv

Resolved. Adding a DNS server to the docker config has solved the issue

2 Likes

Hi everybody,

I’m having the same error on my setup. I deployed plexpass docker yesterday for the first time (I’ve been using the Plex app for my QNAP for years), everything was working fine, then today I restarted the container and I’m getting the error

s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory

I don’t think it’s a DNS problem since from within the container the curl command works fine, but it seems there’s something wrong with version check (‘Could not get update version’), here’s my debug log:

[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... 
+ '[' -e /.firstRunComplete ']'
+ exit 0
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing... 
[cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
[cont-init.d] 50-plex-update: executing... 
+ . /plex-common.sh
++ CONT_CONF_FILE=/version.txt
+ '[' -f /etc/default/plexmediaserver ']'
+ pmsApplicationSupportDir='/config/Library/Application Support'
+ prefFile='/config/Library/Application Support/Plex Media Server/Preferences.xml'
++ getPref PlexOnlineToken
++ local key=PlexOnlineToken
++ xmlstarlet sel -T -t -m /Preferences -v @PlexOnlineToken -n '/config/Library/Application Support/Plex Media Server/Preferences.xml'
+ token=z6CynqTx3piyBJyHpnn4
+ dpkg --get-selections plexmediaserver
+ grep -wq install
+ installedVersion=none
+ readVarFromConf version versionToInstall
+ local variable=version
+ declare -n value=versionToInstall
+ '[' '!' -z version ']'
++ grep -w version /version.txt
++ tail -n 1
++ cut -d= -f2
+ value=beta
+ '[' -z beta ']'
+ '[' beta = none ']'
+ getVersionInfo beta z6CynqTx3piyBJyHpnn4 remoteVersion remoteFile
+ local version=beta
+ local token=z6CynqTx3piyBJyHpnn4
+ declare -n remoteVersion=remoteVersion
/plex-common.sh: line 26: declare: warning: remoteVersion: circular name reference
/plex-common.sh: line 26: warning: remoteVersion: circular name reference
+ declare -n remoteFile=remoteFile
/plex-common.sh: line 27: declare: warning: remoteFile: circular name reference
/plex-common.sh: line 27: warning: remoteFile: circular name reference
+ local channel
+ local tokenNeeded=1
+ '[' '!' -z '' ']'
+ '[' beta = beta ']'
+ channel=8
+ readVarFromConf plex_build plexBuild
+ local variable=plex_build
+ declare -n value=plexBuild
+ '[' '!' -z plex_build ']'
++ grep -w plex_build /version.txt
++ tail -n 1
++ cut -d= -f2
+ value=linux-x86_64
+ readVarFromConf plex_distro plexDistro
+ local variable=plex_distro
+ declare -n value=plexDistro
+ '[' '!' -z plex_distro ']'
++ grep -w plex_distro /version.txt
++ tail -n 1
++ cut -d= -f2
+ value=debian
+ local 'url=https://plex.tv/downloads/details/5?build=linux-x86_64&channel=8&distro=debian'
+ '[' 1 -gt 0 ']'
+ url='https://plex.tv/downloads/details/5?build=linux-x86_64&channel=8&distro=debian&X-Plex-Token=z6CynqTx3piyBJyHpnn4'
++ curl -s 'https://plex.tv/downloads/details/5?build=linux-x86_64&channel=8&distro=debian&X-Plex-Token=z6CynqTx3piyBJyHpnn4'
+ local versionInfo=
++ echo ''
++ sed -n 's/.*Release.*version="\([^"]*\)".*/\1/p'
+ remoteVersion=
/plex-common.sh: line 54: warning: remoteVersion: circular name reference
++ echo ''
++ sed -n 's/.*file="\([^"]*\)".*/\1/p'
+ remoteFile=
/plex-common.sh: line 55: warning: remoteFile: circular name reference
+ '[' -z '' ']'
+ echo 'Could not get update version'
Could not get update version
+ exit 0
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
Stopping Plex Media Server.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Container works fine with pms-docker:latest image, but I’m wondering what the problem could be with plexpass image…

same problem here
also use qnap + docker

Unfortunately the plexpass-image is still broken.
Any news on this?

There’s something weird because last week my container with plexpass image was starting correctly, I made some testing (it’s not my daily-use instance of plex) and stopped the container. After reading your post I tried to start it again and the error showed up again.

I found that removing the mapping to the ‘version.txt’ file allowed the container to start.

volumes:
  -  ./version.txt:/version.txt:rw

It used to be that if you put the string ‘plexpass’ in the file Plex would automatically update on restart, link

Also, it looks like they renamed the ‘plexpass’ tag some time ago, https://github.com/plexinc/pms-docker/commit/

Now the ‘version.txt’ contains more information than a single string.

$ sudo docker exec -it plex /bin/cat version.txt
version=beta
plex_build=linux-x86_64
plex_distro=debian

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