© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•7mo ago•
29 replies
N306

Setup Issues, Error:getaddrinfo EAI_AGAIN immich-postgres

Hey everyone, I'm stuck on a fresh install and could use some advice.

My Setup:
* Running on a Proxmox VM (Debian).
* Following the official Quick Start guide.
* Other Docker containers on this VM work fine.

The Problem:
The
immich-server
immich-server
container is in a crash loop. The logs show a DNS error:
microservices worker error: Error: getaddrinfo EAI_AGAIN immich-postgres
microservices worker error: Error: getaddrinfo EAI_AGAIN immich-postgres


What I've Done:
1. Initially, my
.env
.env
file was missing
DB_HOSTNAME
DB_HOSTNAME
, which caused an error for the hostname
database
database
.
2. I fixed this by adding
DB_HOSTNAME=immich-postgres
DB_HOSTNAME=immich-postgres
to my
.env
.env
file. My config now includes:
    # .env file
    UPLOAD_LOCATION=./library
    DB_DATA_LOCATION=./postgres
    
    DB_HOSTNAME=immich-postgres
    DB_PASSWORD=[REDACTED]
    DB_USERNAME=postgres
    DB_DATABASE_NAME=immich
    # .env file
    UPLOAD_LOCATION=./library
    DB_DATA_LOCATION=./postgres
    
    DB_HOSTNAME=immich-postgres
    DB_PASSWORD=[REDACTED]
    DB_USERNAME=postgres
    DB_DATABASE_NAME=immich

3. I restarted everything cleanly with
sudo docker compose down
sudo docker compose down
and
sudo docker compose up -d
sudo docker compose up -d
.

Even with the correct hostname, the internal DNS lookup still fails. It seems like a networking issue specific to this Docker stack.

Has anyone run into this before, especially on Proxmox? Any ideas what to check next? Thanks
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

getaddrinfo EAI_AGAIN immich-server (EAI_AGAIN)
ImmichIImmich / help-desk-support
2y ago
libmimalloc - path not found /Error: getaddrinfo EAI_AGAIN database
ImmichIImmich / help-desk-support
5mo ago
getaddrinfo ENOTFOUND immich-server
ImmichIImmich / help-desk-support
12mo ago
getaddrinfo ENOTFOUND immich-server
ImmichIImmich / help-desk-support
3y ago