PG::ConnectionBad while deploying

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)

Hi… Some Postgres machines were crashing due to a faulty update earlier; perhaps you could retry now and see if your own problem persists?

Added postgres, rails

Hi :slight_smile: Yep it works now, I didn’t do much, so I guess the cause was the one you mentioned. Thanks a lot

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.