New Ubuntu install, restored metadata and db, 404 when GPU transcoding

Server Version#:1.19.3.2843
Player Version#: plex.tv
Ubuntu 20.04
Nvidia 440.82 with transcode limit removal patch

May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Request: [10.20.1.132:55923 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (18 live) TLS GZIP Signed-in Token (mautobu)
May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Content-Length is -1 (of total: -1).
May 22, 2020 22:02:39.338 [0x7fba29136700] Debug — Auth: authenticated user 1 as mautobu
May 22, 2020 22:02:39.338 [0x7fba29136700] Debug — Auth: authenticated user 1 as mautobu
May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Request: [10.20.1.132:55923 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (18 live) TLS GZIP Signed-in Token (mautobu)
May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Content-Length is -1 (of total: -1).
May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Request: [10.20.1.132:55923 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (18 live) TLS GZIP Signed-in Token (mautobu)
May 22, 2020 22:02:39.339 [0x7fba08ff9700] Debug — Content-Length is -1 (of total: -1).
May 22, 2020 22:02:40.016 [0x7fba08ff9700] Debug — Request: [10.20.1.132:56100 (Subnet)] GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP Signed-in
May 22, 2020 22:02:40.016 [0x7fba08ff9700] Debug — Request: [10.20.1.132:56100 (Subnet)] GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP Signed-in
May 22, 2020 22:02:40.016 [0x7fba08ff9700] Debug — Request: [10.20.1.132:56100 (Subnet)] GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP Signed-in
May 22, 2020 22:02:40.016 [0x7fba08ff9700] Debug — Request: [10.20.1.132:56100 (Subnet)] GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP Signed-in
May 22, 2020 22:02:40.017 [0x7fba29136700] Debug — Completed: [10.20.1.132:56100] 404 GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP 1ms 458 bytes (pipelined: 114)
May 22, 2020 22:02:40.017 [0x7fba29136700] Debug — Completed: [10.20.1.132:56100] 404 GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP 1ms 458 bytes (pipelined: 114)
May 22, 2020 22:02:40.017 [0x7fba29136700] Debug — Completed: [10.20.1.132:56100] 404 GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP 1ms 458 bytes (pipelined: 114)
May 22, 2020 22:02:40.017 [0x7fba29136700] Debug — Completed: [10.20.1.132:56100] 404 GET /video/:/transcode/universal/dash/5dubo6bm7lxv09trk9yxyhmr/1/44.m4s (18 live) TLS GZIP 1ms 458 bytes (pipelined: 114)

Lots of these errors whenever I enable transcoding on my K600. I had it working on an older version of Ubuntu, but lost the VM guest and had to rebuild. I see a transcode start on nvidi-smi, then cease almost instanly. The media will play for ~10 seconds, then die. I did find an old thread here "404 GET /video/:/transcode/universal" occurring in Ubuntu 18 after upgrade and tried removing easy audio encoder, but that didn’t help at all. I’ve changed the transcode directory and made sure it’s owned by plex:plex with 775 permissions. My old db backup and metadata folders went in without a hitch. It’s only media transcoded with GPU that’s having this issue. CPU transcoded is fine. I’ve tried it without the GPU patch too and haven’t had any luck.

Need the full logs ZIP to see what happend. Sorry but it’s impossible to diagnose from a snippet.

Reference please? What’s a K600?

Sure thing. Nvidia K600 is an older workstation graphics card. Plex Media Server Logs_2020-05-22_23-04-16.zip (2.5 MB)

Where is the transcoder temp pointing to?
Is it local or across the network (LAN) ?

From the logs, I see the transcoder writing but don’t see anything reading successfully.

Also, please look at:

  1. SSL cert issue
  2. Client initiated close
deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (9 live) TLS GZIP 20002ms 5 bytes (pipelined: 5)
May 22, 2020 22:22:49.435 [0x7f52a7fff700] DEBUG - Auth: authenticated user 1 as mautobu
May 22, 2020 22:22:49.436 [0x7f528bfff700] DEBUG - Request: [10.20.1.132:57252 (Subnet)] GET /player/proxy/poll?deviceClass=pc&protocolVersion=3&protocolCapabilities=timeline%2Cplayback%2Cnavigation%2Cmirror%2Cplayqueues&timeout=1 (9 live) TLS GZIP Signed-in Token (mautobu)
May 22, 2020 22:22:49.436 [0x7f528bfff700] DEBUG - Content-Length is -1 (of total: -1).
May 22, 2020 22:22:50.631 [0x7f52a77fe700] DEBUG - CERT: incomplete TLS handshake: sslv3 alert bad certificate
May 22, 2020 22:22:54.503 [0x7f520b7fe700] DEBUG - [CompanionProxy] player cjkdd98blqaqwxn1fe4gq9em was last refreshed 40 seconds ago
May 22, 2020 22:22:54.503 [0x7f520b7fe700] DEBUG - [CompanionProxy] player cjkdd98blqaqwxn1fe4gq9em was not refreshed for over 30 seconds, dropping it.
May 22, 2020 22:22:54.503 [0x7f520b7fe700] DEBUG - [CompanionProxy] player ij88zv31bma1hzbyr4kregxo was last refreshed 30 seconds ago
May 22, 2020 22:22:57.359 [0x7f52a67fc700] DEBUG - Auth: Refreshing tokens inside the token-based authentication filter.
May 22, 2020 22:22:57.360 [0x7f52a67fc700] DEBUG - HTTP requesting GET https://plex.tv/api/v2/server/access_tokens?auth_token=xxxxxxxxxxxxxxxxxxxx&includeProfiles=1&includeProviders=1
May 22, 2020 22:22:57.798 [0x7f52a7fff700] DEBUG - WebSocket: client initiated close
May 22, 2020 22:22:57.798 [0x7f52a7fff700] DEBUG - handleStreamRead code 1: stream truncated
May 22, 2020 22:22:57.798 [0x7f52a7fff700] DEBUG - NotificationStream: Removing because of error

Transcoder temp is at /var/lib/trandscode locally on the plex server. SSL issue I would guess is from navigating to the plex web client directly on the server. Like, a local ip address instead of app.plex.tv. I’ve tried the clients on plex.tv, and navigating to the local server ip address.

Just tried the windows client (1.11.0.1215) again and receives error 4294967283 (unknown error). Logs popped up Unable to find client profile for device; platform=windows, platformVersion=10.0.18363, device=, model=standalone. I can re-upload logs if that would help.

I thought I had updated my windows plex client, but apparently not. Doing that now…

Looking into the SSL stuff. Is it possible to force a new certificate? I’ve unclaimed and re-claimed the server, not sure if that should do the trick or not.

Do you have your own certificate somewhere in the chain?

I do not. Just 32400 open to the web.

best you can do is give it a restart and let it work itself out.
If there were a certificate file, I’d have you delete it but the cert is in the DB.

I’ve given it several restarts. Should the cert give an error if it were good and I were to navigate to https://myplexserver:32400/web?

There are a couple of keys that have warnings on them, but I’m sure it’s normal.

Key Usage:
Digital Signature, Key Encipherment (a0)

Basic Constraints:
Subject Type=End Entity
Path Length Constraint=None

Since I did restore this database from an older plex server and removed the old plex server from my account, could that be affecting it? I’m still baffled as to why it’s only affecting media transcoded by a GPU.

is myplexserver a FQDN or just an IP ?

Local IP

Unfortunately, I have no clue as to why.
There is a cert / MITM / something in the socket layer

This is native host, a snap, VM, or container?

It’s a VM. Hosted by KVM.

Is there a cert on the VM host ?

Remember, a VM’s traffic must pass through the host.

No there’s not. Network is bridged is bridged anyway. There’s no host NAT.

Going to try again on an install of 18.04 and see if the older kernel does anything to help.

Welp, seems to be working just fine on 18.04. Might have been an issue with the nvidia driver or the patch. I had written out my entire install procedure in case I needed to run through it again. I guess that paid off.

ssh plex

apt update
apt upgrade -y 
apt install gcc make nfs-common -y

echo "kvm2.mordor.local:/mnt/storage /mnt/storage nfs defaults,_netdev 0 0" >> /etc/fstab
mkdir /mnt/storage; mount /mnt/storage
ln -s /mnt/storage /mnt/cephfs

rmmod nouveau
bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
update-initramfs -u
reboot

mkdir /opt/nvidia && cd /opt/nvidia
wget https://international.download.nvidia.com/XFree86/Linux-x86_64/440.82/NVIDIA-Linux-x86_64-440.82.run
chmod +x NVIDIA-Linux-x86_64-440.82.run
./NVIDIA-Linux-x86_64-440.82.run
nvidia-smi
git clone https://github.com/keylase/nvidia-patch.git
cd nvidia-patch
bash ./patch.sh
nvidia-smi

cd

wget https://downloads.plex.tv/plex-media-server-new/1.19.3.2843-e3c1f7bcd/debian/plexmediaserver_1.19.3.2843-e3c1f7bcd_amd64.deb
dpkg -i plexmediaserver_1.19.3.2843-e3c1f7bcd_amd64.deb
systemctl stop plexmediaserver
rm -f "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db*"
cp com.plexapp.plugins.library.db-2020-02-02 "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"
chown plex:plex "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"
systemctl start plexmediaserver
systemctl status plexmediaserver

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