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
: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:Here are my files.
Hardware acceleration and Hardware acceleration on WSL are not the same thing
Ok. I tried both and it didn't work.
Can I ask why you're using win11 as a server?
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.
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?ls: cannot access '/dev/dri': No such file or directory
and if you do that in WSL?
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
What if you add group to the openvino config?
Wich file exactly? Not the compose (general immich docker-compose file), right? The hwaccell.ml.yml right?
yes the hwaccell
k. Testing
See if you can ls the directories to begin with
I have got this error now: Error response from daemon: Unable to find group render: no matching entries in group file
dang :p
If you do
getent group render
or getent group video
in WSL, does it return a number?render: x :992: videoβ44:
Alright instead of group_add render/video do 992 and 44 instead
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
Let's see if the ML will do anything now
ok. It seems to work. Task manager dsn't show anything. but it works. CPU util is low and the progress is fast
nice π
Maaan thank youuuuuuuuuuu. Everything works. you sir are a legend
Enjoy!
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...
restart WSL
easier to reboot the whole PC tbh :p
nope still not there ( i did wsl -- shutdown, wsl update )
wait a minute. let me try some thing
nope. still nothing (restarted pc too
I have no idea here really π
Could you copy your ML container config just in case?
(i doctored in it quite a bit just to try things and the group add with the numers didn't work either)
Why is it
immich_machine_learning2
? π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
With the same ports? π
Usually i just stop the immich ml container. Just lazy. But i thougt it would be just to try some things
Just use 3004:3003
and name it
immich-remote-learning
or somethingbut 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
No worries
All I can find is certain WSL updates breaking /dev/dri
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
You tell me π I just know that it needs access (like render/video etc)
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.
Which gpu is that @Leborkan ?
Arc 750. At least it shows high usage
And the rate checks out (about halv my 3080)
What exactly did you change to /dev/dxg because that was mounted already π€
I deleted bzw. replaces every dev/dri to dev/dxg
interesting
I still think it's a driver being annoying somehow
Maybe the latest version moved from dri to dxg?
Noted at least, thanks
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).
No leave it open π
Thanks for the support. Today i decided to buy Immich. Continue the good work!