Hi,
My postgres database stopped working suddenly and I can’t access it from any of my apps.
I get the “Can’t reach database server at top2.nearest.of.***.internal:5432”
If I run the “fly checks list -a ” command I get this error: HTTP GET http://IPADDRESS:5500/flycheck/pg: 500 Internal Server Error Output: "failed to connect to proxy: context deadline exceeded"
@piotrkulpinski if you need high availability, you should make sure you’re running 2 instances of your app and two Postgres VMs (the default, unless you choose “development” at setup time).
Apps and databases with a single instance will not continue to function when we have issues that affect one of our physical hosts.
Hello we recently ran into this issue. We’ve tried upscaling and downscaling as well. Our site has been down for a few hours now, thankfully it’s just the sandbox environment. I hope someone from fly.io can look into this
It looks like you have 3 volumes and your scale count is set to 2. When you last scaled, Nomad chose 2 volumes at random to allocate and the one that wasn’t chosen happened to be your leader.
That being said, if you scale your app up to 3 it should address your issue.
I’m having this issue again with a Postgres database on Miami. Is there something I can do?
The error : failed to connect to local node: context deadline exceeded.
I have another Postgres database in Amsterdam that is working fine.
Since the node is unavailable, it’s not possible restart the Postgres application. If I run fly pg restart I get the error : Error: no active leader found.