I
Immich•5mo ago
Takeshi64

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.
No description
No description
No description
46 Replies
Immich
Immich•5mo ago
: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.
Mraedis
Mraedis•5mo ago
What is actually inside /run/media/john/raid5/immich/ ? What are the permissions for the folder?
Takeshi64
Takeshi64OP•5mo ago
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.
No description
No description
Mraedis
Mraedis•5mo ago
So john:john, and you're running the containers as user I assume?
Takeshi64
Takeshi64OP•5mo ago
Yeah, when I checked the terminal for immich_server it was running under john@archlinux
Mraedis
Mraedis•5mo ago
is 5.6GiB the /root partition? 👀 or /var/ ?
Takeshi64
Takeshi64OP•5mo ago
Let me check
Takeshi64
Takeshi64OP•5mo ago
It seems like they both have plenty of space:
No description
Mraedis
Mraedis•5mo ago
can you just df -hT / Trying to figure out where the 5.6GiB comes from
Takeshi64
Takeshi64OP•5mo ago
No description
Mraedis
Mraedis•5mo ago
That's it? oh wow I totally missed that I put a / there I meant df -hT 😛 To see them all
Takeshi64
Takeshi64OP•5mo ago
lol yeah I was a little confused too
Takeshi64
Takeshi64OP•5mo ago
there we go
No description
Mraedis
Mraedis•5mo ago
Weird, nothing with anything remotely like 5.6GiB
Takeshi64
Takeshi64OP•5mo ago
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
Zeus
Zeus•5mo ago
how is this raid mounted? /run is a pretty unusual folder for a mount
Mraedis
Mraedis•5mo ago
I'm more thinking it's something to do with arch How did you install this? this = immich
Zeus
Zeus•5mo ago
can you also run docker inspect immich_server ?
Mraedis
Mraedis•5mo ago
Accia
Accia•5mo ago
I'm having the same problem, changed the upload var in .env to a mounted hdd, but it's not working anymore
Zeus
Zeus•5mo ago
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
Accia
Accia•5mo ago
isn't docker compose up -d --force-recreate enough? after changing the .env
Zeus
Zeus•5mo ago
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
Takeshi64
Takeshi64OP•5mo ago
Accia
Accia•5mo ago
on the guide it says this
No description
Accia
Accia•5mo ago
that's why i tought it was enough
Daniel
Daniel•5mo ago
Don't argue with Zeus. Make a separate thread
Mraedis
Mraedis•5mo ago
Please make your own topic @Accia
Accia
Accia•5mo ago
thx i'll try what u suggested
Takeshi64
Takeshi64OP•5mo ago
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
Zeus
Zeus•5mo ago
how is your raid mounted?
Mraedis
Mraedis•5mo ago
Yeah that's all pretty default docker so ignore my previous link
Zeus
Zeus•5mo ago
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 up
Takeshi64
Takeshi64OP•5mo ago
Sure I got an error, "unknown shorthand flag: 'r' in -rm"
Zeus
Zeus•5mo ago
two hyphens before --rm yes?
Takeshi64
Takeshi64OP•5mo ago
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
No description
Takeshi64
Takeshi64OP•5mo ago
Oops haha
Takeshi64
Takeshi64OP•5mo ago
Ran it, it didn't create a test_123 folder or any files
No description
Zeus
Zeus•5mo ago
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
Takeshi64
Takeshi64OP•5mo ago
Alright, thanks for the info and for looking into it Do you think it'd make any sense to try some other containerization option
Zeus
Zeus•5mo ago
I highly doubt it if you're having issues with docker the other ones are just more complex
Immich
Immich•5mo ago
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
Takeshi64
Takeshi64OP•4mo ago
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
Zeus
Zeus•4mo ago
Wow. You were docker desktop on Linux 😭 I guess our fault for not checking that. Docker desktop sucks lol
Takeshi64
Takeshi64OP•4mo ago
Yeah I'm not really at home on Linux yet Thankfully not too hard to sort out though

Did you find this page helpful?