Unable to run Plex binaries or DBUpdate on command line

Plex Server Version#: Version 4.140.0
Player Version Not Applicable
QNAP Server Version#: QuTS Hero h5.2.2.2952 (Running on TS-873A)
Nvidia Quadro P2000 running in QTS Mode (works fine for transcodes)

When I try to run any of the Plex binaries (without the .sh script, or outside of the App Center) the apps fail to launch with the following error, including any binaries called by the most recent instance DBRepair.sh script, that itself appears to call these same binaries.

/share/ZFS530_DATA/.qpkg/PlexMediaServer/Plex\ SQLite --help
Error relocating /share/ZFS530_DATA/.qpkg/PlexMediaServer/Plex Media Server: drmGetDevices2: symbol not found

This worked previous to the last QNAP security update. I updated the NVidia drivers post QNAP upgrade, and reinstalled the .qpkg of Plex as well.

It should be noted that the app starts fine via App Center, just not via the plex.sh start script (same error)… Stopping via the .sh script works reliably, just not starting.

Thank you for any insight you may be able to provide.

I’ve continued looking into this and it appears that a shared library link either being incorrect or missing is probably the issue based on what I read here (albeit for docker issue): Error on start - plexmediaserver (1.29.1.6260-420892357) - drmGetDevices2 - #43 by jesplex

The logs of my attempt to stop, repair, start here:

Starting plex via appcenter works reliably, and is the only method I can use to start it so perhaps some differences in the shell environment between logging in as qnap admin vs appcenter are to blame…

For command line start/stop, try /etc/init.d/plex.sh start or stop or restart

Regarding the DB tool, I’ll leave that to the experts :wink:

can you provide some information about this please ?

I don’t use Hero on a daily basis.

There was a v5.2.2.2952 security upgrade: QuTS hero h5.2.2.2952 build 20241116 | Release Notes | QNAP (US)

I installed the QuTS upgrade November 16th and following that I installed the NVidia driver update for my Quadro P2000, NVidia driver version v5.2.0.0621 on November 22, NvKernelDriver v5.2.2.2952 as part of the new qnap/linux kernel, also on November 22.

After that, I’ve been unable to start/stop or use DBrepair.sh (which calls the same binaries in the same environment as the SSH shell I guess) since.

@dane22: Command output follows, only seems to start via Appcenter, not via SSH

/share/ZFS530_DATA/.qpkg/PlexMediaServer/plex.sh stop

Stopping Plex Media Server…
[/] # /share/ZFS530_DATA/.qpkg/PlexMediaServer/plex.sh start
Starting Plex Media Server…
Error relocating /share/ZFS530_DATA/.qpkg/PlexMediaServer/Plex Media Server:
drmGetDevices2: symbol not found
[/] #

And you tried the plex.sh from /etc/init.d ?

so sorry, I misread that. Yes, same result:

[/] # /etc/init.d/plex.sh start
Starting Plex Media Server…
[/] # Error relocating /share/ZFS530_DATA/.qpkg/PlexMediaServer/Plex Media Server: drmGetDevices2: symbol not found
[/] #

It seems like maybe a conflict between the libdrm shared objects?
Since it’s able to load via appcenter, maybe it’s started with a different #LD_LIBRARY_PATH?

[/] # ls -l /share/ZFS530_DATA/.qpkg/PlexMediaServer/lib/libdrm.so.2
-rwxr-xr-x 1 admin 1001 84640 2024-11-13 13:11 /share/ZFS530_DATA/.qpkg/PlexMediaServer/lib/libdrm.so.2*
[/] # ls -l /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/lib/libdrm.so
lrwxrwxrwx 1 admin administrators 15 2024-11-23 22:20 /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/lib/libdrm.so → libdrm.so.2.4.0*
[/] # ls -l /share/ZFS530_DATA/.qpkg/PlexMediaServer/lib/libdrm.so.2
-rwxr-xr-x 1 chris 1001 84640 2024-11-13 13:11 /share/ZFS530_DATA/.qpkg/PlexMediaServer/lib/libdrm.so.2*
[/] # ls -l /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/lib/libdrm.so.2.4.0
-rwxrwxrwx 1 admin administrators 64176 2024-06-20 22:54 /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/lib/libdrm.so.2.4.0*
[/] # ls -l /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so
lrwxrwxrwx 1 admin administrators 15 2024-11-23 22:20 /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so → libdrm.so.2.4.0*
[/] # ls -l /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so.2
lrwxrwxrwx 1 admin administrators 15 2024-11-23 22:20 /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so.2 → libdrm.so.2.4.0*
[/] # ls -l /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so.2.4.0
-rwxrwxrwx 1 admin administrators 64176 2024-06-20 22:54 /share/ZFS530_DATA/.qpkg/NVIDIA_GPU_DRV/usr/nvidia/libdrm.so.2.4.0*
[/] # echo $LD_LIBRARY_PATH
:/usr/local/cuda/lib64:/opt/NVIDIA_GPU_DRV/usr/syslib:/opt/NVIDIA_GPU_DRV/usr/lib:/opt/NVIDIA_GPU_DRV/usr/applib
[/] # whoami
admin

Edit: yeah, seems like this is enough to fix it for now:

[/] # echo $LD_LIBRARY_PATH
:/usr/local/cuda/lib64:/opt/NVIDIA_GPU_DRV/usr/syslib:/opt/NVIDIA_GPU_DRV/usr/lib:/opt/NVIDIA_GPU_DRV/usr/applib
[/] # LD_LIBRARY_PATH=“:/share/ZFS530_DATA/.qpkg/PlexMediaServer/lib:/usr/local/cuda/lib64:/opt/NVIDIA_GPU_DRV/usr/syslib:/opt/NVIDIA_GPU_DRV/usr/lib:/opt/NVIDIA_GPU_DRV/usr/applib”
[/] # /etc/init.d/plex.sh start
Starting Plex Media Server…

No error

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