Immich not using directories specified in .env file.
I've set immich up using the Docker Compose guide on an arch linux system and set the UPLOAD_LOCATION and DB_DATA_LOCATION in the .env to folders on a raid volume I have set up. There should be 13TB available, but the client is only showing 5.6GB. When I check the directories I specified, it doesn't seem that immich is writing any files to them. I tried using the terminal in docker desktop under immich_server to see if it lacked the permissions to write to those directories, but it created a new file properly. I tried destroying the immich instance and creating a new one from scratch, but that didn't help either.



46 Replies
:wave: Hey @Takeshi64,
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.What is actually inside
/run/media/john/raid5/immich/
? What are the permissions for the folder?I just have the two folders for the database and the upload location. I tried setting the permissions for both of the folders to be really broad to see if that could narrow down the issue but it didn't do anything.


So john:john, and you're running the containers as user I assume?
Yeah, when I checked the terminal for immich_server it was running under john@archlinux
is 5.6GiB the /root partition? 👀 or /var/ ?
Let me check
It seems like they both have plenty of space:

can you just
df -hT /
Trying to figure out where the 5.6GiB comes from
That's it?
oh wow I totally missed that I put a / there
I meant
df -hT
😛
To see them alllol yeah I was a little confused too
there we go

Weird, nothing with anything remotely like 5.6GiB
Could it maybe have something to do with RAM? When I was first trying it out yesterday, I accidentally maxed out my storage and got the errors to go away when I allocated more memory in Docker
how is this raid mounted? /run is a pretty unusual folder for a mount
I'm more thinking it's something to do with arch
How did you install this?
this = immich
can you also run
docker inspect immich_server
?I have an inkling this might be relevant? https://immich-distribution.nsg.cc/configuration/library/storage/
I'm having the same problem, changed the upload var in .env to a mounted hdd, but it's not working anymore
I don't think so this looks like a standard docker setup
you have a different issue. you can't just change the mount, you have to move all th efiles to the new location before starting immich
isn't docker compose up -d --force-recreate enough?
after changing the .env
no. you need to delete the database as well if you want to start over
yo ushold make your own ticket if you need more help
on the guide it says this

that's why i tought it was enough
Don't argue with Zeus. Make a separate thread
Please make your own topic @Accia
thx i'll try what u suggested
I followed this guide for immich: https://immich.app/docs/install/docker-compose
This was what I used for the docker desktop: https://docs.docker.com/desktop/setup/install/linux/archlinux/
I'll get some info on how the raid is set up
how is your raid mounted?
Yeah that's all pretty default docker so ignore my previous link
Can you please run this command:
docker run --rm -v /run/media/john/raid5/test_123:/x alpine touch /x/2
Please do not create the test_123 folder before running the command
Then let me know there that "2" file shows upSure
I got an error, "unknown shorthand flag: 'r' in -rm"
two hyphens before
--rm
yes?this is the mdadm output for the raid mount, I can try to get more specific info if you need, it's been a while since I set it up

Oops haha
Ran it, it didn't create a test_123 folder or any files

ok sorry to say we are beyond an immich issue
you might have to do some research on how docker interfaces with mdadm and go from there
if it didn't even create a folder that means the docker daemon itself cannot access/see the raid
becuase that is handled by the daemon not the container
Alright, thanks for the info and for looking into it
Do you think it'd make any sense to try some other containerization option
I highly doubt it
if you're having issues with docker the other ones are just more complex
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
For anyone who might stumble on this in the future, the issue seems to have been docker desktop. Using regular docker with the compose plugin fixed it
Wow. You were docker desktop on Linux ðŸ˜
I guess our fault for not checking that. Docker desktop sucks lol
Yeah I'm not really at home on Linux yet
Thankfully not too hard to sort out though