immich_server unable to connect to the database #5422

Closed
opened 2026-02-05 11:26:48 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @Pritski on GitHub (Feb 18, 2025).

Discussed in https://github.com/immich-app/immich/discussions/16192

Originally posted by Pritski February 18, 2025
Hi - I am trying to install immich for the first time. I have tried via CLI but could not get the web UI to respond on
http://machine-ip-address:2283
as per the FAQ at https://immich.app/docs/install/post-install

I saw others had better success using Portainer CE so I have installed it in a container and followed the guide at
https://immich.app/docs/install/portainer

I have attached the docker compose file i used - which is the default version from github, just with the .env files renamed to stack.env

I have the following stack.env:
UPLOAD_LOCATION=./library
DB_DATA_LOCATION=./postgres
TZ=Australia/Brisbane
IMMICH_VERSION=release
DB_PASSWORD=postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

I have tried rebuilding the stack using random letters for the DB_PASSWORD, as well as setting my preferred UPLOAD_LOCATION which didnt work so I have gone back to the default setting to eliminate any possible source of errors, but it still doesnt work.

The immich_server logs are attached - showing the failure to connect. I cant connect to the WebUI on port 2283 or the container network or the container IP addresses. The database container logs look ok to me as far as I can tell?

Any help would be most appreciated

Device is QNAP running QTS 5.2.3.3006 8GB RAM
Portainer CE 2.21.5
immich 1.126.1

docker compose.txt
_immich_postgres_logs.txt
_immich_server_logs.txt

Originally created by @Pritski on GitHub (Feb 18, 2025). ### Discussed in https://github.com/immich-app/immich/discussions/16192 <div type='discussions-op-text'> <sup>Originally posted by **Pritski** February 18, 2025</sup> Hi - I am trying to install immich for the first time. I have tried via CLI but could not get the web UI to respond on http://machine-ip-address:2283 as per the FAQ at https://immich.app/docs/install/post-install I saw others had better success using Portainer CE so I have installed it in a container and followed the guide at https://immich.app/docs/install/portainer I have attached the docker compose file i used - which is the default version from github, just with the .env files renamed to stack.env I have the following stack.env: UPLOAD_LOCATION=./library DB_DATA_LOCATION=./postgres TZ=Australia/Brisbane IMMICH_VERSION=release DB_PASSWORD=postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich I have tried rebuilding the stack using random letters for the DB_PASSWORD, as well as setting my preferred UPLOAD_LOCATION which didnt work so I have gone back to the default setting to eliminate any possible source of errors, but it still doesnt work. The immich_server logs are attached - showing the failure to connect. I cant connect to the WebUI on port 2283 or the container network or the container IP addresses. The database container logs look ok to me as far as I can tell? Any help would be most appreciated Device is QNAP running QTS 5.2.3.3006 8GB RAM Portainer CE 2.21.5 immich 1.126.1 [docker compose.txt](https://github.com/user-attachments/files/18845142/docker.compose.txt) [_immich_postgres_logs.txt](https://github.com/user-attachments/files/18845143/_immich_postgres_logs.txt) [_immich_server_logs.txt](https://github.com/user-attachments/files/18845144/_immich_server_logs.txt) </div>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5422