© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immich•3y ago•
35 replies
Wutru

Unable to connect to the database

Hi, I am quite new to Docker and I have trouble setting it up.

When I run docker compose up -d the web interface doesn't start.

When I run docker logs immich_server I see the following error:

[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [NestFactory] Starting Nest application...
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] TypeOrmModule dependencies initialized +69ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] DownloadModule dependencies initialized +1ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] DiscoveryModule dependencies initialized +1ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] ConfigModule dependencies initialized +7ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] ScheduleModule dependencies initialized +0ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] BullModule dependencies initialized +0ms
[Nest] 1 - 03/05/2023, 7:03:56 PM LOG [InstanceLoader] BullModule dependencies initialized +1ms
[Nest] 1 - 03/05/2023, 7:04:06 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (1)...
Error: Connection terminated due to connection timeout
at Connection.<anonymous> (/usr/src/app/node_modules/pg/lib/client.js:132:73)
at Object.onceWrapper (node:events:641:28)
at Connection.emit (node:events:527:28)
at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:57:12)
at Socket.emit (node:events:527:28)
at TCP.<anonymous> (node:net:709:12)
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

Unable to connect to database
ImmichIImmich / help-desk-support
14mo ago
ERROR [TypeOrmModule] Unable to connect to the database.
ImmichIImmich / help-desk-support
12mo ago
ERROR [TypeOrmModule] Unable to connect to the database.
ImmichIImmich / help-desk-support
3y ago
ERROR [TypeOrmModule] Unable to connect to the database
ImmichIImmich / help-desk-support
3y ago