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-fa7c78455231Solution:Jump to 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...6 Replies
Project ID:
58cd7410-04d6-4c6e-a74d-fa7c78455231
Ok, it's connecting atm.. But this has been happening all the time - I really need to get this resolved
please connect to the database via the private network
ty again brody
no problem!
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