Error 500 (getaddrinfo ENOTFOUND immich-server) when visiting webpage behind traefik

After setting up immich and replacing the default nginx proxy with traefik, visiting my instance throws me an error 500. I got my config files from the latest release (v1.72.2) .env:
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=Ke64guyHorhxDcCV
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/mnt/hdd/immich
TYPESENSE_API_KEY=q7uQWasKJ3ApvWCE
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_PASSWORD=Ke64guyHorhxDcCV
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
UPLOAD_LOCATION=/mnt/hdd/immich
TYPESENSE_API_KEY=q7uQWasKJ3ApvWCE
PUBLIC_LOGIN_PAGE_MESSAGE=
IMMICH_WEB_URL=http://immich-web:3000
IMMICH_SERVER_URL=http://immich-server:3001
IMMICH_MACHINE_LEARNING_URL=http://immich-machine-learning:3003
Everything else is left commented and on the defaults.
10 Replies
Deleted User
Deleted UserOP2y ago
I'll also provide logs if need be just not sure what i'm supposed to show
Alex Tran
Alex Tran2y ago
I suggest keep immich_proxy and just direct/proxyu traffic to your instance at port 2283
Errorgance
Errorgance2y ago
I was just looking at my Nginx Proxy Manager setup and was going to suggest the same. I had issues when I tried to replace the immich_proxy, but it works like a charm proxying to it.
etnoy
etnoy2y ago
Yes, don't try to replace the immich proxy, instead put your proxy in front of it
Deleted User
Deleted UserOP2y ago
i seem to have fixed it by adding immich_server to the web network i had already added immich_web to, but i'll look into returning immich_proxy for future stability the error i'm getting now is connect ECONNREFUSED 192.168.96.7:3001, which i'm pretty sure is a matter of port forwarding immich_proxy is throwing me an error nginx: [emerg] host not found in upstream "immich-server:3001" in /etc/nginx/conf.d/default.conf:15 after adding every service to the default docker network, i'm just getting a 502 now no errors in the docker logs
Alex Tran
Alex Tran2y ago
You are not exposing port 2283
Alex Tran
Alex Tran2y ago
No description
Deleted User
Deleted UserOP2y ago
i just noticed the compose file i sent is slightly out of date i've already tried adding this:
ports:
- 2283:2283
ports:
- 2283:2283
and also 2283:8080 i've also added things i've found in github discussions like traefik.http.routers.immich.entrypoints=web which just makes it 404 changed port to 8080, i'm pretty stupid closing this thread now

Did you find this page helpful?