immich_server stuck in restart loop

Hi! I'm trying to get my immich server to run for the first time, but my immich_server and database containers keep restarting every few seconds.

============================

EDIT:


These commands fixed it for me
docker compose down immich-server
docker image prune -a
docker compose pull
docker compose up -d

I believe I attempted to prune while troubleshooting something else earlier, but I forgot to include the -a flag, which caused things to get wonky. Doing a full, proper uninstall and reinstall with the above commands got me back on the right track.
============================

Any pointers? I followed the Quick Start Guide I'm just using the default .env file and docker-compose.yml. Running on MacOS silicon.

Maybe some helpful context, I actually set up a working immich server on this machine a few months ago (v1.143.0). I wanted to upgrade to v2 recently, but ran into issues that I couldn't figure out. I have all my photos still elsewhere, so I decided to try deleting all my immich stuff and reinstalling it fresh. Now this is happening!

For future searchability, here's the main error I see:
Missing history for endpoint: Retrieve auth status

(node:6) ExperimentalWarning: WASI is an experimental feature and might change at any time

(Use `node --trace-warnings ...` to show where the warning was created)

node:internal/process/promises:394

    triggerUncaughtException(err, true /* fromPromise */);

    ^


Error: getaddrinfo ENOTFOUND database

    at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'database'

}


Thanks all!
Screenshot_2025-12-19_at_10.40.46_PM.png
Was this page helpful?