R
Railway6mo ago
Arnór

Can't reach database server at monorail..etc

This has been happening intermittently - but right now my deployed service, which was working a moment ago can't connect to the postgres database. The connections are failing with: Can't reach database server at monorail.proxy.rlwy.net:10861\n\nPlease make sure your database server is running at monorail.proxy.rlwy.net:10861. This is not really related to the other issue I have open, related to connecting to the db during the build process, so please do not conflate the two This process was serving data 5 minutes ago, and now I can't connect to the db, but the postgres service is still being shown as up and running in the railway dashboard Service ID: 58cd7410-04d6-4c6e-a74d-fa7c78455231
Solution:
This was resolved for now by connecting to postgres through the private network instead of the public one (using ${{Postgres.DATABASE_PRIVATE_URL}} as the database url to connect to) so far so good...
Jump to solution
6 Replies
Percy
Percy6mo ago
Project ID: 58cd7410-04d6-4c6e-a74d-fa7c78455231
Arnór
ArnórOP6mo ago
Ok, it's connecting atm.. But this has been happening all the time - I really need to get this resolved
Brody
Brody6mo ago
please connect to the database via the private network
Arnór
ArnórOP6mo ago
ty again brody
Brody
Brody6mo ago
no problem!
Solution
Arnór
Arnór6mo ago
This was resolved for now by connecting to postgres through the private network instead of the public one (using ${{Postgres.DATABASE_PRIVATE_URL}} as the database url to connect to) so far so good
Want results from more Discord servers?
Add your server