Problem with folder check / permissions
Hi.
I've installed Immich for the first time. It fired up fine with the default config, but when I changed the UPLOAD_LOCATION the immich_server keeps restarting.
The logs indicate the following error:
microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."
Now, I could create the dirs and touch the files manually, or disable the folder check, but I would rather like to avoid that and understand/fix the root cause.
.env conf looks like this:
UPLOAD_LOCATION=/media/8000/backup/Pictures/2003
The folder has the following permissions:
drwxrwxr-x 12 root docker 4096 Nov 25 13:19 2003
Other info:
- Immich v1.121.0
- Docker version 24.0.2, build cb74dfc
- Ubuntu 22.04.5 LTS
Any suggestions? Thanks in advance!
14 Replies
:wave: Hey @andstr,
Thanks for reaching out to us. Please follow the recommended actions below; 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 compose ps
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
Checklist
1. :blue_square: I have verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: I have read applicable release notes.
3. :blue_square: I have reviewed the FAQs for known issues.
4. :blue_square: I have reviewed Github for known issues.
5. :blue_square: I have tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files, making sure to use code formatting.
7. :blue_square: I have 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)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.You can't change the upload location after first run without moving the upload location from the original spot as well
^ this
you need to either move the files or start completely fresh by deleting the postgres data
Ok. So I:
- Took down the container, pruned the volumes, removed the .env, cloned the example .env, changed the UPLOAD_DIRECTORY, rebuild and restarted. Still got same error:
immich_server | [Nest] 7 - 11/25/2024, 2:09:08 PM ERROR [Microservices:StorageService] Failed to read upload/encoded-video/.immich: Error: ENOENT: no such file or directory, open 'upload/encoded-video/.immich'
immich_server | microservices worker error: Error: Failed to read "<UPLOAD_LOCATION>/encoded-video/.immich - Please see https://immich.app/docs/administration/system-integrity#folder-checks for more information."
Any ideas?
But did you delete the postgres data?
Dear support team. I am trying to install Immich with docker hosted on Asustor NAS. Installation was sucesssfull, but immich-server container is not healthy. I have such error: Error: ENOENT: no such file or directory, open '/usr/src/app/dist/main'
at Object.readFileSync (node:fs:441:20)
at getMaybeCachedSource (node:internal/modules/cjs/loader:1569:18)
at Object..js (node:internal/modules/cjs/loader:1650:19)
at Module.load (node:internal/modules/cjs/loader:1318:32)
at Function._load (node:internal/modules/cjs/loader:1128:12)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)
at node:internal/main/run_main_module:36:49 {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/usr/src/app/dist/main'
https://github.com/Haxxnet/Compose-Examples/blob/main/examples/immich/docker-compose.yml and this yaml was used to startup docker images.
@denis.antonenko please don't hijack an existing thread
Sorry, Ok. I am newbe here.
I pruned all the container volumes including immich_postgres, I thought that would purge the entire postgres db?
If you've just done a new Immich install then you should not have an immich_postgres volume
Unless you have it set up as a volume, it won't delete the DB data
I followed the exact steps here: https://immich.app/docs/install/docker-compose/
It created four volumes.

Those are not volumes those are containers
Right, I confused the concepts. Seems like the only related volume is "immich_model-cache". So maybe i didn't actually remove the containers then, and therefore not got got rid of the previous install. I will redo the process and try again. Thanks @schuhbacca
Now it ran fine again. Thanks for the support everyone!