ImmichI
Immich13mo ago
Bright

Changing "UPLOAD_LOCATION" cause immich to be unavailable

I'm trying to change my upload location to a known good directory on a seperate drive. I went through the hassel of getting the drive setup and availible. The file path if good. But when I switch the .env file to change the upload location to the other path, and re-deploy my container, I loose access to my immich. But if I go in and switch it back to library and deploy again it works again.

How do I go about switching the picture upload location to a directory on a separate disk without breaking my immich?

Default .env:
# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-va>
# The location where your uploaded files are stored
UPLOAD_LOCATION=./library
# The location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wiki># TZ=Etc/UTC

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=

# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich


I am changing the file path to /home/void/auxdrive/immich
--------------------------------------------------------------
Running immich with docker on Ubuntu server 24.04.1.

Immich is setup on the 128gb booth drive currently.

Trying to point the uploads to my 2TB HDD for mass storage.

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 119.2G  0 disk
├─sda1        8:1    0     1G  0 part /boot/efi
└─sda2        8:2    0 118.2G  0 part /
sdb           8:16   0   3.6T  0 disk
└─sdb1        8:17   0     2T  0 part /home/void/auxdrive
Was this page helpful?