Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Linuxserver.io - Unraid Nvidia

Featured Replies

2 minutes ago, saarg said:

I never use the gui of unraid with an Nvidia GPU and passing it through to a container, but I don't think that should come in the way. You can easily check that by booting the non-gui mode.

 

Did you also run the command to manually find the GPU UUID that is somewhere in this thread, posted by chbmb?

 

Have you updated your bios or changed any settings lately?

To clarify, I am not currently booted into the GUI mode when I ran that command. In fact, I will be staying far away from GUI mode from now on!

I did run the command yes - nvidia-smi -L

Unfortunately that took a few seconds and then reported the same - "No devices found."

 

I have not touched BIOS settings since installing UNRAID as I don't want to cause an issue where it won't boot. Appreciate this thread is about transcoding, plex, etc but I have a lot of other, more important, stuff on the server which would be devastating to lose (I have suffered many data-loss incidents in the past before I started using UNRAID).

 

As for "other" settings, it's difficult to say. I don't go around messing with settings unless there's a reason but I have definitely made some changes recently.

Most notably it's network settings - I have some docker containers which run network level caching, handle a bit of routing, that kind of thing.

I have also been trying to get this plugin to work once again, which has involved many cycles of un-installing (not the plugin, the UNRAID build with Nvidia support) and reinstalling, and inserting, relocating, and removing the graphics card from PCI slots etc.

 

Would you be able to use any information in the Diagnostics zip UNRAID creates if I upload that here?

 

Thanks

Dan

  • Replies 2.5k
  • Views 653.7k
  • Created
  • Last Reply

If you have not already done it you might also want to try power-cycling the server in case the GPU has got into a state that means it needs to be restarted from cold.

 

in principle Unraid always unpacks itself afresh from the archives on the flash drive so that there should be no remnant of using GUI mode when you reboot after a power-cycle.

12 hours ago, MadeOfCard said:

error-nvidia.thumb.jpg.eeda5948fdc457b00604e4f9edbde207.jpg

 

OK, I know this has been posted a ton. I've read the past 60+ pages in here.

 

I've deleted my network.cfg & network-rules.cfg, totally fresh settings. No Pi-Hole or dns filter. I even put my server on the DMZ for a moment to be sure.

 

Has anyone run into these conditions before?

It resolved itself in the morning. IDK

16 minutes ago, MadeOfCard said:

I even put my server on the DMZ

Never, ever. Not even for a moment.

13 minutes ago, jonathanm said:

Never, ever. Not even for a moment.

It was a vanilla build that got reformatted again and again. Of course don’t expose your person server to DMZ. I was was just trying to nail down the issue. 

5 hours ago, MadeOfCard said:

It was a vanilla build that got reformatted again and again. Of course don’t expose your person server to DMZ. I was was just trying to nail down the issue. 

It's not only that server. You open up your whole network if the attackers breach your unraid server.

1 hour ago, saarg said:

It's not only that server. You open up your whole network if the attackers breach your unraid server.

True but in this case it was on its own VLAN. Again, just trying to help debug. 

Hi Everyone,

 

I've recently purchased and installed a Geforce GTX 1650 (after initially setting up the plugin on the existing GeForce GT 1030 - which doesn't 'do' transcoding I found out afterwards).  I've changed the UUID (to the new card), rebooted/powered-off a few times, changed from the Nvidia 6.8.3 to Nvidia 6.9.0 beta 30 builds - all in an effort to get it working (as evidenced by seeing the 'running process' and percentage load changed via nvidia-smi engage when I watched a video that is 'transcoding' in PLEX).  All to no avail - nothing I seem to do is getting the GPU to engage (constantly at 0%).  

Is it because I'm running the plexinc/pms-docker rather than the LinuxServer.io version?  If so - that would seem strange but can someone provide a HowTo in switching a PLEX setup (with a few external users) from one to the other?

Is there something I can share (logs, etc) that might help?

 

Thanks in advance - just trying to get it to work and at wits end.

1 hour ago, ds679 said:

Hi Everyone,

 

I've recently purchased and installed a Geforce GTX 1650 (after initially setting up the plugin on the existing GeForce GT 1030 - which doesn't 'do' transcoding I found out afterwards).  I've changed the UUID (to the new card), rebooted/powered-off a few times, changed from the Nvidia 6.8.3 to Nvidia 6.9.0 beta 30 builds - all in an effort to get it working (as evidenced by seeing the 'running process' and percentage load changed via nvidia-smi engage when I watched a video that is 'transcoding' in PLEX).  All to no avail - nothing I seem to do is getting the GPU to engage (constantly at 0%).  

Is it because I'm running the plexinc/pms-docker rather than the LinuxServer.io version?  If so - that would seem strange but can someone provide a HowTo in switching a PLEX setup (with a few external users) from one to the other?

Is there something I can share (logs, etc) that might help?

 

Thanks in advance - just trying to get it to work and at wits end.

Did you activate hardware transcoding in plex and do you have plex pass?

 

Did you follow the first posts for setting up the plex container?

 

Post your docker run command.

4 minutes ago, saarg said:

Did you activate hardware transcoding in plex and do you have plex pass?

 

Did you follow the first posts for setting up the plex container?

 

Post your docker run command.

Check box within PLEX Settings --> Transcoder (Disable video stream trancoding - unchechecked, Use hardware acceleration when available - checked, Use hardware-accelerated video encoding - checked))

Yes, PLEX Lifetime pass

Setting up PLEX Container --> added the 'Extra Parameters:  --runtime=nvidia, and two variables (with 'all' and UUID)

docker run command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='PlexMediaServer' --net='host' --privileged=true -e TZ="America/Chicago" -e HOST_OS="Unraid" -e 'PLEX_CLAIM'='Insert Token from https://plex.tv/claim' -e 'PLEX_UID'='99' -e 'PLEX_GID'='100' -e 'VERSION'='latest' -v '/mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/':'/transcode':'rw' -v '/mnt/user/appdata/PlexMediaServer/':'/data':'rw' -v '/mnt/user/Recorded_TV-Archive2/Kindle_Movies/':'/media/Kindle_Movies':'rw,slave' -v '/mnt/user/Recorded_TV-Archive2/':'/media/TV_Shows-Tower3':'rw,slave' -v '/mnt/user/Music-Library/':'/media/music_redo':'rw,slave' -v '/mnt/user/Pictures/':'/media/Photos':'rw,slave' -v '/mnt/user/appdata/PlexMediaServer':'/config':'rw' --runtime=nvidia 'plexinc/pms-docker'

8201a247e5df38516ddff953b83e577e35e2391d02d50adf2f4203eaa35b0c3e

 

Which was the procedure describes by Space Invader via:  

 

If I understand it right...when transcoding the audio & video - it should be activating the GPU?

 

image.thumb.png.1d33d642448d7d34b4274851ec0d3dd3.png

1 hour ago, ds679 said:

Check box within PLEX Settings --> Transcoder (Disable video stream trancoding - unchechecked, Use hardware acceleration when available - checked, Use hardware-accelerated video encoding - checked))

Yes, PLEX Lifetime pass

Setting up PLEX Container --> added the 'Extra Parameters:  --runtime=nvidia, and two variables (with 'all' and UUID)

docker run command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='PlexMediaServer' --net='host' --privileged=true -e TZ="America/Chicago" -e HOST_OS="Unraid" -e 'PLEX_CLAIM'='Insert Token from https://plex.tv/claim' -e 'PLEX_UID'='99' -e 'PLEX_GID'='100' -e 'VERSION'='latest' -v '/mnt/user/appdata/PlexMediaServer/Library/Application Support/Plex Media Server/Cache/Transcode/':'/transcode':'rw' -v '/mnt/user/appdata/PlexMediaServer/':'/data':'rw' -v '/mnt/user/Recorded_TV-Archive2/Kindle_Movies/':'/media/Kindle_Movies':'rw,slave' -v '/mnt/user/Recorded_TV-Archive2/':'/media/TV_Shows-Tower3':'rw,slave' -v '/mnt/user/Music-Library/':'/media/music_redo':'rw,slave' -v '/mnt/user/Pictures/':'/media/Photos':'rw,slave' -v '/mnt/user/appdata/PlexMediaServer':'/config':'rw' --runtime=nvidia 'plexinc/pms-docker'

8201a247e5df38516ddff953b83e577e35e2391d02d50adf2f4203eaa35b0c3e

 

You have not added the GPU to the container. There are no env variables for the UUID and the compute options. So no wonder it's not working.

Also, why do you volume mount the transcode folder of the appdata to /transcode? It's already in the appdata volume mount.

40 minutes ago, saarg said:

You have not added the GPU to the container. There are no env variables for the UUID and the compute options. So no wonder it's not working.

Also, why do you volume mount the transcode folder of the appdata to /transcode? It's already in the appdata volume mount.

 

So strange...I have it listed as a PLEX variable entry?!  I've been also setting up LinuxServer.io and noticed that is was present in the docker run command there....so, progress!  

 

when you say 'compute options' - do you mean the NVIDIA_DRIVER_CAPABILITIES = 'all'  ?  or something else?

the transcode info must be part of PlexInc's setup....should I remove?

 

Thanks again - this really helps!

Just a FYI and update...after thinking variables weren't being adding/initialized - it was a dumb mistake of not supplying the key value (just naming it the variable name).  duh!

 

Thanks again for the kindness to hunt down the bug/issue! 

On 10/21/2020 at 7:06 PM, Scroopy Noopers said:

Hey everyone,

 

All of a sudden I'm having issues with unRAID Nvidia not recognizing my GPU. I've got a Quadro P400 running in a Dell R510. I had the whole system running perfectly, and then all of a sudden, my plex installation crashed. After having to hard boot my system and a subsequent failure of plex to start, I narrowed the culprit down to the GPU. I disabled the additional arguments in the docker shell that allowed it to use the GPU for hardware accelerated transcoding and then began my troubleshooting.

I moved the GPU into my desktop computer and it seemed to run just fine. I then plugged the GPU into the riser cable I had, and plugged that into my desktop - no go. Assuming I had found the issue, I ordered a new riser cable. It arrived today and so I eagerly shut down the server, plugged the riser cable and GPU in and booted the server. At this time, unRAID Nvidia does not recognize it however when I run the command "lspci | grep -i nvidia" my output is as follows: 

03:00.0 VGA compatible controller: NVIDIA Corporation GP107GL [Quadro P400] (rev a1)
03:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)

 

In the system log, I see this:

Oct 21 18:58:01 PowerEdgeR510 kernel: NVRM: GPU 0000:03:00.0: RmInitAdapter failed! (0x31:0xffff:973)
Oct 21 18:58:01 PowerEdgeR510 kernel: NVRM: GPU 0000:03:00.0: rm_init_adapter failed, device minor number 0

 

Any insight would be fantastic as I'm unsure of what to do next.

As a follow up to this, I have attempted to downgrade to 6.8.3, but the unraid nvidia is still not seeing the GPU, however it is seeing my cache drive as an unassigned device. When I try to assign it, it comes up as a new drive, so I am going to reinstall (again) beta 30.

 

This being said, I am able to assign the GPU for passthrough to my Win Server VM.

I have managed to get my GTX 1650 working once again. Unfortunately I don't know exactly what the fix was but on the off-chance someone else has issues where their card WAS working, but seemingly permanently broken after loading GUI mode (broken in the sense that the plugin couldn't detect it, at least), then here's what my final actions were before it started working again:

 

1. I powered down the server, with a clean shutdown.

2. I turned off the Power Supply, and waited for lights on the motherboard to fade. <-- This is the first time I did this. I tried restarting and shutting down the server many times during my investigating but only now decided to try removing all power for long enough for a "cold" start. I can't be sure but I do have my suspicions that this was the magic that fixed it. (Thanks to itimpi for this suggestion)

3. Relocated the graphics card to another slot. I had tried this before, but as mentioned above, only with the system off but the PSU still technically ON...

(Worth noting on this point that the graphics card had worked in either of the 2 available slots prior to me going into GUI mode, so I'm not convinced it's necessary)

4. Rebooted, obviously avoiding GUI mode like the black plague.

 

Thanks to those who offered suggestions

When I used a quadro p2000, I was able to get the power output readings from nvidia-smi, which would pass that information along to wherever I wanted to view it - in this case Grafana.  When I tried to do the same with a quadro p1000, I get N/A for this field.  That seems odd, but it may be that it doesn't support this field?  I wasn't able to definitively find an answer for this. I was wondering if anyone could confirm this.  I talked to a friend that mentioned it may be the driver itself?  Thanks for any help!

 

I am using unraid nvidia 6.8.3 currently and the driver version is 440.59.

 

image.png.046f2c836293b80b2165b97d48eda4a7.png

Anyone having issues with encoding not working anymore? Both NVENC & NVDEC used to work great, but all of a sudden my server is only using NVDEC, not NVENC.

 

image.png.404b1efa733a98cc44b16f260fd3fc7b.png

image.png.8a322ad9eb5d9738ee0d97d0c8d1dd16.png

 

I'm running unraid 6.8.3 with nvidia drivers 440.59.

image.png.fcfb1869a3ac0fa69c6f0b55f1eb725f.png

 

To answer my own question, looks like plex now requires nvidia drivers 450.66 and up for NVENC to work. Looks like i'll have to wait for 6.9.0 to go stable before updating my drivers.

 

I'd just like to add that i'm having the same issue as @Scroopy Noopers, but my card is running in a VM...so seems to be a wider issue. 

I have a EVGA GTX1070 FTW being passed from UnRAID 6.9.0 to Ubuntu 20.04

 

So far things i've tried: 

- Upgrading drivers from NVIDIA 450.66 to 455.38

- Upgrading the Ubuntu VM

- Upgrading UnRaid 6.9.0-beta29 to 6.9.0-beta30

- Checked Nouveau driver blacklisting

- Binding to VFIO-PCI

- Upgrading Machine version from Q35-4.2 to Q35-5.1

 

Quote

$ sudo lshw -C display
  *-display
       description: VGA compatible controller
       product: GP104 [GeForce GTX 1070]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:07:00.0

       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:80-7f iomemory:80-7f irq:22 memory:98000000-98ffffff memory:800000000-80fffffff memory:810000000-811ffffff ioport:7000(size=128) memory:99080000-990fffff
 

Quote

$ lspci | grep NVIDIA
07:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1070] (rev a1)
07:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)

Quote

$ dmesg | grep NVIDIA
[    3.547010] nvidia: module license 'NVIDIA' taints kernel.
[    3.709259] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  455.38  Thu Oct 22 06:06:59 UTC 2020
[    3.716272] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  455.38  Thu Oct 22 05:57:59 UTC 2020

 

$ dmesg | grep NVRM
[    3.709259] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  455.38  Thu Oct 22 06:06:59 UTC 2020
[   12.496509] NVRM: GPU 0000:07:00.0: RmInitAdapter failed! (0x26:0xffff:1239)
[   12.496827] NVRM: GPU 0000:07:00.0: rm_init_adapter failed, device minor number 0

[   60.955912] NVRM: GPU 0000:07:00.0: RmInitAdapter failed! (0x26:0xffff:1239)
[   60.956055] NVRM: GPU 0000:07:00.0: rm_init_adapter failed, device minor number 0

Quote

$ sudo nvidia-settings -v

nvidia-settings:  version 455.38
  The NVIDIA X Server Settings tool.

Quote

$ sudo nvidia-smi
No devices were found

 

 

Hello!  I could use some help.  I am new to unRaid and am building a Plex Server and have a Quadro P2200 which I want to use for transcoding.  I installed the Unraid Nvidia Build 6.8.3 and it is not detecting my GPU. 

 

image.png.a4e3738a94406a49e7618c56a97c4c48.png

 

However, it does show up in the System Devices list:

image.png.3ac3fd86e927b6334174f25e4d62dec1.png

 

HVM and IOMMU is enabled

image.png.ee6cec8c9f3efab6c67ae121b576f412.png

 

As noted above, I have an Aorus Master x570 motherboard, Ryzen 3700x, 64GB Ram, LSI SAS Controller with 8 WD White Labels, (3) Samsung 970 NVMEs, and the Quadro P2200.  I have a VM installed, but it is not running and have only used it headless via VNC.

 

I tried to set it back to stock build and then reinstalled the Nvidia Build to no avail.  Even tried going up to newest beta.

 

Any help and guidance would be much appreciated.  So far, I am loving UnRaid - everything had been great except for this issue.

 

 

EDIT: I tossed in an old 1050ti and it recognized it right away.  So either an issue with the p2200 (although it works in windows) or it is a driver issue with the unraid nvidia build.

server-diagnostics-20201031-0213.zip

Edited by provoking

10 hours ago, Jarsky said:

 

I'd just like to add that i'm having the same issue as @Scroopy Noopers, but my card is running in a VM...so seems to be a wider issue. 

I have a EVGA GTX1070 FTW being passed from UnRAID 6.9.0 to Ubuntu 20.04

 

So far things i've tried: 

- Upgrading drivers from NVIDIA 450.66 to 455.38

- Upgrading the Ubuntu VM

- Upgrading UnRaid 6.9.0-beta29 to 6.9.0-beta30

- Checked Nouveau driver blacklisting

- Binding to VFIO-PCI

- Upgrading Machine version from Q35-4.2 to Q35-5.1

 

 

 

I'm not really how you are running your card, but if you just pass it through to a VM, you have no need for the nvidia drivers plugin, as you can't use both at the same time.

12 hours ago, saarg said:

I'm not really how you are running your card, but if you just pass it through to a VM, you have no need for the nvidia drivers plugin, as you can't use both at the same time.

I know but just pointing out there may be a larger Linux kernel issue thats affecting Scroopy, given that mine recently stopped working with the same issue. 

Mines been working in that setup for a year, and it just stopped working for no reason in the last week...only thing i'd changed up to that point was regular UnRAID and Ubuntu upgrades. The only thing that I can find that appears relevant is entries that say 'tainted kernel'

 

e.g

Quote

Oct 31 10:29:37 mediabox kernel: [    3.557346] nvidia: loading out-of-tree module taints kernel.
Oct 31 10:29:37 mediabox kernel: [    3.557352] nvidia: module license 'NVIDIA' taints kernel.
Oct 31 10:29:37 mediabox kernel: [    3.557352] Disabling lock debugging due to kernel taint
Oct 31 10:29:37 mediabox kernel: [    3.568325] nvidia: module verification failed: signature and/or required key missing - tainting kernel

 

Edited by Jarsky

19 hours ago, Jarsky said:

I know but just pointing out there may be a larger Linux kernel issue thats affecting Scroopy, given that mine recently stopped working with the same issue. 

Mines been working in that setup for a year, and it just stopped working for no reason in the last week...only thing i'd changed up to that point was regular UnRAID and Ubuntu upgrades. The only thing that I can find that appears relevant is entries that say 'tainted kernel'

 

e.g

 

Given that it is a tainted kernel, I'm thinking that my next step is to replace the unraid nvidia installation of beta 30 with the stock OS and see if the plugin registers the GPU (which I don't expect it to) and then re-install the unraid nvidia kernel and see if that works. 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.