#Trying to setup Docker with Cuda

1 messages · Page 1 of 1 (latest)

spare sapphireBOT
#

:wave: Hey @trim elm,

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

#

Checklist

I have...

  1. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :blue_square: read applicable release notes.
  3. :blue_square: reviewed the FAQs for known issues.
  4. :blue_square: reviewed Github for known issues.
  5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: uploaded the relevant information (see below).
  7. :blue_square: 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.

trim elm
trim elm
#

Anything else needed to begin troubleshooting?

trim elm
#

Or do i need to do this?

services:
test:
image: nvidia/cuda:12.9.0-base-ubuntu22.04
command: nvidia-smi
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]

wintry wadi
#

Where the heck did you get that cuda base whatever line from

#

And PLEASE don't tell me chatgpt or whatever

#

No, you've set nvenc and not cuda

trim elm
#

I changed that and added -cuda to image

wintry wadi
#

You are confusing two things

#

hardware transcoding, which are options for the immich_server section

trim elm
#

right, I figured that out

wintry wadi
#

and hardware accelerated machine learning, which is for immich_machine_learning

#

So which are you asking about

trim elm
wintry wadi
#

Yes that seems about right

trim elm
#

Guessing it doesn't use CUDA with importing files, just facial recognition etc

wintry wadi
#

Yes, the machine learning part

#

For transcoding that'd be the immich_server section

wintry wadi
#

I don't see a pgdata volume?

trim elm
#

what does this effect exactly?

trim elm
#

How can I change the location Immich stores files to? I want to use a second HD

wintry wadi
#

You just change UPLOAD_LOCATION, but if you don't start fresh you will have to move the existing files and folders

trim elm
#

E:\Media\OneDrive\Media\Immich Photos

wintry wadi
#

If you change to the pgdata volume and upload location at the same time there shouldn't be issues

trim elm
#

just change it to that after adding that shared folder in Docker Desktop?

wintry wadi
#

I'd use Immich_Photos because spaces in YAML is iffy

trim elm
#

And your'e sure it just takes that format?
E:\Media\OneDrive\Media\Immich_Photos

#

No mnt?

wintry wadi
#

It's anyone's guess with WSL and docker to be honest 😛

#

Ah you're not using docker desktop

#

yeah go with /mnt/

trim elm
wintry wadi
#

oh no Sadge

trim elm
#

Is that bad or something?

wintry wadi
#

Nah, there's a lot more strange issues reported with docker desktop users

#

but could very well be the type of user that uses docker desktop

trim elm
#

So i should have just installed docker through wsl

wintry wadi
#

No a linux server would be much better 😛

trim elm
#

I have Ubuntu WSL installed

wintry wadi
#

You should be fine, you don't seem to have any issues navigating things

trim elm
#

UPLOAD_LOCATION=/mnt/e/Media/OneDrive/Media/Immich_Photos

#

didn't work

wintry wadi
#

"My car makes a funny noise"

trim elm
#

I think I fixed it

#

Yeah, I had to recreate the immich folders and .immich file manually

wintry wadi
#

There's easier ways to do it :p

trim elm
#

what do you mean by start fresh?

wintry wadi
#

wipe the database

#

On first boot it wil create the folders and hidden files to prevent it from starting if these disappear

trim elm
wintry wadi
#

just delete the folder at DB_DATA_LOCATION, or in your case delete the docker pgdata volume

#

imagine your USB disconnected, docker would just happily mount a fake folder, if you keep using immich then it'd upload there instead of in the real folder, and then after a while where are your files even?

trim elm
#

I'ts not on a usb

wintry wadi
#

Just giving context to the checks