DrPhilOrpheus
DrPhilOrpheus
IImmich
Created by DrPhilOrpheus on 9/22/2023 in #help-desk-support
Microservices not connecting to database
Hello there, with the recent updates i went to migrate and everything but the microservices seems to be working.
Docker compose is attached and the error in the microservices log is:
[Nest] 6 - 09/21/2023, 9:50:03 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...

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:628:28)

at Connection.emit (node:events:514:28)

at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:63:12)

at Socket.emit (node:events:514:28)

at TCP.<anonymous> (node:net:323:12)

Error: getaddrinfo ENOTFOUND immich_redis

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {

errno: -3008,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'immich_redis'

}

Error: getaddrinfo ENOTFOUND immich_redis

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {

errno: -3008,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'immich_redis'

}
[Nest] 6 - 09/21/2023, 9:50:03 PM ERROR [TypeOrmModule] Unable to connect to the database. Retrying (4)...

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:628:28)

at Connection.emit (node:events:514:28)

at Socket.<anonymous> (/usr/src/app/node_modules/pg/lib/connection.js:63:12)

at Socket.emit (node:events:514:28)

at TCP.<anonymous> (node:net:323:12)

Error: getaddrinfo ENOTFOUND immich_redis

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {

errno: -3008,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'immich_redis'

}

Error: getaddrinfo ENOTFOUND immich_redis

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:108:26) {

errno: -3008,

code: 'ENOTFOUND',

syscall: 'getaddrinfo',

hostname: 'immich_redis'

}
Any help would be appreciated.
14 replies