Jump to content

GPU transcoding options not showing in TrueNAS Scale


Go to solution Solved by tollgate,

Recommended Posts

thekingpin
Posted (edited)

Hello 

I am running into this issue again that the GPU is recognised by Emby but the options for hardware transcoding are not showing. 

This issue was previously fixed with Version 4.8.10.0 but appears to be happening again.

Just to be clear, Passthrough available (non-NVIDIA) is selected from TrueNAS.

Hardware logs attached:

 

hardware_detection-63867970936.txt

Screenshot 2024-11-23 at 15.04.55.png

Edited by thekingpin
Added screenshot of issue.
Posted

Yeah, i see that to. (With other Errors after restoring a Backup)

  • Sad 1
thekingpin
Posted

OK, I have fixed the issue myself and posting here if anyone else has the issue. 

Im not saying this is the best or the only way to fix it. In my case, with a 1 user system this works for me.

In the logs I had error:

"Message": "Failed to open the drm device /dev/dri/renderD128"

So immediately I thought it must be permission issue. 

I just chomd 777 the whole /dev/dri directory and now emby can access it. 

Now the GPU is useable again and transcoding from Emby is possible 😁

  • Solution
Posted

I understand the correct way to fix this is to make the emby user a  member of video and render groups. (with thanks to member Q-Droid)

  • Agree 1
Posted
1 hour ago, tollgate said:

I understand the correct way to fix this is to make the emby user a  member of video and render groups. (with thanks to member Q-Droid)

Not working here. I have added the "Apps" user (this is the Docker user on Truenas Scale) to Groups render and video. Still no Hardware Transcoding.

thekingpin
Posted
56 minutes ago, Brudertac said:

Not working here. I have added the "Apps" user (this is the Docker user on Truenas Scale) to Groups render and video. Still no Hardware Transcoding.

It's working for me. You don't need to add app user to same group as video/render but rather change the Group inside the container to match the one of video. 

 

You can find the group number by running the below command in shell

cat /etc/group

thekingpin
Posted
2 hours ago, tollgate said:

I understand the correct way to fix this is to make the emby user a  member of video and render groups. (with thanks to member Q-Droid)

Thank you very much this worked better for me because the permissions reset after a reboot. 

Posted (edited)

So in my Case i have UserID and GroupID 568 (Apps User and Group).

I tried to change the GroupID to 44 (Video Group) but this does not work.

(The thing is, under Jellyfin this works perfect with UserID/GroupID 568....)

Edited by Brudertac
thekingpin
Posted (edited)
12 minutes ago, Brudertac said:

So in my Case i have UserID and GroupID 568 (Apps User and Group).

I tried to change the GroupID to 44 (Video Group) but this does not work.

(The thing is, under Jellyfin this works perfect with UserID/GroupID 568....)

I added render group and not video, which in my case is 107. Can you try that?

Also what GPU are you using?

Edit: Can you also post your hardware logs from Emby.

Edited by thekingpin
Posted (edited)

Yeah, with 107 it works! Thank you so much. 😀

Oh, it is an Intel Arc 310 Card.

Edited by Brudertac
  • Like 1
thekingpin
Posted

Great happy to hear that! :D

  • 2 weeks later...
Posted

I see the exact same issue unless I do `chmod 777 /dev/dri` inside the container then tell Emby Server to restart. It also loses that setting when I reboot the NAS.

If setting the group to 107 works, why is that not the default? I feel this is a bug, and making Emby run as the `render` group is a bad hack, not the fix. Or if it is the fix, shouldn't it be part of the instructions here? https://emby.media/truenas-scale-server.html

Though that already has the wrong URL on the guide (should be port 9096 not 8096) so I suspect it does not get updated much.

  • 2 weeks later...
Posted
On 12/2/2024 at 11:43 PM, DAVe3283 said:

I see the exact same issue unless I do `chmod 777 /dev/dri` inside the container then tell Emby Server to restart. It also loses that setting when I reboot the NAS.

If setting the group to 107 works, why is that not the default? I feel this is a bug, and making Emby run as the `render` group is a bad hack, not the fix. Or if it is the fix, shouldn't it be part of the instructions here? https://emby.media/truenas-scale-server.html

Though that already has the wrong URL on the guide (should be port 9096 not 8096) so I suspect it does not get updated much.

@DAVe3283did you try group 107?

Posted

I ended up setting a startup script to do `chmod 777 /dev/dri` as that was the only thing that seemed to work reliably. Setting the group didn't work, but I am not 100% sure I applied it correctly. The security implications are more theoretical than practical, and this system belongs to a friend that I don't get constant physical access to, so I went with a solution I can set and forget for now.

thekingpin
Posted
10 minutes ago, DAVe3283 said:

I ended up setting a startup script to do `chmod 777 /dev/dri` as that was the only thing that seemed to work reliably. Setting the group didn't work, but I am not 100% sure I applied it correctly. The security implications are more theoretical than practical, and this system belongs to a friend that I don't get constant physical access to, so I went with a solution I can set and forget for now.

How did you go about setting the group? It should be set within the container "Section Help" area. Container -> Edit -> Section Help -> Group ID.

Maybe double check what other video render groups there are and verify the group ID number. Also what GPU are you using? 

I have Rx580 True NAS scale EE and setting the group to 107 works. 

 

  • 2 months later...
tech37
Posted

In a similar boat but no luck yet - when I check "Use this GPU" from the Emby app settings in TrueNAS, I get the attached error messages talking about the UUID not being set.

However, when I manually set the GPU UUID in /mnt/.ix-apps/app_configs/emby/versions/1.2.17/user_config.yaml, it still doesn't appear in Emby, and when I try to check the box afterward, it clears the UUID field again.

Have tried changing the Emby app group ID to both video (44) and render (107), as well as add the emby 'apps' user to both groups, but no dice as of yet.

From within the container shell it has /dev but not /dev/dri, so not sure if it's an issue with the docker-compose.yml setup itself? This thread is one of the closest to my issue that I've seen so thought I'd try here

Any help appreciated!

truenas_use_gpu_error.txt user_config.yaml

thekingpin
Posted
44 minutes ago, tech37 said:

In a similar boat but no luck yet - when I check "Use this GPU" from the Emby app settings in TrueNAS, I get the attached error messages talking about the UUID not being set.

However, when I manually set the GPU UUID in /mnt/.ix-apps/app_configs/emby/versions/1.2.17/user_config.yaml, it still doesn't appear in Emby, and when I try to check the box afterward, it clears the UUID field again.

Have tried changing the Emby app group ID to both video (44) and render (107), as well as add the emby 'apps' user to both groups, but no dice as of yet.

From within the container shell it has /dev but not /dev/dri, so not sure if it's an issue with the docker-compose.yml setup itself? This thread is one of the closest to my issue that I've seen so thought I'd try here

Any help appreciated!

truenas_use_gpu_error.txt 7.31 kB · 0 downloads user_config.yaml 2.96 kB · 0 downloads

I don't think you can paasthrough a NVIdia GPU to containers in Scale. At least that option is not available directly when editing the container from the GUI (Electric eel)

You can only passthrough non-nvidia

tech37
Posted
5 minutes ago, thekingpin said:

I don't think you can paasthrough a NVIdia GPU to containers in Scale. At least that option is not available directly when editing the container from the GUI (Electric eel)

You can only passthrough non-nvidia

I would have thought that too, except scale has an option to install nvidia drivers and enable support, and other containers like immich have played with it nicely 🤔

image.png.7a9fb14c2f98ca8bb6d58a632f214b7e.png

image.png.99d06bfba68e86ccd902b1ba112c0161.pngf

thekingpin
Posted
3 minutes ago, tech37 said:

I would have thought that too, except scale has an option to install nvidia drivers and enable support, and other containers like immich have played with it nicely 🤔

image.png.7a9fb14c2f98ca8bb6d58a632f214b7e.png

image.png.99d06bfba68e86ccd902b1ba112c0161.pngf

I think this is the previous release of truenas, those options have changed in latest release. I would not edit the configs manually either and stick to GUI. What UID and GUI have you set for the container?

thekingpin
Posted

On second thought, have you tried stopping immich which is currently using the GPU. I think there was something in the previous TrueNas that you can only passthrough the GPU to a single container and not multiple at the same time. 

tech37
Posted (edited)
On 3/7/2025 at 12:05 PM, thekingpin said:

On second thought, have you tried stopping immich which is currently using the GPU. I think there was something in the previous TrueNas that you can only passthrough the GPU to a single container and not multiple at the same time. 

Hmm I actually had both Immich and Nextcloud 'using this GPU', but I disabled them anyway, and then the 'use this gpu' did get checked for the Emby container/app, even though it still didn't show anything in the Transcoding section or in the container shell.

Still got the same error when trying to hit 'update' on the app while the checkbox was configured, and no change after turning the app container off and on 🤔 Am I missing something obvious?

image.thumb.png.62dcb545eae75e4484f615e2c9c91c33.png

image.png.379960427f3c794a9d0d7eb58f22d6cd.png

image.png.45c701cac4bb22aaab0bd4d8a5c3ff97.png

Edited by tech37
thekingpin
Posted
17 minutes ago, tech37 said:

Am I missing something obvious?

I don't think so, but, from what your previous reply said, you edited the config manually:

GPU UUID in /mnt/.ix-apps/app_configs/emby/versions/1.2.17/user_config.yaml

 

I would suggest not doing that. The error shows something wrong with the config. 

Quickest fix is probably:

Take a backup of emby and reinstall the container without manually editing the config. 

  • Thanks 2
tech37
Posted
1 hour ago, thekingpin said:

I don't think so, but, from what your previous reply said, you edited the config manually:

GPU UUID in /mnt/.ix-apps/app_configs/emby/versions/1.2.17/user_config.yaml

 

I would suggest not doing that. The error shows something wrong with the config. 

Quickest fix is probably:

Take a backup of emby and reinstall the container without manually editing the config. 

@thekingpinwe're in business! The user_config.yaml file looks to have been fine, but the backup, delete app/container, reinstall and restore did the trick!

I think I installed the Emby TrueNAS Scale app before I had checked the 'support Nvidia GPUs'  checkbox, so the app was installed without that support, but now the GPU is showing up in Emby as expected. Thanks for the help!

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...