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