Error on start - plexmediaserver (1.29.1.6260-420892357) - drmGetDevices2

I’m trying to complete my recovery here from stupidly installing Ubuntu 22.04.

@jesplex thanks for that… I’m clearly missing something as when I’ve tried that, I get errors:

s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
Stopping Plex Media Server.
docker-compose
  plex:
    image: plexinc/pms-docker:plexpass
    container_name: plex
    network_mode: host
    restart: always
    devices:
      - /dev/nvidia0
      - /dev/nvidiactl
      - /dev/nvidia-uvm
    volumes:
      - "/opt/NVIDIA_GPU_DRV/usr:/usr/local/nvidia:rw"
      - "/share/Container/docker/media/plex/:/config:rw"
      - "/share/PlexTranscode:/PlexTranscode:rw"
      - "/share:/share:ro"
      - "/share/Container/docker/media/plex/ld-musl-x86_64.path:/usr/lib/plexmediaserver/etc/ld-musl-x86_64.path:ro"
    environment:
      NVIDIA_VISIBLE_DEVICES: all
      NVIDIA_DRIVER_CAPABILITIES: all
      PLEX_UID: 0
      PLEX_GID: 0
      PUID: 0
      PGID: 0
      TZ: Europe/London
      VERSION: docker

I am not sure. Maybe try to re-pull the docker image or maybe try the latest one if it still doesn’t work.

Also, there are a bunch of environment variables that can be removed from your Docker compose template. You can find the support list for the image you are using here.

Curious, are the QPKG releases through the App Center releasing consistently now? That was a big reason I moved over to docker was not getting updates, the other was not being able to have both native hw accel for QTS and Container mode simultaneously, has this all been resolved?

Hi jesplex, I am similarly stumped using qnap with linuxserver image, any ideas??

GPU=nvidia0 gpu-docker run -d --restart unless-stopped
–name=plex
–net=host
-e PUID=0
-e PGID=0
-e VERSION=latest
-v /share/CACHEDEV2_DATA/Containers/Plex:/config
-v /share/CACHEDEV3_DATA/Multimedia/Episodes:/tv
-v /share/CACHEDEV3_DATA/Multimedia/Movies:/movies
-v /dev/shm:/transcode
-p 37403:32400
-e PATH=“/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
-e CUDA_VERSION=“10.0.130”
-e CUDA_PKG_VERSION=“10-0=10.0.130-1”
-e LD_LIBRARY_PATH=“/usr/lib/plexmediaserver/lib:/usr/local/nvidia/lib:/usr/local/nvidia/nvidia.u18.04:/usr/local/cuda/extras/CUPTI/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64”
-e NVIDIA_VISIBLE_DEVICES=“all”
-e NVIDIA_DRIVER_CAPABILITIES=“all”
-e NVIDIA_REQUIRE_CUDA=“cuda>=10.0 brand=tesla,driver>=384,driver<385 brand=tesla,driver>=410,driver<411”
lscr.io/linuxserver/plex:latest

Unfortunately, I am not familiar with what it seems to be a custom docker command you are trying to use. I am running my PMS using the docker binary provided by QNAP.

Have you tried to use the docker compose template I provided above?

Hi i try to update plex to last plex pass betab Plex Media Server 1.30.1.6497 for test cache size but i can’t if i apply ld-musl-x86_64.path → './usr/lib/plexmediaserver/etc/ld-musl-x86_64.path

This error : unable to make backup link of ‘./usr/lib/plexmediaserver/etc/ld-musl-x86_64.path’ before installing new version: Invalid cross-device link
Has anyone been able to update and continue to maintain the patch that @jesplex has been doing for a long time?
For plexinc/pms-docker:plexpass image


2023-01-01T03:19:48.398002186Z [s6-init] making user provided files available at /var/run/s6/etc…exited 0.
2023-01-01T03:19:48.413669745Z [s6-init] ensuring user provided files have correct perms…exited 0.
2023-01-01T03:19:48.414035548Z [fix-attrs.d] applying ownership & permissions fixes…
2023-01-01T03:19:48.414787770Z [fix-attrs.d] done.
2023-01-01T03:19:48.415046351Z [cont-init.d] executing container initialization scripts…
2023-01-01T03:19:48.415403396Z [cont-init.d] 40-plex-first-run: executing…
2023-01-01T03:19:48.559367295Z Plex Media Server first run setup complete
2023-01-01T03:19:48.559885410Z [cont-init.d] 40-plex-first-run: exited 0.
2023-01-01T03:19:48.560428782Z [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: executing…
2023-01-01T03:19:48.562050928Z [cont-init.d] 45-plex-hw-transcode-and-connected-tuner: exited 0.
2023-01-01T03:19:48.562313661Z [cont-init.d] 50-plex-update: executing…
2023-01-01T03:19:48.981156513Z Attempting to upgrade to: 1.30.1.6497-5fc2e0894
2023-01-01T03:19:48.985236202Z % Total % Received % Xferd Average Speed Time Time Time Current
2023-01-01T03:19:48.985261520Z Dload Upload Total Spent Left Speed
2023-01-01T03:19:49.194626298Z
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 190 0 190 0 0 909 0 --:–:-- --:–:-- --:–:-- 909
2023-01-01T03:19:50.369348269Z
21 81.6M 21 17.2M 0 0 23.1M 0 0:00:03 --:–:-- 0:00:03 23.1M
100 81.6M 100 81.6M 0 0 58.9M 0 0:00:01 0:00:01 --:–:-- 101M
2023-01-01T03:19:50.418895999Z Selecting previously unselected package plexmediaserver.
2023-01-01T03:19:50.438776885Z (Reading database … 7274 files and directories currently installed.)
2023-01-01T03:19:50.439024730Z Preparing to unpack /tmp/plexmediaserver.deb …
2023-01-01T03:19:50.455517288Z PlexMediaServer install: Pre-installation Validation.
2023-01-01T03:19:50.461929659Z PlexMediaServer install: Docker detected. Preinstallation validation not required.
2023-01-01T03:19:50.464011301Z Unpacking plexmediaserver (1.30.1.6497-5fc2e0894) …
2023-01-01T03:19:52.872380369Z dpkg: error processing archive /tmp/plexmediaserver.deb (–install):
2023-01-01T03:19:52.872396510Z unable to make backup link of ‘./usr/lib/plexmediaserver/etc/ld-musl-x86_64.path’ before installing new version: Invalid cross-device link
2023-01-01T03:19:52.917044159Z dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
2023-01-01T03:19:52.941525870Z Errors were encountered while processing:
2023-01-01T03:19:52.941540787Z /tmp/plexmediaserver.deb
2023-01-01T03:19:52.949334823Z [cont-init.d] 50-plex-update: exited 0.
2023-01-01T03:19:52.949727308Z [cont-init.d] done.
2023-01-01T03:19:52.949984699Z [services.d] starting services
2023-01-01T03:19:52.952953574Z [services.d] done.
2023-01-01T03:19:52.953496986Z Starting Plex Media Server.
2023-01-01T03:19:52.956041235Z s6-applyuidgid: fatal: unable to exec /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
2023-01-01T03:19:52.957119068Z Stopping Plex Media Server.
2023-01-01T03:19:52.959781398Z kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]

It looks like that the ld-musl-x86_64.path file is getting updated on server upgrades. The error is probably because this file is mounted ready only.

In my setup using the linuxserver/plex docker image, I am actually running the below custom script at startup which populates the /usr/lib/plexmediaserver/etc/ld-musl-x86_64.path file accordingly., removing the need to mount it externally. I am unsure if the plexinc/pms-docker docker image provides such ability.

#!/usr/bin/with-contenv bash

# Add nvidia libraries
! grep -qxF "/usr/local/nvidia/lib" $PLEX_MEDIA_SERVER_HOME/etc/ld-musl-x86_64.path &&
echo "/usr/local/nvidia/lib" >> $PLEX_MEDIA_SERVER_HOME/etc/ld-musl-x86_64.path

Ok, yes I already see that in your image a custom script is possible, but I don’t see it in the official one, there is a way I can solve it because until now it updated without problems

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