-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
aws s3 doesn't follow TemporaryRedirect #544
Comments
What version of the cli are you using |
|
Just to be clear, that happened for a new bucket. Once the DNS changes trickled through (some hours) it worked fine. Steps to reproduce:
|
I can confirm that I'm seeing the same issue with a newly created bucket in eu-west-1. Just tried with |
A followup - a few hours later the cp completed with no issues |
The newly created bucket will have a redirect, for example: But old bucket won't have this redirect, for example: What's s3 team's plan? |
I'm going to close this, as it seems like this is fixed now. I confirmed that I'm able to create buckets outside of US classic and immediately upload data to the bucket in the latest version of the CLI. From the debug logs it shows that we're following 307 redirects:
If anyone is still seeing this issue feel free to post a set of repro steps and I'd be happy to investigate further. |
Reopening, I can trigger this error when we reach the threshold for switching to multipart uploads, so if I try the same test with a 10mb file, I can repro the issue. Investigating... |
I am having this issue right now with a newly-created bucket in eu-west-1. It does not occur with an identical bucket in us-east-1. I checked lib/py*/site-packages/botocore/awsrequest.py includes the change above. I am unable to reproduce this problem reliably. It seems to occur for some buckets and not others.
The HTTPSConnectionPool Max retries exceeded error occurs with a command like
Edit: Two hours later, the problem has gone away, with the "curl" command above now producing an "AccessDenied" response. Presumably this problem has to do with bucket setup at the server end, and so it hard to reproduce reliably. |
This is not fixed in aws-cli/1.3.6 Python/2.7.4 Linux/3.8.13-xxxx-grs-ipv6-64 |
I'm seeing the same problem here, also with eu-west-1. The TemporaryRedirect seems to be the problem. On my box this also triggers a bug in awscli: you get negative numbers of files remaining as the number of the chunk increases. |
As expected, after around 2 hours the problem has disappeared, I can now upload large files without problems. It's still a bug that a bucket in eu-west-1 cannot be uploaded to in the first couple of hours after its creation (in some circumstances). |
I get this problem as well. Steps to reproduce are simple.
|
Is there a way to disable multi-part uploading? A flag, an environment variable, etc.? |
This issue is the same as: #634, with an overview of the situation here: #634 (comment) There's a fix for this (#634 (comment)), we just need to do more testing to ensure there are no regressions, and then we'll release the fix. There's no way to currently turn off multipart upload, but I believe the problem still happens with large files even without multipart upload. |
error message
The text was updated successfully, but these errors were encountered: