#I cannot get custom upload directory to work

1 messages · Page 1 of 1 (latest)

slate matrix
#

I have tried bots and I never got a working answer, so I suppose I can just ask here.

I'm running Immich on docker using dietpi, a debian based OS.

I want the main and directory to be */media/8Terra/Camera/DCIM/OpenCamera. What do I change in the .env and .yaml file? It feels like I have tried every combination

Currently the .env has this changed

The location where your uploaded files are stored

UPLOAD_LOCATION=∕media/8Terra/Camera/DCIM/OpenCamera

The yaml has this changed

volumes:
# Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
- ${UPLOAD_LOCATION}:/usr/src/app/upload
- /etc/localtime:/etc/localtime:ro
- /media/8Terra/Camera/DCIM/OpenCamera

Thanks

pastel topazBOT
#

:wave: Hey @slate matrix,

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. :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. :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.

hearty snow
#

Please post the actual yaml and env files.

That last line is incorrect, you don't need it /media/8Terra/Camera/DCIM/OpenCamera

If you booted up immich once, then changed the upload directory, you will need to move the folders it created to the new locatin you are specifying.

slate matrix
hearty snow
#

You renamed exmaple.env to just .env and have it in the same folder as the compose file right?

slate matrix
hearty snow
slate matrix
#

oki

#

There was a .env there, just hidden

hearty snow
#

Please post that just to validate

#

And remove the example.env just make sure

slate matrix
# hearty snow Please post that just to validate

I deleted it too quick, but it seems the new file is valid, since I got this error:

service "immich-server" refers to undefined volume ∕media/8Terra/Camera/DCIM/OpenCamera: invalid compose project

hearty snow
#

I meant just re-add your .env and compose that are the most up to date when you tried to run docker compose up -d

slate matrix
#

This .env is the most up to date, and I think the old one is lost

hearty snow
#

Sorry don't understand. If things aren't working you will need to repost them so I can see. That error could be a couple of things

slate matrix
#

Oh

#

What I sent is actually up to date

hearty snow
#

Okay, so you update the .env file with the values that you showed above in the example.env?

slate matrix
#

Yes. I just now changed it from UPLOAD_LOCATION=∕media/8Terra/Camera/DCIM/OpenCamera to the default UPLOAD_LOCATION=.∕library, and now it boots, but of course it doesn't upload to the right place

hearty snow
#

Okay. Bring down the stack, change the upload location to what you want, move the "upload" folders immich created to the new location, then try and bring the stack back up

#

If doesn't work, post the logs

slate matrix
hearty snow
#

If you delete it then you also need to delete the postgres folder

slate matrix
#

Yes it works now, but not really how I wanted it to. This was the directory for my Nextcloud images, I was hoping it would just detect all of them and not create new sub folders. But I see that this is just how Immach works, so I will move it out from the Nextcloud and use Immach just for my photos 👍

hearty snow
#

You can use external libraries to point at an existing directory images, but yes you cannot do that with the intneral library that immich handles

pastel topazBOT
slate matrix
#

I know it just doesn't work like that now

hearty snow
#

It won't upload there. External libraries are ones you manage

#

Immich only scans them

slate matrix
#

Thanks for the help, I see what I must do 👍