Help with changing my storage location
Hi when I have the default storage location, immich works and I can view it on a web browser. But I want to change the storage location to my raid5 array but when I change the location, it stops working on the web browser. What's the correct way to change the storage location? And I want to store all immich related things in my raid5 array (theyre just hard drives externally. I use sdd for the boot drive and i dont want to clog it)
70 Replies
:wave: Hey @illiteratewaffle,
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:change the locations in the .env file
https://immich.app/docs/guides/custom-locations
I have

What is the error message

but it connects when I have the default location up


This is horrible, don't do this
That's the webpage, what is the actual error message in docker?
docker compose logs
i was following this

hang on let me get the logs real quick
Yes and you don't need it
what's the command for logs?
literally this
ah sorry im blind
im not sure what im looking for
heres the last several lines
@Mraedis
unsure if this is helpful but when i run
docker ps
:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a4a594030130 ghcr.io/immich-app/immich-server:release "tini -- /bin/bash -…" 5 minutes ago Restarting (1) 27 seconds ago immich_server
09581649f6e9 ghcr.io/immich-app/immich-machine-learning:release "tini -- python -m i…" 5 minutes ago Up 5 minutes (healthy) immich_machine_learning
7ece8bca273c ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0 "/usr/local/bin/immi…" 9 minutes ago Up 9 minutes (health: starting) 5432/tcp immich_postgres
c1a90e615f16 valkey/valkey:8-bookworm "docker-entrypoint.s…" 24 minutes ago Up 24 minutes (healthy) 6379/tcp immich_redis
4c6e0885a96c postgres:14 "docker-entrypoint.s…" 35 minutes ago Up 35 minutes 5432/tcp immich-postgres
852b6aea1728 redis:6 "docker-entrypoint.s…" 35 minutes ago Up 35 minutes 6379/tcp immich-redis
Did you move the files/folders or do you want to start anew?
ah I see your issue
lets start anew i dont have any images or files
you have multiple postgres containers on the network
wait what?
you have multiple copies of immich_postgres and immich_redis
right there in your output
Ok I did have a raspberry pi that ran immich with external drives and it worked. It stays?
and then i took that guy out since it was slow
oh ok
No it's likely something that went wrong when you were composing earlier
uhh
okay
docker compose down
done
and
docker stop immich-redis
docker stop immich-postgres
sorry
with a -👍
Just to be clear, can you show your compose?
when i run the docker stop, just the name shows up
How do I do that?
sorry im unfamiliar with linux haha
it's the file docker-compose.yml
okay


alright remove all those custom locations and keep only the UPLOAD_LOCATION one
and etc localtime
got it
then compose up
docker compose up -d
Obviously
the server cant seem to go up
Getting closer
what does
docker compose logs
say nowDid you have anything uploaded already or not yet?
nothing
im just setting it up lol
delete everything inside of
/mnt/raid5/immich
except for the compose and env
(and compose up again of course)hang on im just confirming that youve got it right. I have an ssd where i installed immich on and i connected external hard drives and i want to store my images on the external hard drives
i appreciate the help btw
Only the images?
Images and their metadata (is that what you call it?)
yes
Okay yeah
and /mnt/raid5/immich only contains immich things right?
no pictures yet?
No pictures at all on the computer
I installed docker on home/user/immich-app
and /mnt/raid5/ is the external hard drives
should i delete everything from the installation spot?
Yeah so just wipe everything inside of /mnt/raid5/immich
if the folder does not exist, please create it though
i keep doing
sudo rm -rf /mnt/raid5/immich
but the directory keeps popping up
is there a better way of emptying out that folder 😂yeah, did you stop the containers?
docker compose down
no configuration file provided: not found
lmfao im okay with not deleting the old files and just creating new folders to start anew
did you keep the compose inside of that folder? 🙃
oh shit i realized i ran
docker compose down
outside of the folder where i installed docker in
hang ong
Okay its wipedand up it goes again
same issue, the server cant seem to start up

so weird
I really need to go to sleep but I suggest another down, removing the container images and re-pulling 👀
do you think it could be a permissions issue? i mean theyre just drives that were attached
ah
well thank you for your time
good night
docker system prune -a
I believe
Does it create folders inside?
if yes, it's not a permissions issueyes
oh
weird
alright
Keep us posted! Going to bed
good night thank you