PMS 1.31.3.6868 crash: libc++abi: terminating with uncaught exception

Server Version#: 1.31.3.6868-28fc46b27

After upgrading from Debian 10 to Debian 11, PMS is now crashing on startup. The plexmediaserver version did not change during the upgrade, as I was runing the latest prior to the upgrade.

I was able to work around the problem by re-installing the version in my apt archives,

Working Version: PlexMediaServer-1.30.0.6486-629d58034
Non-Working Version: PlexMediaServer-1.31.3.6868-28fc46b27

Transcripts of the working and non-working output are below. The error message is always

libc++abi: terminating with uncaught exception of type std::bad_cast: std::bad_cast

I can easily switch between working and non-working by re-installation of the working or non-working version, and restarting the plex service

Some additional info:
Debian 11.6 (uptodate), with a clean apt-show-versions (no orphans or old libraries)
The host runs as a Xen DomU w/ 16GB RAM and 14 Cores, and I am passing through a P600 for HW encode/decode
Kernel is 5.10.0-21
Nvidia is 470.161.03-1

media:/var/cache/apt/archives# dpkg -l | grep nvidia-kernel-dkms
ii nvidia-kernel-dkms 470.161.03-1 amd64 NVIDIA binary kernel module DKMS source

media:/var/cache/apt/archives# uname -a
Linux media 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

media:/var/cache/apt/archives# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 03)
00:02.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01)
00:03.0 VGA compatible controller: Cirrus Logic GD 5446
00:05.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P600] (rev a1)
00:06.0 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)

media:/var/cache/apt/archives# cat /proc/cpuinfo

processor : 13
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz
stepping : 1
microcode : 0xb000038
cpu MHz : 1997.752
cache size : 35840 KB
physical id : 0
siblings : 14
core id : 13
cpu cores : 14
apicid : 26
initial apicid : 26
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush acpi mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibpb fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rtm rdseed adx smap xsaveopt md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs taa itlb_multihit mmio_stale_data
bogomips : 3995.37
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

Non-Working:

Get:1 https://downloads.plex.tv/repo/deb public/main amd64 plexmediaserver amd64 1.31.3.6868-28fc46b27 [81.0 MB]
Fetched 81.0 MB in 2s (33.1 MB/s)
(Reading database … 97707 files and directories currently installed.)
Preparing to unpack …/plexmediaserver_1.31.3.6868-28fc46b27_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.31.3.6868-28fc46b27) over (1.30.0.6486-629d58034) …
Setting up plexmediaserver (1.31.3.6868-28fc46b27) …
PlexMediaServer install: PlexMediaServer-1.31.3.6868-28fc46b27 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Processor: Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz
PlexMediaServer install: Intel i915 Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Failed to write ‘change’ to ‘/sys/devices/virtual/input/input1/uevent’: Cannot allocate memory
PlexMediaServer install: Starting Plex Media Server.
PlexMediaServer install: PlexMediaServer-1.31.3.6868-28fc46b27 - Installation successful. Errors: 0, Warnings: 0
Processing triggers for mailcap (3.69) …

media:/var/cache/apt/archives# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-03-30 22:23:23 EDT; 7s ago
Process: 14250 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=0/SUCCESS)
Main PID: 14252 (Plex Media Serv)
Tasks: 98 (limit: 19154)
Memory: 279.1M
CPU: 7.076s
CGroup: /system.slice/plexmediaserver.service
├─14252 /usr/lib/plexmediaserver/Plex Media Server
├─14301 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.31.3.686>
├─14346 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resources/Tuner/Shared 1.31.3.6868-28fc46b27 32600
├─14370 Plex Plug-in [com.plexapp.agents.plexthememusic] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-ver>
├─14372 Plex Plug-in [tv.plex.agents.series] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.31.3.>
├─14373 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version>
└─14424 /usr/lib/plexmediaserver/Plex Media Server

Mar 30 22:23:23 media systemd[1]: Starting Plex Media Server…
Mar 30 22:23:23 media systemd[1]: Started Plex Media Server.
Mar 30 22:23:30 media Plex Media Server[14252]: libc++abi: terminating with uncaught exception of type std::bad_cast: std::bad_cast

I was able to work around the problem for now by installing the last version of plex I had still in my apt archives

Working:

media:/var/cache/apt/archives# dpkg -i plexmediaserver_1.30.0.6486-629d58034_amd64.deb
dpkg: warning: downgrading plexmediaserver from 1.31.3.6868-28fc46b27 to 1.30.0.6486-629d58034
(Reading database … 97610 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.30.0.6486-629d58034_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.30.0.6486-629d58034) over (1.31.3.6868-28fc46b27) …
Setting up plexmediaserver (1.30.0.6486-629d58034) …
PlexMediaServer install: PlexMediaServer-1.30.0.6486-629d58034 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Processor: Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz
PlexMediaServer install: Intel i915 Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Failed to write ‘change’ to ‘/sys/devices/virtual/input/input1/uevent’: Cannot allocate memory
PlexMediaServer install: PlexMediaServer-1.30.0.6486-629d58034 - Installation successful. Errors: 0, Warnings: 0
Processing triggers for mailcap (3.69) …

media:/var/cache/apt/archives# systemctl start plexmediaserver
media:/var/cache/apt/archives# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-03-30 22:21:56 EDT; 2s ago
Process: 12979 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” (code=exited, status=0/SUCCESS)
Main PID: 12981 (Plex Media Serv)
Tasks: 8 (limit: 19154)
Memory: 345.0M
CPU: 1.363s
CGroup: /system.slice/plexmediaserver.service
└─12981 /usr/lib/plexmediaserver/Plex Media Server

Mar 30 22:21:56 media systemd[1]: Starting Plex Media Server…
Mar 30 22:21:56 media systemd[1]: Started Plex Media Server.

Although I have a nice collection of crash reports, mostly unnoticed, going back seven years to v0.9.16.6, the folder created for 1.31.3.6868-28fc46b27 was empty, so no dmp file.

media:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports# ls -al
total 152
drwxr-xr-x 35 plex plex 4096 Mar 30 22:53 .
drwxr-xr-x 15 plex plex 12288 Mar 30 22:53 …
drwxr-xr-x 4 plex plex 4096 Feb 11 2018 1.10.1.4602-f54242b6b
drwxr-xr-x 4 plex plex 4096 Mar 18 2018 1.12.0.4829-6de959918
drwxr-xr-x 4 plex plex 4096 Mar 25 2018 1.12.1.4885-1046ba85f
drwxr-xr-x 4 plex plex 4096 Apr 17 2018 1.12.2.4929-29f6d1796
drwxr-xr-x 4 plex plex 4096 May 29 2018 1.13.0.5023-31d3c0c65
drwxr-xr-x 4 plex plex 4096 Aug 22 2018 1.13.5.5291-6fa5e50a8
drwxr-xr-x 4 plex plex 4096 Sep 19 2018 1.13.5.5332-21ab172de
drwxr-xr-x 4 plex plex 4096 Nov 3 2018 1.13.9.5456-ecd600442
drwxr-xr-x 4 plex plex 4096 Feb 5 2019 1.14.1.5488-cc260c476
drwxr-xr-x 4 plex plex 4096 Sep 27 2016 1.1.4.2757-24ffd60
drwxr-xr-x 5 plex plex 4096 Feb 12 2020 1.18.6.2368-97add474d
drwxr-xr-x 5 plex plex 4096 May 27 2020 1.19.3.2852-219a9974e
drwxr-xr-x 5 plex plex 4096 Oct 14 2020 1.20.2.3402-0fec14d92
drwxr-xr-x 5 plex plex 4096 Nov 1 2020 1.20.3.3483-211702a9f
drwxr-xr-x 5 plex plex 4096 Nov 9 2020 1.20.4.3517-ab5e1197c
drwxr-xr-x 5 plex plex 4096 Jan 1 2021 1.21.1.3830-6c22540d5
drwxr-xr-x 5 plex plex 4096 Jan 12 2021 1.21.1.3876-3c3adfcb4
drwxr-xr-x 5 plex plex 4096 Mar 24 2021 1.22.1.4228-724c56e62
drwxr-xr-x 5 plex plex 4096 May 31 2021 1.23.1.4602-280ab6053
drwxr-xr-x 5 plex plex 4096 Aug 2 2021 1.23.6.4881-e2e58f321
drwxr-xr-x 5 plex plex 4096 Aug 29 2021 1.24.1.4931-1a38e63c6
drwxr-xr-x 5 plex plex 4096 Nov 9 2021 1.24.5.5173-8dcc73a59
drwxr-xr-x 4 plex plex 4096 Nov 13 2016 1.2.7.2987-1bef33a
drwxr-xr-x 5 plex plex 4096 Aug 27 2022 1.28.1.6104-788f82488
drwxr-xr-x 5 plex plex 4096 Aug 31 2022 1.28.2.6151-914ddd2b3
drwxr-xr-x 5 plex plex 4096 Oct 24 02:04 1.29.1.6316-f4cdfea9c
drwxr-xr-x 5 plex plex 4096 Dec 3 20:31 1.29.2.6364-6d72b0cf6
drwxr-xr-x 4 plex plex 4096 Mar 30 22:22 1.30.0.6486-629d58034
drwxr-xr-x 4 plex plex 4096 Mar 30 18:25 1.31.3.6868-28fc46b27
drwxr-xr-x 4 plex plex 4096 Jan 29 2017 1.3.3.3148-b38628e
drwxr-xr-x 4 plex plex 4096 Jul 22 2017 1.7.5.4035-313f93718
drwxr-xr-x 4 plex plex 4096 Oct 14 2017 1.9.4.4325-1bf240a65
drwxr-xr-x 2 plex plex 4096 Jun 9 2016 processing_16961
-rw-r–r-- 1 plex plex 51 Mar 30 22:53 .RateLimit.json
media:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports# cd 1.31.3.6868-28fc46b27/
media:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.31.3.6868-28fc46b27# ls -al -R
.:
total 16
drwxr-xr-x 4 plex plex 4096 Mar 30 18:25 .
drwxr-xr-x 35 plex plex 4096 Mar 30 22:53 …
drwxr-xr-x 2 plex plex 4096 Mar 30 22:53 ‘PLEX MEDIA SERVER’
drwxr-xr-x 2 plex plex 4096 Mar 30 18:25 ‘PLEX TUNER SERVICE’

‘./PLEX MEDIA SERVER’:
total 8
drwxr-xr-x 2 plex plex 4096 Mar 30 22:53 .
drwxr-xr-x 4 plex plex 4096 Mar 30 18:25 …

‘./PLEX TUNER SERVICE’:
total 8
drwxr-xr-x 2 plex plex 4096 Mar 30 18:25 .
drwxr-xr-x 4 plex plex 4096 Mar 30 18:25 …
media:/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Crash Reports/1.31.3.6868-28fc46b27#

  1. PMS 1.31.3 needs a version of the Nvidia drivers higher than version 470 (the new AV1 codec support – 1.30.1 )

  2. I recommend upgrading to something in the Nvidia 525 drivers range. This will give you the newer CUDA drivers as well as AV1 support .

  3. When you do so, the kmod kernel drivers will rebuild.

Thanks for the quick callout. It is right there in the release notes, but I just do not keep up with the [awesome and consistent] release cycles: Plex Media Server - #547 by gbooker02

→ Its still broken with 525 !

Interesting, as the Debian 10 nvidia (418.226.00) was even older, and [seemed to] work fine, so I was not expecting PMS 1.31.3 to fail with a newer version. Debian 12 upstream is at 525.89.02, which fits nicely into my simple evergreening image.

To avoid the upgrade-nvidia-into-unsupported version during the Debian distribution upgrade scenario, where PMS version has not changed, I might suggest to enhance the following check with some version dependency insight and a warning:

PlexMediaServer install: Nvidia GPU card: Found

Here is a quick set of steps for other Debian 11 users who are looking to maintain a package-based [evergreening] configuration for their PMS.

First you need to add the Debian 12 repositories, and the new non-free-firmware if you want to pull the latest firmware-nvidia-gsp. Adding the following to your apt sources.list

Debian 12 Pull for Nvidia

deb Index of /debian bookworm main non-free-firmware contrib non-free

To ensure your Debian 11 system remains based on Debian 11, you will need some apt preferences. Due to the number of nvidia packages (dkms, mps, driver, libraries, cuda, etc.) we use wildcards to help. Additionally, a few Debian 12 core bits will be required (dkms, libc6) to meet kernel module building dependencies. The result is apt upgradeable without requiring any third party binary blobs fron nvidia or otherwise.

media:/etc/apt/preferences.d# cat nvidia
Package: *
Pin: release n=bookworm
Pin-Priority: -1

Package: nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: libcuda*
Pin: release n=bookworm
Pin-Priority: 900

Package: libnv*
Pin: release n=bookworm
Pin-Priority: 900

Package: libxnv*
Pin: release n=bookworm
Pin-Priority: 900

Package: libegl-nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: libgl1-nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: libgles-nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: libglx-nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: xserver-xorg-video-nvidia* libwayland-client* libffi8 libjansson4
Pin: release n=bookworm
Pin-Priority: 900

Package: firmware-nvidia*
Pin: release n=bookworm
Pin-Priority: 900

Package: dkms libc6 libc-bin libc-dev-bin libc6-dev libc6-i386 locales locales-all libc-l10n
Pin: release n=bookworm
Pin-Priority: 900

And this is what I ended up with using the preferences above

media:/etc/apt/preferences.d# dpkg -l | grep nvidia
ii firmware-nvidia-gsp 525.89.02-1 amd64 NVIDIA GSP firmware
ii glx-alternative-nvidia 1.2.1~deb11u1 amd64 allows the selection of NVIDIA as GLX provider
ii libegl-nvidia0:amd64 525.89.02-1 amd64 NVIDIA binary EGL library
ii libgl1-nvidia-glvnd-glx:amd64 525.89.02-1 amd64 NVIDIA binary OpenGL/GLX library (GLVND variant)
ii libgles-nvidia1:amd64 525.89.02-1 amd64 NVIDIA binary OpenGL|ES 1.x library
ii libgles-nvidia2:amd64 525.89.02-1 amd64 NVIDIA binary OpenGL|ES 2.x library
ii libglx-nvidia0:amd64 525.89.02-1 amd64 NVIDIA binary GLX library
ii libnvidia-allocator1:amd64 525.89.02-1 amd64 NVIDIA allocator runtime library
ii libnvidia-cfg1:amd64 525.89.02-1 amd64 NVIDIA binary OpenGL/GLX configuration library
ii libnvidia-egl-gbm1:amd64 1.1.0-2 amd64 GBM EGL external platform library for NVIDIA
ii libnvidia-egl-wayland1:amd64 1:1.1.10-1 amd64 Wayland EGL External Platform library – shared library
ii libnvidia-eglcore:amd64 525.89.02-1 amd64 NVIDIA binary EGL core libraries
ii libnvidia-encode1:amd64 525.89.02-1 amd64 NVENC Video Encoding runtime library
ii libnvidia-glcore:amd64 525.89.02-1 amd64 NVIDIA binary OpenGL/GLX core libraries
ii libnvidia-glvkspirv:amd64 525.89.02-1 amd64 NVIDIA binary Vulkan Spir-V compiler library
ii libnvidia-ml1:amd64 525.89.02-1 amd64 NVIDIA Management Library (NVML) runtime library
ii libnvidia-ptxjitcompiler1:amd64 525.89.02-1 amd64 NVIDIA PTX JIT Compiler library
ii libnvidia-rtcore:amd64 525.89.02-1 amd64 NVIDIA binary Vulkan ray tracing (rtcore) library
ii nvidia-alternative 525.89.02-1 amd64 allows the selection of NVIDIA as GLX provider
ii nvidia-cuda-mps 470.161.03-2 amd64 NVIDIA CUDA Multi Process Service (MPS)
ii nvidia-driver 525.89.02-1 amd64 NVIDIA metapackage
ii nvidia-driver-bin 525.89.02-1 amd64 NVIDIA driver support binaries
ii nvidia-driver-libs:amd64 525.89.02-1 amd64 NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
ii nvidia-egl-common 525.89.02-1 amd64 NVIDIA binary EGL driver - common files
ii nvidia-egl-icd:amd64 525.89.02-1 amd64 NVIDIA EGL installable client driver (ICD)
ii nvidia-installer-cleanup 20220217+2 amd64 cleanup after driver installation with the nvidia-installer
ii nvidia-kernel-common 20220217+2 amd64 NVIDIA binary kernel module support files
ii nvidia-kernel-dkms 525.89.02-1 amd64 NVIDIA binary kernel module DKMS source
ii nvidia-kernel-support 525.89.02-1 amd64 NVIDIA binary kernel module support files
ii nvidia-legacy-check 525.89.02-1 amd64 check for NVIDIA GPUs requiring a legacy driver
ii nvidia-modprobe 525.78.01-1 amd64 utility to load NVIDIA kernel modules and create device nodes
ii nvidia-persistenced 525.85.05-1 amd64 daemon to maintain persistent software state in the NVIDIA driver
ii nvidia-settings 525.85.05-1 amd64 tool for configuring the NVIDIA graphics driver
ii nvidia-smi 525.89.02-1 amd64 NVIDIA System Management Interface
ii nvidia-support 20220217+2 amd64 NVIDIA binary graphics driver support files
ii nvidia-vdpau-driver:amd64 525.89.02-1 amd64 Video Decode and Presentation API for Unix - NVIDIA driver
ii nvidia-vulkan-common 525.89.02-1 amd64 NVIDIA Vulkan driver - common files
ii nvidia-vulkan-icd:amd64 525.89.02-1 amd64 NVIDIA Vulkan installable client driver (ICD)
ii xserver-xorg-video-nvidia 525.89.02-1 amd64 NVIDIA binary Xorg driver
media:/etc/apt/preferences.d#

What I do not know, is what from nvidia I can leave behind if only running plex. It certainly does not use all the components (vdpau, persistenced, egl, cuda mps, glx, opengl, vulkan, ptx, gsp-firmware). Surely the bits for window managers and rendering that is not required for simple encode/decode can be removed, which is the advantage vs. the mega blob binary download from nvidia, in addition to being built directly against the OS libraries.

If you have other packaged apps that are doing other things with your cuda cores, it is not going to be easy to evergreen with apt preferences and stay on Debian v11. You will probably have to go with the big binary solution download direct from nvidia and maybe consider application containers. It isn’t going to evergreen or maintain dependencies between nvidia and the host OS, but here are a few links related to that process, and its going to work, for a while:

https://www.reddit.com/r/PleX/comments/g1ss2q/nvidia_drivers_installation_in_debian/

Here is the kicker, after migrating to nvidia 525 cleanly, I am still seeing the same error :slight_smile:

media:~# dmesg | grep nvidia
[ 4.843454] nvidia: loading out-of-tree module taints kernel.
[ 4.845504] nvidia: module license ‘NVIDIA’ taints kernel.
[ 4.878816] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 4.901524] nvidia-nvlink: Nvlink Core is being initialized, major device number 249
[ 4.906888] nvidia 0000:00:05.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[ 5.888304] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 525.89.02 Wed Feb 1 23:09:40 UTC 2023
[ 5.974129] audit: type=1400 audit(1680276952.348:3): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe” pid=378 comm=“apparmor_parser”
[ 5.976534] audit: type=1400 audit(1680276952.348:4): apparmor=“STATUS” operation=“profile_load” profile=“unconfined” name=“nvidia_modprobe//kmod” pid=378 comm=“apparmor_parser”
[ 7.091075] [drm] [nvidia-drm] [GPU ID 0x00000005] Loading driver
[ 7.091118] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:00:05.0 on minor 1
media:~# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: deactivating (stop-sigterm) (Result: signal) since Fri 2023-03-31 11:39:23 EDT; 43s ago
Process: 1378 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p “${PLEX_MEDIA_SERVER_AP>
Process: 1380 ExecStart=/bin/sh -c export PLEX_MEDIA_SERVER_INFO_VENDOR=”$(grep ^NAME= /etc/os-release | awk -F= “{print $2}” | tr -d " )";>
Main PID: 1380 (code=killed, signal=ABRT)
Tasks: 41 (limit: 19154)
Memory: 113.6M
CPU: 6.500s
CGroup: /system.slice/plexmediaserver.service
├─1405 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resources/Ve>
├─1474 Plex Plug-in [com.plexapp.agents.none] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Resourc>
├─1476 Plex Plug-in [com.plexapp.agents.localmedia] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/R>
└─1478 Plex Plug-in [com.plexapp.agents.lyricfind] /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/Framework.bundle/Contents/Re>

Mar 31 11:39:18 media systemd[1]: Starting Plex Media Server…
Mar 31 11:39:18 media systemd[1]: Started Plex Media Server.
Mar 31 11:39:23 media Plex Media Server[1380]: libc++abi: terminating with uncaught exception of type std::bad_cast: std::bad_cast
Mar 31 11:39:23 media Plex Media Server[1380]: ****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /var/lib/plexmediaserver/Library/Applicatio>
Mar 31 11:39:23 media systemd[1]: plexmediaserver.service: Main process exited, code=killed, status=6/ABRT
Mar 31 11:39:23 media Plex Media Server[1474]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/PersonalMed>
Mar 31 11:39:23 media Plex Media Server[1478]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/LyricFind.b>
Mar 31 11:39:23 media Plex Media Server[1476]: Error starting framework core for /usr/lib/plexmediaserver/Resources/Plug-ins-28fc46b27/LocalMedia.>
lines 1-23/23 (END)

So back to 1.30 for now, with my shiny upgraded nvidia core on Debian 11.

media:~# dpkg -i plexmediaserver_1.30.0.6486-629d58034_amd64.deb
dpkg: warning: downgrading plexmediaserver from 1.31.3.6868-28fc46b27 to 1.30.0.6486-629d58034
(Reading database … 95947 files and directories currently installed.)
Preparing to unpack plexmediaserver_1.30.0.6486-629d58034_amd64.deb …
PlexMediaServer install: Pre-installation Validation.
PlexMediaServer install: Pre-installation Validation complete.
Unpacking plexmediaserver (1.30.0.6486-629d58034) over (1.31.3.6868-28fc46b27) …
Setting up plexmediaserver (1.30.0.6486-629d58034) …
PlexMediaServer install: PlexMediaServer-1.30.0.6486-629d58034 - Installation starting.
PlexMediaServer install:
PlexMediaServer install: Now installing based on:
PlexMediaServer install: Installation Type: Update
PlexMediaServer install: Process Control: systemd
PlexMediaServer install: Plex User: plex
PlexMediaServer install: Plex Group: plex
PlexMediaServer install: Video Group: video
PlexMediaServer install: Metadata Dir: /var/lib/plexmediaserver/Library/Application Support
PlexMediaServer install: Temp Directory: /tmp
PlexMediaServer install: Lang Encoding: en_US.UTF-8
PlexMediaServer install: Processor: Intel(R) Xeon(R) CPU E5-2660 v4 @ 2.00GHz
PlexMediaServer install: Intel i915 Hardware: Not found
PlexMediaServer install: Nvidia GPU card: Found
PlexMediaServer install:
PlexMediaServer install: Completing final configuration.
Failed to write ‘change’ to ‘/sys/devices/virtual/input/input2/uevent’: Cannot allocate memory
PlexMediaServer install: PlexMediaServer-1.30.0.6486-629d58034 - Installation successful. Errors: 0, Warnings: 0
Processing triggers for mailcap (3.69) …
media:~# systemctl stop plexmediaserver
media:~# systemctl start plexmediaserver
media:~# systemctl status plexmediaserver
● plexmediaserver.service - Plex Media Server
Loaded: loaded (/lib/systemd/system/plexmediaserver.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-03-31 11:43:05 EDT; 1min 43s ago
Process: 2085 ExecStartPre=/bin/sh -c /usr/bin/test -d “${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}” || /bin/mkdir -p "${PLEX_MEDIA_SERVER_AP>
Main PID: 2087 (Plex Media Serv)
Tasks: 139 (limit: 19154)
Memory: 664.9M
CPU: 32.355s
CGroup: /system.slice/plexmediaserver.service
├─2087 /usr/lib/plexmediaserver/Plex Media Server
├─2120 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Contents/Resources/Ve>
├─2156 /usr/lib/plexmediaserver/Plex Tuner Service /usr/lib/plexmediaserver/Resources/Tuner/Private /usr/lib/plexmediaserver/Resource>
├─2188 Plex Plug-in [com.plexapp.agents.themoviedb] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Contents/R>
├─2189 Plex Plug-in [com.plexapp.agents.plexthememusic] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Conten>
├─2191 Plex Plug-in [tv.plex.agents.series] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Contents/Resources>
├─2272 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Contents/Resourc>
├─2326 Plex Plug-in [com.plexapp.agents.localmedia] /usr/lib/plexmediaserver/Resources/Plug-ins-629d58034/Framework.bundle/Contents/R>
├─2378 Plex EAE Service
└─2379 /usr/lib/plexmediaserver/Plex Transcoder -codec:0 hevc -hwaccel:0 nvdec -hwaccel_fallback_threshold:0 10 -threads:0 1 -hwaccel>

Mar 31 11:43:05 media systemd[1]: Starting Plex Media Server…
Mar 31 11:43:05 media systemd[1]: Started Plex Media Server.
Mar 31 11:43:36 media [2156]: Critical: libusb_init failed
Mar 31 11:43:36 media Plex Media Server[2156]: Critical: libusb_init failed
Mar 31 11:44:47 media Plex Media Server[2378]: Dolby, Dolby Digital, Dolby Digital Plus, Dolby TrueHD and the double D symbol are trademarks of Do>
lines 1-25/25 (END)

Turns out this was due to a DB error

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