You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
Postgres likes to refuse to delete databases that still have open connections.
There is 2 possible fixes for this issue, we either scale down all the process types for the application we are trying to delete first before deleting the resource (which should solve this class of problem).
Or we can solve it specifically for postgres by using the superuser to deny connections to the database and also sever existing connections.
The text was updated successfully, but these errors were encountered:
Is this issue likely to be the cause of the app delete failure I came across during testing today?
neil@ubuntu-vm:~/Dev/go-flynn-example$ flynn delete
Are you sure you want to delete the app "goexample"? (yes/no): yes
unknown_error: Something went wrong
@NeilW if it was using a postgres resource and the app was still scaled up. almost certainly yes.
To work around in the meantime you can simple scale your app down to zero before trying to remove the resource or delete the app. Once either of the 2 changes above land deletion will just work.
Postgres likes to refuse to delete databases that still have open connections.
There is 2 possible fixes for this issue, we either scale down all the process types for the application we are trying to delete first before deleting the resource (which should solve this class of problem).
Or we can solve it specifically for postgres by using the superuser to deny connections to the database and also sever existing connections.
The text was updated successfully, but these errors were encountered: