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
Failure to read attributes on S3 downloads (400 Bad Request on HEAD /DIR/file) #11196
Comments
I also noticed the following:
Workarounds:
|
What is the region of the bucket and its exact name and/or |
The bucket is in the us-west-2 region (Oregon). We always used the default hostname s3.amazonaws.com, but
The logs above show the Host header sent:
(the bucket name was replaced with my-bucket for privacy reasons) |
I am unable to reproduce this with a test bucket in
|
The reason for this error may be that we fail to determine the region for the bucket and then default to |
You should see a request in the transcript where the bucket location is determined similar to
|
The problem is easily reproducible from my end and it persists even after adding the s3:GetBucketLocation permission. The sequence of requests I see in the logs is
|
I have also problems when using buckets in eu-west-3 with Version 7.7.0 (33744) When using the default "S3 HTTPS" profile and using my-bucket.s3.amazonaws.com as server name, I can open a connection to the bucket, list files and upload some but it fails when trying to download any files (even the one I just uploaded) with a "Failure to read attributes". The 400 is due to "us-east-1" used as a region in AWSv4 signature on a HEAD request against the my-bucket.s3.amazonaws.com. All other requests seems good but not this one. When using a custom profile forcing region to eu-west-3 (and still using my-bucket.s3.amazonaws.com as server name) it works unreliably. i.e. sometimes the created bookmark will work flawlessly This makes Cyberduck unusable for me. |
As a side note I did not find how to get the cyberduck logs or transcripts. I resorted to mitmproxy to analyse. I think the wiki should explain how to easily get transcripts to ease bug reporting. |
Replying to [comment:10 francoisj]:
Refer to Provide log output. |
Replying to [comment:9 francoisj]:
Please try to set the default hostname |
Also make sure the IAM permission allows to query the region of the bucket ( |
This is reproducible
|
Replying to [comment:12 dkocher]:
I can confirm this finding.
|
Using version 7.6.2 (33520), I am unable to download files from S3 buckets (it worked with previous versions).
I can list the contents of a bucket, but when I try [Action] -> [Download], I get the message:
The log shows:
For the S3 bucket, I used a standard access policy:
The text was updated successfully, but these errors were encountered: