I
Immichβ€’2mo ago
Leborkan

Hardwareacceleration on Win 11 docker desktop for intel (arc)

Sorry to bother you guys. I know this might be a stupid question. Thanks in advance for taking your time to read this. When I set up Immich on my win 11 server I had problems configuring the Hardware accelleration part. The main problem is, that there is a error message: No /dev/dri devices found (Immich server when referring to video transcoding). Also the ml stuff doesn't use my gup. It is using my cpu. In general i had no problems setting it up for my gaming Pc card (3080). I used the gaming pc for remote ml. But this isn't sustainable. My problem is that I cant get all the HW acc stuff to work on my intel arc or my integrated graphic. My hardware is: 14700k, arc a 750. I think it has something to do with the intel drivers in wsl. I can't get them to work. Merce and greetings from bavaria! Leo
48 Replies
Immich
Immichβ€’2mo ago
:wave: Hey @Leborkan, Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:. References - Container Logs: docker compose logs docs - Container Status: docker ps -a docs - Reverse Proxy: https://immich.app/docs/administration/reverse-proxy - Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA Checklist I have... 1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time). 2. :ballot_box_with_check: read applicable release notes. 3. :ballot_box_with_check: reviewed the FAQs for known issues. 4. :ballot_box_with_check: reviewed Github for known issues. 5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy). 6. :ballot_box_with_check: uploaded the relevant information (see below). 7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable (an item can be marked as "complete" by reacting with the appropriate number) Information In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider: - Your docker-compose.yml and .env files. - Logs from all the containers and their status (see above). - All the troubleshooting steps you've tried so far. - Any recent changes you've made to Immich or your system. - Details about your system (both software/OS and hardware). - Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h). - The version of the Immich server, mobile app, and other relevant pieces. - Any other information that you think might be relevant. Please paste files and logs with proper code formatting, and especially avoid blurry screenshots. Without the right information we can't work out what the problem is. Help us help you ;) If this ticket can be closed you can use the /close command, and re-open it later if needed. Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Mraedis
Mraedisβ€’2mo ago
Hardware acceleration and Hardware acceleration on WSL are not the same thing
Leborkan
LeborkanOPβ€’2mo ago
Ok. I tried both and it didn't work.
Mraedis
Mraedisβ€’2mo ago
Can I ask why you're using win11 as a server?
Leborkan
LeborkanOPβ€’2mo ago
It is because of my university work. I need win. Believ me i hate it. But i did set it up alingside many other apps in docker. I was too lazy to migrate to a vm. But i guess you would reccomend it.
Mraedis
Mraedisβ€’2mo ago
Recommend yes, but let's see what we can do here πŸ™‚ In the container if you do ls -la /dev/dri what does it show?
Leborkan
LeborkanOPβ€’2mo ago
ls: cannot access '/dev/dri': No such file or directory
Mraedis
Mraedisβ€’2mo ago
and if you do that in WSL?
Leborkan
LeborkanOPβ€’2mo ago
total 0 drwxr-xr-x 2 root root 80 Aug 13 11:52 . drwxr-xr-x 17 root root 3980 Aug 13 11:51 .. crw-rw-rw- 1 root root 226, 0 Aug 13 11:52 card0 crw-rw-rw- 1 root root 226, 128 Aug 13 11:52 renderD128
Mraedis
Mraedisβ€’2mo ago
What if you add group to the openvino config?
openvino-wsl:
devices:
- /dev/dri:/dev/dri
- /dev/dxg:/dev/dxg
volumes:
- /dev/bus/usb:/dev/bus/usb
- /usr/lib/wsl:/usr/lib/wsl
group_add:
- video
- render
openvino-wsl:
devices:
- /dev/dri:/dev/dri
- /dev/dxg:/dev/dxg
volumes:
- /dev/bus/usb:/dev/bus/usb
- /usr/lib/wsl:/usr/lib/wsl
group_add:
- video
- render
Leborkan
LeborkanOPβ€’2mo ago
Wich file exactly? Not the compose (general immich docker-compose file), right? The hwaccell.ml.yml right?
Mraedis
Mraedisβ€’2mo ago
yes the hwaccell
Leborkan
LeborkanOPβ€’2mo ago
k. Testing
Mraedis
Mraedisβ€’2mo ago
See if you can ls the directories to begin with
Leborkan
LeborkanOPβ€’2mo ago
I have got this error now: Error response from daemon: Unable to find group render: no matching entries in group file
Mraedis
Mraedisβ€’2mo ago
dang :p If you do getent group render or getent group video in WSL, does it return a number?
Leborkan
LeborkanOPβ€’2mo ago
render: x :992: video❌44:
Mraedis
Mraedisβ€’2mo ago
Alright instead of group_add render/video do 992 and 44 instead
Leborkan
LeborkanOPβ€’2mo ago
ohh now it shows : let me confrim total 0 drwxr-xr-x 2 root root 80 Aug 19 07:47 . drwxr-xr-x 7 root root 400 Aug 19 07:47 .. crw-rw-rw- 1 root root 226, 0 Aug 19 07:47 card0 crw-rw-rw- 1 root root 226, 128 Aug 19 07:47 renderD128
Mraedis
Mraedisβ€’2mo ago
Let's see if the ML will do anything now
Leborkan
LeborkanOPβ€’2mo ago
ok. It seems to work. Task manager dsn't show anything. but it works. CPU util is low and the progress is fast
Mraedis
Mraedisβ€’2mo ago
nice πŸ™‚
Leborkan
LeborkanOPβ€’2mo ago
Maaan thank youuuuuuuuuuu. Everything works. you sir are a legend
Mraedis
Mraedisβ€’2mo ago
Enjoy!
Leborkan
LeborkanOPβ€’2mo ago
Hey small update. After running until 1h everything worked. Then I got a wsl error and docker desktop restarted. Now i have the same problem as bevor. Only now when i run ls -la /dev/dri in wsl, I get ls: cannot access '/dev/dri': No such file or directory. Sorry to bother again...
Mraedis
Mraedisβ€’2mo ago
restart WSL easier to reboot the whole PC tbh :p
Leborkan
LeborkanOPβ€’2mo ago
nope still not there ( i did wsl -- shutdown, wsl update ) wait a minute. let me try some thing nope. still nothing (restarted pc too
Mraedis
Mraedisβ€’2mo ago
I have no idea here really 😐 Could you copy your ML container config just in case?
Leborkan
LeborkanOPβ€’2mo ago
(i doctored in it quite a bit just to try things and the group add with the numers didn't work either)
Mraedis
Mraedisβ€’2mo ago
Why is it immich_machine_learning2 ? πŸ˜›
Leborkan
LeborkanOPβ€’2mo ago
Because i didn't wawnt to mess with my immich installation. There everything works (except gup supp) so i have a remote ml container on the same pc . bit messy i know
Mraedis
Mraedisβ€’2mo ago
With the same ports? πŸ™ƒ
Leborkan
LeborkanOPβ€’2mo ago
Usually i just stop the immich ml container. Just lazy. But i thougt it would be just to try some things
Mraedis
Mraedisβ€’2mo ago
Just use 3004:3003 and name it immich-remote-learning or something
Leborkan
LeborkanOPβ€’2mo ago
but the main problem is still the problem, that dev/dri isn't there wheras bevore when i acessed it throug wsl it was there. I also tried to (again) install openvino on both windows as well as wsl (Intel website) btw. If i don't answer in half an hour, dw. I my have go (firefighter readiness) . Just so you know I am not disrespectfull
Mraedis
Mraedisβ€’2mo ago
No worries All I can find is certain WSL updates breaking /dev/dri
Leborkan
LeborkanOPβ€’2mo ago
I found some comments on docker vs docker desktop. But I mean, it worked. Why did it stop? I might just migrate to a VM
Mraedis
Mraedisβ€’2mo ago
You tell me πŸ‘€ I just know that it needs access (like render/video etc)
Leborkan
LeborkanOPβ€’2mo ago
Ok small update: I tried many things. I may have found a solution. It works now, but i don't know for how long. 1h ago i changed all /dev/dri to /dev/dxg. Now it utilizes the gup and it runs. but i will update you gusy. I want it running for at least one day and restart etc. If it works then, i think this might be the best fix.
Mraedis
Mraedisβ€’2mo ago
Which gpu is that @Leborkan ?
Leborkan
LeborkanOPβ€’2mo ago
Arc 750. At least it shows high usage And the rate checks out (about halv my 3080)
Mraedis
Mraedisβ€’2mo ago
What exactly did you change to /dev/dxg because that was mounted already πŸ€”
Leborkan
LeborkanOPβ€’2mo ago
I deleted bzw. replaces every dev/dri to dev/dxg
Mraedis
Mraedisβ€’2mo ago
interesting I still think it's a driver being annoying somehow Maybe the latest version moved from dri to dxg? Noted at least, thanks
Leborkan
LeborkanOPβ€’2mo ago
Yeah. messy stuff but thanks for the help. Should i close the ticket? case i want to test it for a few days. Mybe i reopen it shortly and post my findings then close it again. Or is that unnecessary( If you hear nothing it works).
Mraedis
Mraedisβ€’2mo ago
No leave it open πŸ™‚
Leborkan
LeborkanOPβ€’3w ago
Thanks for the support. Today i decided to buy Immich. Continue the good work!

Did you find this page helpful?