element-hq / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://element-hq.github.io/dendrite/
GNU Affero General Public License v3.0
10 stars 3 forks source link

No DB connection from docker #2988

Open matrixbot opened 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @fierg at https://github.com/matrix-org/dendrite/issues/2988.

Background information

Description

Steps to reproduce

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

matrixbot commented 2 weeks ago

This comment was originally posted by @MichScha at https://github.com/matrix-org/dendrite/issues/2988#issuecomment-1463798416.

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"

matrixbot commented 2 weeks ago

This comment was originally posted by @MichScha at https://github.com/matrix-org/dendrite/issues/2988#issuecomment-1464331913.

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

matrixbot commented 2 weeks ago

This comment was originally posted by @2547409617 at https://github.com/matrix-org/dendrite/issues/2988#issuecomment-1879978635.

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