ebono
February 22, 2023, 10:43am
1
Hello. Our postgres instance is “suspended”.
We are trying to restart it, but I get an error:
fly apps restart <postgres-instance>
Error postgres apps should use `fly pg restart` instead
And if I run:
fly pg restart <postgres-instance>
Error app <postgres> is not a postgres app
What can we do?
jerome
February 22, 2023, 12:17pm
2
Try fly machine
commands to restart the underlying machines if this is a machines-based postgres cluster. If it’s an app-based cluster, try fly restart <db-app-name>
.
ebono
February 22, 2023, 3:29pm
3
Hello Jerome. We tried and didn’t work:
Error failed to restart machine : could not stop machine : failed to restart VM : unable to restart machine, not currently started or stopped
We also tried another command, but again it didn’t work:
$ flyctl pg restart -a <postgres-instance>
Error no active leader found