Cannot access web API after moving thumbs folder
I have custom locations for my immich uploads. I was using my 3.6TB HDD to store all of my photos, and my 1TB NVME drive to store my thumbs so they would load faster. Well I needed to remove the NVME to use for another machine. I moved my thumbs folder to my HDD and changed the docker-compose.yml to match the directory that it moved to. I restarted my container and now I can't access the web API at all.
52 Replies
:wave: Hey @Bright,
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:locations from my docker-compose.yml
my .env file---
docker logs---
My Disks---
the issue here is with your database location
also, your mounts are... not good. lots of them are very weirdly nested
also you've edited the wrong side of each mount point
please note that it says "do not edit the next line", but you did?
I had it working just fine with this setup. Only difference is that I had a third drive mounted with a directory on it and the thums folder on that drive. I just moved the file to the SDB and changed the file path to match.
you have to edit the next line.
no, you don't? in the link I sent you it shows you how to use a custom location for the upload_location
you don't have any volume mounted to /usr/src/app/upload inside the container, which is where all the files get stored
It was working just fine for a month. Literally the only change I made was moved the thumbs file from the nvme to the HDD and changed the file path in the docker-compose.yml only for the THUMB_LOCATION.
given the limited details you have provided, including not the full compose and env, and no details of the actual change you made, we can't really help you. but please know that if you go down this path basically your entire compose and volumes have to be ripped out and redone
if you aren't interested in that, it would be better to not waste either of our times
I went through setting up the customer file locations with another person and it was working great.
I don't understand how you see it as limited details. I gave you all of my logs and the parts of my docker-compose and my .env that were changed from the original file. I'm willing to give you whatever info you need and do whatever I need to get it working.
I don't understand where you get that I'm not willing to... if I'm not giving you the information you need, it is out of ignorance and not malice.
we need the full contents of all those files, as well sa the exact changes you made before and after
also, I'm suspicious that you had changes from before that you had not run
docker compose up -d
, so it was running without some of those changes. is that possible?I'm trying to figure out how to get the enire contents of the docker-compose.yml
Here is my .env I just removed my password from this paste.
why does the earlier file say this?
UPLOAD_LOCATION=/home/void/data/immich/
you said you only changed the thumbsSo I converted my HDD to a GPT drive and resized it to the max partition size before pulling out my NVME. I didnt move the thumbs folder at that time. Then I ran docker compose up -d and made sure I didnt break it at that point. After doing that and making sure it still worked, I moved the files over, changed the path, and ran docker compose up -d and then it broke.
I changed after you shared the custom locations link. I thought a might have accidently deleted the end of that line, so I added /immich_files to the end to match what the custom locations link said.
honestly at this point, I'm willing to tear it all down and start back from scratch. I have all my photo backed up on an external so I can reload them back on after I fix it.
I just tried to have it setup so that it stored all off my photos on the sdb disk because its 3.4TB. the disk I'm running my server OS off of is a 128gb SSD.
i need to see the compose first, and I guess some details of what's in each of those mount folders you have made
How do I copy the entire compose file? im using the terminal right now. I'm SSHd into it.
Let me know what else you need. I'm willing to work with you. I'm just not an expert so I might stumble here and there.
Immich stores all of its data in /usr/src/app/upload
this folder is not mounted in your docker container, so immich has no storage at all
in theory it would work until the container restarted or was recreated and all the data was lost
Ok, So what do I need to do to fix it?
Do I just need to delete the container completely and do a new one? I have no issue doing that. I't only takes a few minutes. I just need to have it setup so that all the photos are stored on the HDD.
yeah, that would probably be better if you can re importht pics
I can do that. I just know that when I set it up the recommended way, it only gives me the 128GB of storage on the SSD. I need the 3.4TB of storage on the HDD instead.
do you want anything on the SSD?
no. everything can go on the HDD.
speed isnt really a concern.
what is the path of the hard drive?
auxdrive?
yes.
/home/void/auxdrive
you can start over with a brand new docker-compose and .env in
/home/void/immich_new
the only change you need to make is to change the UPLOAD_LOCATION in the .env
ONLY to UPLOAD_LOCATION=/home/void/auxdrive/immich_new
then run docker compose up -d
I just deleted the immich-app file completely so I'll call the new one the same name: immich-app
Soo here is the stock .env file that pulls.
I would not change the database name or username. you can change the password
and set the timezone as well
please run
docker compose ps -a
before you start the new one, also docker volume ls
let's make sure we don't have old stuff hanging aroundSooo this is the edited .env - ill add a password before I save it.
That look good?
remove the spaces before TZ, it should be flush to the left
ok so immich is still running. we should do a
docker compose down --remove-orphans
then if you have no docker containers running, you should do docker volume prune
to get rid of all those volumesI fixed the time zone.
orphans removed and pruned.
also do
docker volume rm immich_model-cache
it should be empty when you do volume ls
none found.
I assume I just had it all muddied up prior.
should be good for
docker compose up -d
nowSweet!

Thank you!
good I see the 3.6 TB
looks like my old photos are still on there.
in a different folder, right?
just.. unavailble. lol
yes, so you would need to re upload them
ya. I assume so. it was 12.3GB used before I broke it earlier
that's not super big so you can probably re upload with the web ui if yo uwant, or use the command line
then they should populate into the new folder and you can remove the old one
How would I CLI it?
https://immich.app/docs/features/command-line-interface/
something like
docker run -it immich_server immich upload <path>
Awesome. Well thank you for being patient with me. Much appreciated.
good luck! just come back here if you need to change any more paths haha