GPU Allocation failure Truenas/Immich
I am getting an error when trying to save my configuration for Immich to use my 1070ti. I can see it's being recognized in the setup options of Immich and has the UUID correct. When I go to save the configuration I get an error.
Immich is also one of the most amazing programs i've ever used. You all are doing an incredible job!
24 Replies
:wave: Hey @Higher Primate,
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_01GY0DAKGXDEHE263BCAYEGFJAChecklist
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.GitHub
immich-app immich · Discussions
Explore the GitHub Discussions forum for immich-app immich. Discuss code, ask questions & collaborate with the developer community.
FAQ | Immich
User
GitHub
Issues · immich-app/immich
High performance self-hosted photo and video management solution. - Issues · immich-app/immich
Here is my config yaml
I have tried manually adding the following to the yaml file-
{% do server_container.deploy.set_resources({
"limits": {
"nvidia.com/gpu": "GPU-a2952624-2218-1ddc-a0b3-17c7b590a0f4"
}
}) %}
{% do server_container.environment.add_env("NVIDIA_VISIBLE_DEVICES", "a2952624-2218-1ddc-a0b3-17c7b590a0f4") %}
{% do server_container.environment.add_env("NVIDIA_DRIVER_CAPABILITIES", "compute,utility") %}
About
Immich
v1.124.2
ExifTool
13.00
Node.js
v22.12.0
Libvips
8.15.3
ImageMagick
7.1.1-40
FFmpeg
7.0.2-7
Repository
immich-app/immich
Source
v1.124.2@8d836ae04
Build
12680862573
Build Image
v1.124.2
Version History
Installed 1.124.2 on Jan 14, 2025
Does truenas use some kind of templating? I don't recognize this kind of config.
I believe it does yes. And I think that is where the issue is. I dumped the error into Grok and it mentioned templating
Should I try using a 1080? I have one in my sons computer I could pop out and throw in it to see if it runs on the 1080. But I think there is an issue with the templating
I have no idea what is going on here to be honest 🙂
python scripts are not part of immich so it's something truenas-y
It might be something super silly like a space where there shouldn't be
Dang.. Should I reach out to truenas? Surely there are others on here that are using Truenas as well? I appreciate you looking into this. Super bummed my GPU isnt being utilized, not the end of the world though.
This is what grok is telling me -
You are awesome Ill give those a look over. I really appreciate your help so far!
This one https://forums.truenas.com/t/docker-apps-and-uuid-issue-with-nvidia-gpu-after-upgrade-to-24-10/22547/8 is giving me some ideas.
Im wondering if its an issue with my integrated graphics? Ill have to do some test when I get home from work today.
TrueNAS Community Forums
Docker Apps and UUID issue with NVIDIA GPU after upgrade to 24.10
Your post fixed my issue. Thank you so much! It’s a lot easier than when I had to edit the file manually through TrueNAS’s shell.
I wanted to update you @Mraedis! But I have foind the fix for me. That forum link you sent me indeed fixed my issue! I ran this command in TrueNAS Scale shell-
midclt call -job app.update immich '{"values": {"resources": {"gpus": {"use_all_gpus": false, "nvidia_gpu_selection": {"0000:01:00.0": {"use_gpu": true, "uuid": "GPU-a2952624-2218-1ddc-a0b3-17c7b590a0f4"}}}}}}'
hurray
You are the best! Do you work for Immich? Or just a community member volunteering your time? Im amazed by this software thus far.
It's volunteer service 🙂
Well i appreciate you and your help!
Bad news haha evem though I was able to get the GPU enabled in Immich, it doesnt seem to be utilizing it at all. nvidia-smi command in TrueNAS shell is showing no processes running for the GPU. Ill continue to troubleshoot.
Im wondering if my system is struggling with resource, the CPU is serverly underpowered. I have an upgrade on the way, it will be here Sunday. I currently have an Intel(R) Celeron(R) CPU G3930 @ 2.90GHz it was all i had at the time when I built this system. I have an i7 7700 im putting in it. But Im wondering if the CPU is not able to manage both system processes and application workloads leading to gpu task scheduling issues.
Did you enable HWA in the GUI?
In the configuration settings in truenas "Apps" i have install nvidea drivers checked and in the Immich configuration Ive checked the box to use the GPU. Is there another location i need to set?


Yes the immich gui @Higher Primate
I enabled it and started a transcode job and it still isnt using it.. I guess im just SOL... Im out of ideas.



Found this forum thread. It seems to be an issue with TrueNAS and not Immich. So I guess I will start asking TrueNAS community about a fix- https://forums.truenas.com/t/nvidia-gpu-not-being-used-by-apps-electriceel/22339/9
TrueNAS Community Forums
NVIDIA GPU Not Being Used By Apps - ElectricEel
Do you have a link to the ticket? If it was immediately closed, it was probably becasue it was a duplicate of an already reported issue.