[solved] - Issues with Installing Plex App on TrueNAS Scale with UHD 630 GPU passthrough

h0st

Cadet
Joined
Apr 23, 2023
Messages
7
I recently encountered an issue with installing Plex on a freshly installed TrueNAS SCALE system with UHD 630 graphics. When I tried to install Plex with the application GPU support setting enabled, the installation failed with the following error:
Required value: Limit must be set for non overcommitable resources
1682252309503.png

Code:
Code:
 Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 426, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 461, in __run_body
    rv = await self.method(*([self] + args))
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1186, in nf
    res = await f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/schema.py", line 1318, in nf
    return await func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 486, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1386, in call
    return await self._call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1346, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1249, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 44, in helm_action
    raise CallError(f'Failed to {tn_action} chart release: {stderr.decode()}')
middlewared.service_exception.CallError: [EFAULT] Failed to install chart release: Error: INSTALLATION FAILED: Deployment.apps "plex" is invalid: spec.template.spec.containers[0].resources.limits: Required value: Limit must be set for non overcommitable resources

I attempted to resolve the issue by disabling the GPU sharing option, installing Plex, stopping it, and then enabling the GPU settings and starting Plex. Unfortunately, this did not resolve the issue as Plex still failed to detect the GPU. Additionally, when I tried to change any settings and save them, the same error message persisted.


After some trial and error, I managed to run another version of Plex using the docker CLI and the lscr.io/linuxserver/plex image with /dev/dri sharing with the container. I was able to confirm that igpu was recognized by Truenas, and the Transcode function worked correctly. However, managing it was still a bit of a pain.

Has anyone else encountered this issue and found a solution? I'd love to hear any suggestions on how to get a running Plex app via the GUI without any issues with the GPU sharing setting.

Thanks in advance :smile:


edit :
The update .41 of the plex chart fixed the issue
 
Last edited:

lupinlicious

Dabbler
Joined
Jan 13, 2020
Messages
25
I have the same issue. If I leave everything with default settings, I am able to install but the application cannot be deployed.
Also tried to disable GPU and Enable Host Path Safety Checks but with no luck.
 

h0st

Cadet
Joined
Apr 23, 2023
Messages
7
I have the same issue. If I leave everything with default settings, I am able to install but the application cannot be deployed.
Also tried to disable GPU and Enable Host Path Safety Checks but with no luck.
Yes, I think it's related to TrueNAS Scale not allowing any other application to use the GPU.
 

Staino86

Cadet
Joined
Apr 23, 2023
Messages
2
Hi i am having the same problem no matter what settings i have it will just not install. i have even tried the true chrats one it will install but won't deploy. so it tried emby and get the same error and can't install
 

h0st

Cadet
Joined
Apr 23, 2023
Messages
7
Hi i am having the same problem no matter what settings i have it will just not install. i have even tried the true chrats one it will install but won't deploy. so it tried emby and get the same error and can't install
As I mentioned earlier, it seems that there's a bug with TrueNAS that prevents any other app from using the GPU. Which probably a bug in it coz, I was able to run a Plex server with hardware transcoding from the CLI using the following command:
Code:
docker run -d \
  --name=plex \
  --network=host \
  -e PUID=1001 \
  -e PGID=100 \
  -e VERSION=docker \
  -e PLEX_CLAIM=claim-YOUR-TOKEN \
  -v /YOURPATH/plex/config:/config \
  -v /YOURPATH/plex/series:/series \
  -v /YOURPATH/plex/movies:/movies \
  -v /YOURPATH/plex/anime:/anime \
  -v /YOURPATH/plex/others:/others \
  --device /dev/dri \
  --restart unless-stopped \
  lscr.io/linuxserver/plex:latest

Just make sure to run the command ls /dev/dri and check if you find renderD128. If you're using a VM with GPU passthrough, you'll get renderD128 and renderD129.
 

Staino86

Cadet
Joined
Apr 23, 2023
Messages
2
thank you for that i abit new at truenas and unsure with the commands. but i will look at that i for to work for 2 weeks and i will mess with it when i get back. i did get it work but disabling the gpu and it seems to be working but it do want to get the gpu working again just don't want to break it with no time to try and fix it again so i will leave it for now. thank you for your help
 

elorimer

Contributor
Joined
Aug 26, 2019
Messages
194
The update is .41 of the plex chart.
 
Top