Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to delete servers with Locked Backups/ #100

Open
MstrTaffy opened this issue Oct 1, 2021 · 4 comments
Open

Unable to delete servers with Locked Backups/ #100

MstrTaffy opened this issue Oct 1, 2021 · 4 comments

Comments

@MstrTaffy
Copy link

MstrTaffy commented Oct 1, 2021

WHMCS Module Latest Version
Wings : 1.6.2

When a terminate command is sent to the panel it returns with an Error 400

https://i.taffy.coffee/ZZCQPeVH4b.png

Array ( [errors] => Array ( [0] => Array ( [code] => BackupLockedException [status] => 400 [detail] => Cannot delete a backup that is marked as locked. ) ) [status_code] => 400 )

@TASelwyn
Copy link

TASelwyn commented Oct 1, 2021

Have you tried unlocking the backup before trying to delete it?

@MstrTaffy
Copy link
Author

Yes, and that works.

But we have people cancel services, not pay ect and the module does an Auto Terminate and then fails because of locked backups and then they have to be manually deleted/unlocked.

@anondev-sudo
Copy link

Fix it contributors

@TrixterTheTux
Copy link
Member

You're always welcome to contribute a fix - though from what I'm aware this hasn't been able to be reproduced by multiple people as the panel doesn't trigger backup deletions on server deletion, and was leaning towards more of being something that the panel should handle on server deletion properly vs. being the responsibility of the module to unlock + delete all of the backups before server deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants