Sam___D
Sam___D
IImmich
Created by Sam___D on 12/12/2024 in #help-desk-support
Immich says no /dev/dri devices found while test node script can find them
Video conversion seems to fail with hardware acceleration. You can see the output I'm getting here: https://gist.github.com/sdebruyn/b7705a6bd13ac1dd19bd52dd934ca090 Note the line No /dev/dri devices found. If using Docker, make sure at least one /dev/dri device is mounted My Compose file has the following:
devices:
- /dev/dri
group_add:
- "44"
- "107"
devices:
- /dev/dri
group_add:
- "44"
- "107"
Outside the container I can find the DRI devices:
total 0
drwxr-xr-x 3 root root 100 Dec 12 02:26 .
drwxr-xr-x 19 root root 4100 Dec 12 02:30 ..
drwxr-xr-x 2 root root 80 Dec 12 02:26 by-path
crw-rw---- 1 root video 226, 0 Dec 12 02:26 card0
crw-rw---- 1 root render 226, 128 Dec 12 02:26 renderD128
total 0
drwxr-xr-x 3 root root 100 Dec 12 02:26 .
drwxr-xr-x 19 root root 4100 Dec 12 02:30 ..
drwxr-xr-x 2 root root 80 Dec 12 02:26 by-path
crw-rw---- 1 root video 226, 0 Dec 12 02:26 card0
crw-rw---- 1 root render 226, 128 Dec 12 02:26 renderD128
Video is GID 44, render is GID 107 Inside the container I can also find the DRI devices:
root@8072d5bc2bdc:/usr/src/app# ls -al /dev/dri
total 0
drwxr-xr-x 2 root root 80 Dec 12 12:25 .
drwxr-xr-x 6 root root 360 Dec 12 12:25 ..
crw-rw---- 1 root video 226, 0 Dec 12 12:25 card0
crw-rw---- 1 root 107 226, 128 Dec 12 12:25 renderD128
root@8072d5bc2bdc:/usr/src/app# ls -al /dev/dri
total 0
drwxr-xr-x 2 root root 80 Dec 12 12:25 .
drwxr-xr-x 6 root root 360 Dec 12 12:25 ..
crw-rw---- 1 root video 226, 0 Dec 12 12:25 card0
crw-rw---- 1 root 107 226, 128 Dec 12 12:25 renderD128
I created this test script to see if there is an issue with Node fetching them:
const fs = require('fs');

fs.readdir('/dev/dri', (err, files) => {
if (err) {
console.error('Error reading directory:', err.message);
} else {
console.log('Files in /dev/dri:', files);
}
});
const fs = require('fs');

fs.readdir('/dev/dri', (err, files) => {
if (err) {
console.error('Error reading directory:', err.message);
} else {
console.log('Files in /dev/dri:', files);
}
});
It tells me it can find them: Files in /dev/dri: [ 'card0', 'renderD128' ] From looking at the Immich source, that is also how Immich gets the devices. I'm clueless at this point. Anyone has an idea why it's telling me there are no DRI devices?
76 replies