My production database cluster is completely broken after running fly postgres backup enable.
App: sprytna-cards-db
Region: ams
Issue:
Ran fly postgres backup enable on unmanaged postgres
Now cluster cannot register primary: “failed to re-register existing primary: failed to
register primary: exit status 1”
All connections show pg_is_in_recovery() = true (all replicas)
Production app cannot write data for 2+ hours
Status shows:
1 primary (17814501c41208)
2 replicas (784961b2223698, 2871339a429e08)
But primary cannot register and all connections route to read replicas.
This appears to be a bug where backup enable command is not compatible with unmanaged postgres clusters and should have never been allowed to run via fly cli.