Hi there, I come across this issue while trying to deploy my first Rails app on fly. Had to fix a few dependencies issues first… then when everything was finally installed, it said the connection to postgres is not valid… thanks very much for any help you may give.
Machine created and started in 11.002s
listening on [fdaa:6:e1e4:a7b:272:b325:1f58:2]:22 (DNS: [fdaa::3]:53)
bin/rails aborted!
ActiveRecord::DatabaseConnectionError: There is an issue connecting with your hostname: XXX-db.flycast. (ActiveRecord::DatabaseConnectionError)
Please check your database configuration and ensure there is a valid connection to your database.
/rails/bin/rails:4:in `<main>'
Caused by:
PG::ConnectionBad: could not translate host name "XXX-db.flycast" to address: Name or service not known (PG::ConnectionBad)