Postgres DB errors

We have a postgres application in Fly inside of which we had two DBs - main and postgres. We deleted DB postgres (we’ve done this step before as well), and since have been seeing errors:

2022-10-05T00:40:48.028 app[0aa1eb8d] ord [info] keeper | 2022-10-05 00:40:48.027 UTC [963] FATAL: database “postgres” does not exist

2022-10-05T00:40:48.028 app[0aa1eb8d] ord [info] keeper | 2022-10-05T00:40:48.028Z ERROR cmd/keeper.go:719 cannot get configured pg parameters {“error”: “pq: database "postgres" does not exist”}

We’ve tried restarting the DB, scaling to 0 and back to 1 (based on another error “no eligible masters”) but no luck. Thoughts, advise.

The postgres database is used internally by Postgres to store auth and other system level information. I believe you’ll need to restore your database from a backup to get going, deleting the postgres database effectively makes the server inaccessible.