Plex Can't Select Nvidia GPU

In the Plex app config I see the choices for “Allocate x nvidia.com/GPU” where x is 0 to 5.

I have one GPU:
02:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1)

But when I select 1, I receive the error message:

middlewared.service_exception.ValidationErrors: [EINVAL] values.plexGPU.nvidia.com/gpu: Invalid choice: 1

Why?

It seems the ix chart for Plex is really screwed up. I can’t transcode anything either without a storage error (different post).

This is a new install of TrueNAS from scratch, coming from 22.x version before using TrueCharts and everything worked perfectly.

Should I just go to nightly and try the 24.10 version in advance? :-/

Any hints would be appreciated.

having this same issue with a quadro P1000. the plex app had been working fine with my gpu selected for at least a year? now it fails to update unless i select gpu 0. now it won’t let me change the config back to 1 after an update.

I upgraded to TrueNAS-SCALE-24.10.1 and had to install NVIDIA drivers again.

After fixing the UUID issue, I noticed the GPU doesn’t show up in Plex even though it showed up a few months ago when I first converted to Electric Eel and had to manually add this fix in the config file:

Here’s a shot of my Plex config at /mnt/.ix-apps/user_config.yaml:

image

1 Like

Actually, even using Auto, it works:

~# nvidia-smi
Wed Dec 18 01:46:24 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.127.05             Driver Version: 550.127.05     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4060        Off |   00000000:81:00.0 Off |                  N/A |
| 31%   48C    P2             N/A /  115W |     783MiB /   8188MiB |     15%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A    105371      C   ...lib/plexmediaserver/Plex Transcoder        776MiB |
+-----------------------------------------------------------------------------------------+

CPU usage was at 0-1%. It wasn’t being used for transcoding at all!

Idk if you ever got this working.

I had a similar issue coming from 23.x to 25.04. After running in circles - i saved config and reformatted drive - and fresh installed latest rev 25.04.1 (at this time). Reinstalled my config and started from there.

Context: i am running TrueNAS SCALE Fangtooth 25.04 [release] with the following specs:
OS Version:25.04.1
Model:AMD Ryzen 5 7600X 6-Core Processor
Memory:31 GiB
GPU: Nvidia 3060

I ended up ‘somehow’ getting the ‘install nvidia drivers’ to show up under apps/config/settings. The steps for this was to shutdown - manual restart (read not ‘restart’ the server’) - once it came online i ran nvidia-smi in shell - and got a readout of the installed gpu i was looking for. Then i went straight to apps/config/settings and was able to select ‘install nvidia drivers’. Before doing this, i was never able to ‘get’ the install nvidia box to appear and no clue why. This also seems like horse before cart in operations - but prior to seeing the card in the shell prompt - i never had the option to select nvidia drivers install - idk if that was a

After this i went to the apps/plex/edit and saw that the nvidia gpu was available to select in settings (at the very bottom in Resources Configuration) - but saving gave me a pci-slot error in the trace (unfortunately i do not have the trace anymore).

I used that string to help find this post. I cant add links - so i removed HTTPS
://forums.truenas.com/t/docker-apps-and-uuid-issue-with-nvidia-gpu-after-upgrade-to-24-10-or-25-04/22547

From there i basically followed that posts instructions to the T.

So I then ran:
midclt call app.gpu_choices | jq
to get the desired gpu PCI_slot and GPU-UUID and ran this:
midclt call -j app.update plex ‘{“values”: {“resources”: {“gpus”: {“use_all_gpus”: false, “nvidia_gpu_selection”: {“Your-GPU-Slot”: {“use_gpu”: true, “uuid”: “Your-GPU-UUID-here”}}}}}}’

after that - i went to plex web-UI from the app - transcoder - and was able to finally select the gpu. After selecting and saving. I restarted the app from truenas, and checked the web-ui to ensure the setting persisted (it did) and then restarted truenas- and checked the web-ui again - and setting was still there.

So, for now, it seems like i can finally use the gpu for transcoding in plex.

IDK if this will help you - but good luck :slight_smile: .

Side note - i really don’t like not being able to copy/paste in the system/shell - it looks like it is disabled on purpose - i need to read up on the ‘why this was done’ cause it annoys the dickens out of me.