Trouble setting up immich on home NAS running OMV - "no such file or directory"
Hey all,
I've been having a lot of trouble setting up immich on my home NAS/server. I am pretty new to the homelab space, so I would appreciate any help on this.
I have installed immich through docker compose on OMV 7.7.20. Now my Immich_server container sees that the .immich files and folder structure doesn't exist, and gives an error. I am hoping for a way to force the process to create the directories.
I ran into quite a few issues, but I believe the only modification I have at this point is the below:
- I was getting the error "microservices worker error: PostgresError: no pg_hba.conf entry for host "172.19.0.5", user "postgres", database "immich", no encryption, "
- to solve this, I ended up modifying my pg_hba.conf file to my subnet as per portainer "172.19.0.1/16 vs the 127.0.0.1/32 that was in the file, and changing it from trusted to md5.
- I was thinking this could be a permission issue, so for the sake of just getting it working, the parent Docker/ folder where all the files should be should have read/write/execute permissions for all (as per the OMV GUI).
I've put my compose file and env file below, along with a snip from the log. The compose and env should't have any real changes from the template file (besides folder paths).
https://pastebin.com/UfU6yaAN
Pastebin
immich compose files - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
16 Replies
:wave: Hey @something,
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. :blue_square: verified I'm on the latest release(note that mobile app releases may take some time).
2. :blue_square: read applicable release notes.
3. :blue_square: reviewed the FAQs for known issues.
4. :blue_square: reviewed Github for known issues.
5. :blue_square: tried accessing Immich via local ip (without a custom reverse proxy).
6. :blue_square: uploaded the relevant information (see below).
7. :blue_square: 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.You changed your
UPLOAD_LOCATION after first startup
there is no need to play with pg_hba, something went pretty wrong
You should do docker compose down and delete everything from /srv/dev-disk-by-uuid-845aaa33-18a0-4b83-b9da-3ab4f291409b/Docker/appdata/immich, then set the compose and env how you want before first startup
this will reset the installHey Zeus - I just tried the docker compose down, deleting that folder (with rm -r), and the doing a docker compose up -d. It looks like I am back to getting the pg_hba error. I have tried also using the various prune buttons in OMV and reinstalling before, but i get the same error upon compose up
reset everything again, once it's all deleted please show the contents of that folder, as well as the current compose, .env, and
docker ps -a output
while you are resetting, run docker compose down -v and docker image prune -a as wellThanks Zeus. I had already run the prune command, so I can't give you the compose down output. i've completely deleted the immich folder:
ls -a appdata/ -> . .. global.env portainer
I am re-downloading the compose and env file now, and will send the new files shortly. It shouldn't be any different from the ones I gave earlier though.what is portainer and global.env ?
also into what folder were you putting the docker-compose and env files?
I was using the openmediavault GUI to input the compose and env files. I believe it is set up to put them in appdata/immich. global.env is blank - I am not sure if it was created by portainer or the omv docker compose.
I think that you should use raw docker compose using the CLI and a tex t editor
also place all this into a fresh folder without the global or whatever portainer folder is
the portainer folder should be the portainer files set up through docker compose as well.
ls -a appdata/portainer/
. .. compose.override.yml portainer.env portainer.yml
Okay, i'll do it through CLI this time.Okay, I am about to run the docker compose with the below files: https://pastebin.com/Nnwsu0CQ
Pastebin
Folder setup:/srv/dev-disk-by-uuid-845aaa33-18a0-4b83-b9da-3ab4f291...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
that looks good. what is the filesystem of this exeternal disk?
btrfs - if that is what you are asking
it is an nvme
Bad news- I am getting the same error pg_hba error in the log:. In ine immich_postgres log:
2025-11-09 22:14:35.438 UTC [66] FATAL: no pg_hba.conf entry for host "172.19.0.5", user "postgres", database "immich", no encryption
In Immich_server: microservices worker error: PostgresError: no pg_hba.conf entry for host "172.19.0.5", user "postgres", database "immich", no encryption, stack: PostgresError: no pg_hba.conf entry for host "172.19.0.5", user "postgres", database "immich", no encryption at ErrorResponse (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:794:26) at handle (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:480:6) at Socket.data (/usr/src/app/server/node_modules/.pnpm/postgres@3.4.7/node_modules/postgres/cjs/src/connection.js:315:9) at Socket.emit (node:events:518:28) at addChunk (node:internal/streams/readable:561:12) at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) at Readable.push (node:internal/streams/readable:392:5) at TCP.onStreamRead (node:internal/stream_base_commons:189:23) microservices worker exited with code 1 Killing api process
Must be something weird with how your docker install or OS is allocating IPs
I guess you can adjust the pg_hba again. The other error (file not found) has no relation to this one
I'm getting the same error unfortunately - in the immich_server log:
please post
docker inspect immich_server and tree /srv/dev-disk-by-uuid-845aaa33-18a0-4b83-b9da-3ab4f291409b/Docker/appdata/immich-app