I keep getting this error in Docker while trying to get Immich set up:
Error: getaddrinfo ENOTFOUND database
at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:122:26) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'database'
}
Node.js v24.14.1
Initializing Immich v3.1.0
Detected CPU Cores: 32
(node:7) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use \node –trace-warnings …` to show where the warning was created)`
database
Using SSD storage
chmod: changing permissions of '/var/lib/postgresql/data': Operation not permitted
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".
Data page checksums are enabled.
initdb: error: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted
fixing permissions on existing directory /var/lib/postgresql/data ...
immich-server
node:internal/process/promises:394
triggerUncaughtException(err, true /* fromPromise */);
^
Source: r/immich · by /u/franharrington