ImmichI
Immich•5mo ago
Tribux

tried to do postgress dump and something went wrong

Hi everyone!

I tried to do postgress dump and something went wrong. I stopped all containers in immich, but command didn't work so I started only postgress container and did dump with following command:
docker exec -t immich_postgres pg_dumpall --clean --if-exists --username=postgres | gzip > "/media/cavecenter/easystore/DataBaseCopyImmich_AUG_2025/dump.sql.gz"
Copy is on different drive than the actual immich photos.
after that I tried to start all immich services but getting this:

Error: getaddrinfo ENOTFOUND database
immich_server | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {
immich_server | errno: -3008,
immich_server | code: 'ENOTFOUND',
immich_server | syscall: 'getaddrinfo',
immich_server | hostname: 'database'
immich_server | }
immich_server | microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database
immich_server | at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26)
immich_server | microservices worker exited with code 1
immich_server | Killing api process

immich server and postgress keep restarting.
I have not changed anything inside the .env or docker_compose.yml

Could you advice how I can fix it? 😄
Was this page helpful?