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 ServerMar 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 ServerMar 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#