matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.67k stars 664 forks source link

No DB connection from docker #2988

Open fierg opened 1 year ago

fierg commented 1 year ago

Background information

Description

Steps to reproduce

The database is up and running, i can access it via pgAdmin, but the dendrite container cannot.

MichScha commented 1 year ago

Having the same error-message with basic setup according to documentation. When using the "standard" password itsasecret I get another error message time="2023-03-10T13:52:34.927499897Z" level=panic msg="Failed to set up global database connections" error="failed to find maximum connections: dial tcp xx.xx.xx.xx:5432: connect: connection timed out"

MichScha commented 1 year ago

Solution is in PR provided and seems to work. Error has gone and server starts. https://github.com/matrix-org/dendrite/pull/2953

2547409617 commented 8 months ago

I encountered the same problem. I change max_open_conns to 90 according to #2953, the error is the same.