Closed hexandcube closed 1 year ago
@hexandcube can you please pull more logs from the Panel? Both that you've provided here are missing critical context that makes this issue easier to track down. The first linked one is missing the first part of the stack and the actual error, the second one is missing the entire stack trace.
Should be able to just pull the last few hundred lines from the Panel logs and that'll be sufficient. :)
Oops, sorry. Here:
/var/log/pterodactyl/wings.log: https://ptero.co/ofejasocoj.log Last 150 lines of /var/www/pterodactyl/storage/logs/laravel-$(date +%F).log: https://ptero.co/qulotokafa.log
Please let me know if you need anything else
Ah. This makes a lot of sense. If your S3 endpoint is incorrect, no wonder why the backup won't delete. We send a Delete request regardless of the failure state and only ignore 404 errors, not just all exceptions. If you fix the settings in your .env
the backup should get deleted properly.
I'm not sure if there is much we can do here other than just validating the settings. Currently, when creating a backup the Panel sends a request to Wings with information about the server, backup id, and adapter, then Wings hits another endpoint to get S3 pre-signed URLs once the backup is finished being created locally. We could possibly try sending a request to S3 before starting the backup (like a HeadObject to where the backup should be located). That would help diagnose 99% of configuration issues unless they are permission-related.
I'm having an issue where when I setup my S3 backups, I mistakenly didn't add the AWS_USE_PATH_STYLE_ENDPOINT=true
variable, so my backups failed. Now when I go to delete them, the panel fails to delete them because they didn't exist in the first place and it logs a 403 error upon attempting to delete.
It'd be great if there was a force delete option or something to remove a nonexistent backup from the panel.
Current Behavior
When creating an S3 backup with an incorrect configuration, the backup will fail. Attempting to delete this failed backup results in an error:
An unexpected error was encountered while processing this request, please try again.
Expected Behavior
The failed backup should disappear from the list of backups.
Steps to Reproduce
Panel Version
1.10.4
Wings Version
1.7.2
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Wings Logs: https://ptero.co/evyfyrebuk (I don't see anything related to deleting the backup here) Panel Logs: https://bin.ptdl.co/irvhq/ Additional logs from
/var/www/pterodactyl/storage/logs/laravel-$(date +%F).log
:Is there an existing issue for this?