I’m trying to run the linuxserver.io Plex image on an Intel NUC. Per that project’s instructions, I have created a docker-compose.yml
file that looks like this:
version: "2.1"
services:
plex:
image: ghcr.io/linuxserver/plex
container_name: plex
network_mode: host
environment:
- PUID=1000
- PGID=1000
- VERSION=docker
- PLEX_CLAIM=claim-xxxxxxxxxxx
volumes:
- /mnt/media/plex:/config
- /mnt/media/Movies:/movies
restart: unless-stopped
When I run this file with sudo docker-compose up
, I get the following logs from the container:
Creating plex ... done
Attaching to plex
plex | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
plex | [s6-init] ensuring user provided files have correct perms...exited 0.
plex | [fix-attrs.d] applying ownership & permissions fixes...
plex | [fix-attrs.d] done.
plex | [cont-init.d] executing container initialization scripts...
plex | [cont-init.d] 01-envfile: executing...
plex | [cont-init.d] 01-envfile: exited 0.
plex | [cont-init.d] 10-adduser: executing...
plex |
plex | -------------------------------------
plex | _ ()
plex | | | ___ _ __
plex | | | / __| | | / \
plex | | | \__ \ | | | () |
plex | |_| |___/ |_| \__/
plex |
plex |
plex | Brought to you by linuxserver.io
plex | -------------------------------------
plex |
plex | To support LSIO projects visit:
plex | https://www.linuxserver.io/donate/
plex | -------------------------------------
plex | GID/UID
plex | -------------------------------------
plex |
plex | User uid: 1000
plex | User gid: 1000
plex | -------------------------------------
plex |
plex | [cont-init.d] 10-adduser: exited 0.
plex | [cont-init.d] 40-chown-files: executing...
plex | Change in ownership detected, please be patient while we chown existing files
plex | This could take some time
plex | [cont-init.d] 40-chown-files: exited 0.
plex | [cont-init.d] 45-plex-claim: executing...
plex | Temporarily starting Plex Media Server.
plex | Waiting for Plex to generate its config
plex | Waiting for database creation to complete...
plex | Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
plex | Crash Uploader options (all are required):
plex | --directory arg Directory to scan for crash reports
plex | --serverUuid arg UUID of the server that crashed
plex | --userId arg User that owns this product
plex | --platform arg Platform string
plex | --platformVersion arg Platform version string
plex | --vendor arg Vendor string
plex | --device arg Device string
plex | --model arg Device model string
plex | --sentryUrl arg Sentry URL to upload to
plex | --sentryKey arg Sentry Key for the project
plex | --version arg Version of the product
plex | --allowRetries arg Whether we will allow retries
plex | Waiting for database creation to complete...
plex | Waiting for pref file creation to complete...
plex | Stopping Plex to claim server
plex | Plex stopped
plex | % Total % Received % Xferd Average Speed Time Time Time Current
plex | Dload Upload Total Spent Left Speed
100 6531 0 6531 0 0 9880 0 --:--:-- --:--:-- --:--:-- 9865
plex | Server claimed successfully, navigate to http://serverip:32400/web to complete plex setup.
plex | [cont-init.d] 45-plex-claim: exited 0.
plex | [cont-init.d] 50-gid-video: executing...
plex | [cont-init.d] 50-gid-video: exited 0.
plex | [cont-init.d] 60-plex-update: executing...
plex | Docker is used for versioning skip update check
plex | [cont-init.d] 60-plex-update: exited 0.
plex | [cont-init.d] 99-custom-scripts: executing...
plex | [custom-init] no custom files found exiting...
plex | [cont-init.d] 99-custom-scripts: exited 0.
plex | [cont-init.d] done.
plex | [services.d] starting services
plex | Starting Plex Media Server.
plex | [services.d] done.
plex | Traceback (most recent call last):
plex | File "/usr/lib/plexmediaserver/Resources/Plug-ins-6119e8eed/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 168, in <module>
plex | run()
plex | File "/usr/lib/plexmediaserver/Resources/Plug-ins-6119e8eed/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py", line 148, in run
plex | core = Framework.core.FrameworkCore(bundle_path, FRAMEWORK_DIR, config)
plex | File "/usr/lib/plexmediaserver/Resources/Plug-ins-6119e8eed/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 148, in __init__
plex | self.set_value('LastVersion', self.version)
plex | File "/usr/lib/plexmediaserver/Resources/Plug-ins-6119e8eed/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/core.py", line 551, in set_value
plex | self.storage.save(self._values_file_path, json_str)
plex | File "/usr/lib/plexmediaserver/Resources/Plug-ins-6119e8eed/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 91, in save
plex | os.remove(tempfile)
plex | OSError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.system/._StoredValues'
plex | OSError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.thetvdb/._StoredValues'
plex | OSError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.movieposterdb/._StoredValues'
plex | OSError: [Errno 2] No such file or directory: '/config/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.plexapp.agents.lastfm/._StoredValues'
I’ve pruned that a little to remove duplicates of the stack trace - they’re all the same, and one appears before each of the No such file or directory
errors at the end of the file. I have confirmed that these files are indeed missing.
If I grep the /config/Library/Application Support/Plex Media Server/Logs/Plex\ Media\ Server.log
file for errors, I get the following:
May 29, 2021 00:18:47.456 [0x7f5bc93dfb38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.system], we're killing it.
May 29, 2021 00:18:59.329 [0x7f5bc8a69b38] WARN - HTTP error requesting GET https://192-168-2-10.317ef5838df743749091f95bfee832b2.plex.direct:32400 (35, SSL connect error) (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 192-168-2-10.317ef5838df743749091f95bfee832b2.plex.direct:32400 )
May 29, 2021 00:19:19.343 [0x7f5bc974ab38] WARN - HTTP error requesting GET https://192-168-2-10.0bcb9fe747484bc8a218b3277c6fcbe6.plex.direct:32400 (60, SSL peer certificate or SSH remote key was not OK) (SSL: no alternative certificate subject name matches target host name '192-168-2-10.0bcb9fe747484bc8a218b3287c6fcbe7.plex.direct')
May 29, 2021 00:19:29.331 [0x7f5bc8c55b38] WARN - HTTP error requesting GET /media/providers (3, URL using bad/illegal format or missing URL) ()
May 29, 2021 00:19:29.680 [0x7f5bc8c55b38] WARN - HTTP error requesting GET /media/providers (3, URL using bad/illegal format or missing URL) ()
May 29, 2021 00:21:47.460 [0x7f5bc93dfb38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.system], we're killing it.
May 29, 2021 00:24:47.472 [0x7f5bc911bb38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.agents.movieposterdb], we're killing it.
May 29, 2021 00:24:47.504 [0x7f5bc8c32b38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.agents.thetvdb], we're killing it.
May 29, 2021 00:24:47.564 [0x7f5bc905eb38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.system], we're killing it.
May 29, 2021 00:24:47.568 [0x7f5bc87b5b38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.agents.lastfm], we're killing it.
May 29, 2021 00:27:47.672 [0x7f5bc9357b38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.system], we're killing it.
May 29, 2021 00:30:47.684 [0x7f5bc8743b38] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.system], we're killing it.
None of that looks particularly healthy, and if I navigate to the web ui, I get to the Server Setup page, but it has an error message on it that says “A problem has been detected with a core component of Plex Media Server” and directs me to these forums.
It should be noted that the /mnt/media/plex
directory that I’m mounting to /config
is empty when I start the container, so this is a fresh install using the docker-compose.yml
configuration that is in the docs.
My setup details:
$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
$ sudo docker --version
Docker version 20.10.2, build 20.10.2-0ubuntu1~20.04.2
$ sudo docker-compose --version
docker-compose version 1.21.2, build a133471
Any tips?