© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3mo ago•
30 replies
CausticFartz

issue with postgres?

🗄️Server
Hey, im facing this issue.
Initializing Immich v2.2.3

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7  - 11/15/2025, 2:58:50 PM     LOG [Microservices:WebsocketRepository] Initialized websocket server

[Nest] 35  - 11/15/2025, 2:58:50 PM     LOG [Api:WebsocketRepository] Initialized websocket server

Error: getaddrinfo ENOTFOUND database

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

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'database'

}

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

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

microservices worker exited with code 1

Killing api process
Initializing Immich v2.2.3

Detected CPU Cores: 16

Starting api worker

Starting microservices worker

[Nest] 7  - 11/15/2025, 2:58:50 PM     LOG [Microservices:WebsocketRepository] Initialized websocket server

[Nest] 35  - 11/15/2025, 2:58:50 PM     LOG [Api:WebsocketRepository] Initialized websocket server

Error: getaddrinfo ENOTFOUND database

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

  errno: -3008,

  code: 'ENOTFOUND',

  syscall: 'getaddrinfo',

  hostname: 'database'

}

microservices worker error: Error: getaddrinfo ENOTFOUND database, stack: Error: getaddrinfo ENOTFOUND database

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

microservices worker exited with code 1

Killing api process

with the immich_server and

fixing permissions on existing directory /var/lib/postgresql/data ... ok

creating subdirectories ... ok

selecting dynamic shared memory implementation ... posix

selecting default max_connections ... 20

selecting default shared_buffers ... 400kB

selecting default time zone ... Etc/UTC

creating configuration files ... ok

2025-11-15 09:29:15.368 UTC [88] FATAL:  data directory "/var/lib/postgresql/data" has invalid permissions

2025-11-15 09:29:15.368 UTC [88] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).

child process exited with exit code 1

initdb: removing contents of data directory "/var/lib/postgresql/data"

running bootstrap script ... 

Using SSD storage

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.
fixing permissions on existing directory /var/lib/postgresql/data ... ok

creating subdirectories ... ok

selecting dynamic shared memory implementation ... posix

selecting default max_connections ... 20

selecting default shared_buffers ... 400kB

selecting default time zone ... Etc/UTC

creating configuration files ... ok

2025-11-15 09:29:15.368 UTC [88] FATAL:  data directory "/var/lib/postgresql/data" has invalid permissions

2025-11-15 09:29:15.368 UTC [88] DETAIL:  Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).

child process exited with exit code 1

initdb: removing contents of data directory "/var/lib/postgresql/data"

running bootstrap script ... 

Using SSD storage

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.


with the postgres container.
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

postgres issue
ImmichIImmich / help-desk-support
7mo ago
postgres related issue?
ImmichIImmich / help-desk-support
12mo ago
immich Postgres Issue
ImmichIImmich / help-desk-support
13mo ago
Possible postgres issue after update
ImmichIImmich / help-desk-support
3mo ago