Don't use right UPLOAD_LOCATION
When i start my container, i have this error with the immich server :
ERROR [Microservices:StorageService] Failed to read (/data/encoded-video/.immich): Error: ENOENT: no such file or directory, open '/data/encoded-video/.immich'
it tells me it cannot read /data which is normal because it doesn't exist, the problem is that my UPLOAD_LOCATION variable is set to /mnt/immich_storage, i thought it was permission issues so i tried chmod 777 on /mnt/immich_storage but it didn't solve the problem
this is my .env file :
i didn't change anything in the my docker-compose.yml file
29 Replies
:wave: Hey @Cipix,
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. :blue_square: 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.my file system :

Successfully submitted, a tag has been added to inform contributors. :white_check_mark:
It means the internal
/data
, which for you is located at /mnt/immich_storage
So it can't read /mnt/immich_storage/encoded-video/.immich
This means that either your folder is not mounted to the container or you've (re)moved that folderWell apparently it didn't create the folder the first time i started immich
Can it be because i updated from 1.136 to latest update ?
how can i mount /mnt/immich_storage to the immich container ?
YOu're already doing that here:
- ${UPLOAD_LOCATION}:/data
The question is did it work 🙂
what files are in /mnt/immich_storage
?
files/foldersOnly a lost+found folder
Nothing else
that means it's not mounted and you should try
docker compose up -d
againOkay i'll do it again
Do you even have any files in immich yet?
no because it won't start
when i do docker compose up -d i have this in the logs :
should i reinstall it again ?
No, wipe everything inside of
./postgres
wherever it is, and then compose up
(If you didn't start immich yet)it worked
and it's now using the good disk
this upgrade was weird
The issue was you either changed UPLOAD_LOCATION after starting once, or
/mnt/immichwhatever
wasn't mounted when the stack startedif i had uploaded photos when i was using 1.136, maybe it could have never crashed
because i installed it, it worked but asked me to update to latest version, i did it following this doc https://immich.app/docs/install/upgrading/
i did a docker compose up -d again and it crashed
hope it won't with next updates
thank you so much for your help
Let's not get hasty here 👀 I thought you said you didn't upload any pictures yet
i didn't

But you did on 1.136 then?
no
Ah , upgraded a fresh install
yep
also do you know why the fresh install didn't pull the 1.138 version and took the 1.136 ?
It's good you had this happen actually because if you started uploading when the mount failed like this you would've wiped everything with an upgrade
you need to
docker compose pull
before it pulls new imagesi don't really understand why the mount failed though
oh okay
I see 1.138 though?
let me explain what happened chronologically
1. installed immich with this doc : https://immich.app/docs/install/docker-compose (i copypasted the commands)
2. i went to the web ui and it told me i wasn't up to date
3. i upgraded immich follow this doc https://immich.app/docs/install/upgrading (again copypasted)
4. restarted immich : can't find /mnt/immich_storage
5. deleted postgres folder
6. i'm greeted again with the welcome ui asking for mail, username etc
7. it works
and now the funny part : i'll try to put it behind a traefik reverse proxy 🙃
lots of examples of that around here
#Exposing Immich to the internet
nice thank you