You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2024. It is now read-only.
create a bucket in Ireland using boto. e.g.
python -c "import boto; conn = boto.connect_s3(); conn.create_bucket('eos-ireland-bucket-test', location=boto.s3.connection.Location.EU)"
attempt to upload a file from Ireland using s3put:
s3put -b eos-ireland-bucket-test /usr/lib/libselinux.so.1
This will fail.
Change the locations, etc. in the upload procedure, and it will succeed.
Wait to upload the file the following day, and it will succeed.
Upload a smaller file, and it will succeed.
Upload a file from us-east instead, and it will succeed.
Create the bucket in us-east instead, and it will succeed.
Also, specifying the 'host parameter' (--host s3-eu-west-1.amazonaws.com) on s3put will allow it to succeed:
Specifying the --host parameter is a successful workaround, but s3ut itself states, although it apparently works in this case with AWS S3 Ireland.
host - Hostname override, for using an endpoint other then AWS S3
The text was updated successfully, but these errors were encountered:
This issue appears to be due to a combination of two issues:
DNS propagation time
The fact that s3put uses DNS for bucket location routing (the default behavior in boto)
As you mentioned, manually specifying a --host will mitigate the issue because it will bypass this DNS lookup and use the given host directly.
When using boto itself, you can actually specify a different calling format for S3 connections via the calling_format parameter. The default value is SubdomainCallingFormat but it can be set to OrdinaryCallingFormat, which uses s3.amazonaws.com/<bucket name> instead of the subdomain virtual host format. I'm investigating whether this solves the problem and whether it should be exposed via an argument to s3put.
This is still happening with both 2.34.
I'm having issues right now with every bucket newly created in Ireland. Works with a bucket created last week... and works with buckets created in default US region.
The broken pipe occurs in boto/s3/key.py > python ssl.py.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Steps to reproduce:
python -c "import boto; conn = boto.connect_s3(); conn.create_bucket('eos-ireland-bucket-test', location=boto.s3.connection.Location.EU)"
s3put -b eos-ireland-bucket-test /usr/lib/libselinux.so.1
This will fail.
Change the locations, etc. in the upload procedure, and it will succeed.
Wait to upload the file the following day, and it will succeed.
Upload a smaller file, and it will succeed.
Upload a file from us-east instead, and it will succeed.
Create the bucket in us-east instead, and it will succeed.
Also, specifying the 'host parameter' (--host s3-eu-west-1.amazonaws.com) on s3put will allow it to succeed:
Specifying the --host parameter is a successful workaround, but s3ut itself states, although it apparently works in this case with AWS S3 Ireland.
host - Hostname override, for using an endpoint other then AWS S3
The text was updated successfully, but these errors were encountered: