I just deployed a new app, a simple web app that uses $DATABASE_URL
to connect to PostgreSQL.
However, the app fails to start up. In my debug process I found that the web server does not start because it cannot connect to the database (which is not hosted by Fly).
- Using the same credentials I can connect to that database from
- my personal computer
- a Paas similar to Fly
- The database server has no restriction based on the incoming IP address
- I
apt
installedpsql
andping
in my Fly machine (viafly ssh console
) and it looks like it cannot “see” the PostgreSQL’s server IP address:psql
hangs indefinitely (no error)ping -c 4
to the IP gives4 packets transmitted, 0 received, 100% packet loss, time 3054ms
- The URI credentials uses IPv4 (not sure if relevant), like
postgres://user:passwor@XXX.XXX.XXX.XXX/name
nc -n -vz <IP ADDRESS>
hangs without an error
Any ideas about what can be going on or ideas to try?
Thank you