ImmichI
Immich6mo ago
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 container is in a crash loop. The logs show a DNS error:
microservices worker error: Error: getaddrinfo EAI_AGAIN immich-postgres


What I've Done:
  1. Initially, my
    .env
    file was missing DB_HOSTNAME, which caused an error for the hostname database.
  2. I fixed this by adding `DB_HOSTNAME=immich-postgres` to my `.env` file. My config now includes:```dotenv

    .env file

    UPLOAD_LOCATION=./libraryDB_DATA_LOCATION=./postgresDB_HOSTNAME=immich-postgresDB_PASSWORD=[REDACTED]DB_USERNAME=postgresDB_DATABASE_NAME=immich```
  3. I restarted everything cleanly with `sudo docker compose down` and `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
Was this page helpful?