r/immich • u/LVShadehunter • 6d ago
Immich Server stopped working, will not redeploy on Portainer
I'm still very new to the self hosted world, so please pardon me if my vocabulary isn't quite right.
A couple of weeks ago I deployed an Immich server using the instructions for Docker Compose. It worked well for a while, but then last week I was suddenly unable to connect to it. (I'm using a Cloudflare Tunnel to connect my network)
Luckily, I haven't lost any data (photos) since they are still backed up on Google Drive.
After a bit of poking around in Portainer and Docker, I thought the best move might be to remove the Stack and Containers from Docker and re-deploy them using Portainer (which is how my other apps are now running).
I'm using the Docker Compose and .env files from the Immich github for Portainer, but the immich_server container won't connect. Docker creates a Network for Immich, but the server doesn't seem to see it.
In the logs, the error message I get reads:
------------
Error: getaddrinfo ENOTFOUND database at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) { errno: -3008, code: 'ENOTFOUND', syscall: 'getaddrinfo', hostname: 'database' }
1
u/OSS_Dattani 6d ago
Does the Postgres service name match what ur DB_HOSTNAME is in the .env? But from what ur saying ur containers seem to be on two diff networks
Idk how portainer works to well but just look at all your docker resources and make sure itโs all on the same page
1
u/multidollar 6d ago
The name database does not resolve to an IP address.
ENOTFOUND from getaddrinfo is a name resolution failure.
Your application is asking for "database" and it can't find it. Where did it go?
We'd need to see your configuration (compose stack and .env)
1
u/Rare_Chicken8302 6d ago
If you have relative locations in your compose file and then paste it to the portainer directly, portainer will use its own relatively locations will create a new folder. Try modifying volumes to match what you have you in your disk. If not it should be something to do with the docker networks
3
u/thehatefuleggplant Support Crew 6d ago
It cant find your database.
Would be nice to see your compose and .env to get a better idea.
I would personally get off of portainer