-
Notifications
You must be signed in to change notification settings - Fork 62
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
Failing backup with miss-leading error message. #57
Comments
I was thinking about making the But it seems that isn't working either. I was trying to get the bucket location with:
aws cli returns the correct location, even when talking to the wrong endpoint, while the mini-go client
Here is my minio-go tester code:
|
Hi @lalyos thanks for taking a look into the cause of the bug. We decided to use the minio client because it seems to work for other s3 compatible stores too, whereas there were some problems with using the s3 go client. |
This issue/PR has been automatically marked as stale because it has not had activity (commit/comment/label) for 60 days. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
I Was trying to create a backup to an AWS s3 bucket. The backup stuck in retry state. Iwas checking for error messages in the pod log"
My backup CRD did contain the loaction:
After a while I relized the bucket was in a different region, so it was clearly miss-configured, but it wasn't obvious from the error message above.
Solution:
Background
Unfortunately minio-go uses string based errors, so it can only be string-matched ... Furthermore seems like the error message is not coming from minio directly, but from the aws-sdk-go library. Actually the s3 api sends a redirect (hence the 301) but that is ignore by the official sdk:
aws/aws-sdk-go#356
The text was updated successfully, but these errors were encountered: