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
cannot open a connection to S3 in ap-northeast-2 #1096
Comments
I just ran the following code without issue: s3 = Aws::S3::Client.new(http_wire_trace:true, region:'ap-northeast-2')
s3.list_objects(bucket:'aws-sdk-ap-northeast-2') Which generated the following HTTP wire trace:
I'm not sure why Net::HTTP is unable to open a connection to the endpoint. Can you ping |
Very strange. The ping doesn’t work for me. I get an ICMP timeout. If I try it from an EC2 instance it works fine. So, something is wrong w/ the routing somehow. The trace route shows that the request makes it to Korea but then dies. traceroute to s3.ap-northeast-2.amazonaws.com (52.92.8.9), 64 hops max, 52 byte packets I thought that it was an aws-sdk issue as everything seemed to work fine through the console. It looks like it’s something else. Thx
|
No problem. Please feel free to re-open if there is anything else. |
Trying to open a S3 connection to ap-northeast-2 times out with the Seahorse::Client::NetworkingError/execution expired exception. I have a snippet of code that opens a connection to EC2 successfully and then tries the same w/ S3 and times out. The buckets on S3 exist and I can see and manipulate them in the AWS console. Tried this with 2.2.13, 14, 15, 17 of the SDK and all fail the same way. Running Ruby 2.1.7.
Here is a wire trace.
opening connection to ec2.ap-northeast-2.amazonaws.com:443...
opened
starting SSL for ec2.ap-northeast-2.amazonaws.com:443...
SSL established
<- "POST / HTTP/1.1\r\nContent-Type: application/x-www-form-urlencoded; charset=utf-8\r\nAccept-Encoding: \r\nUser-Agent: aws-sdk-ruby2/2.2.13 ruby/2.1.7 x86_64-darwin15.0\r\nX-Amz-Date: 20160218T023056Z\r\nHost: ec2.ap-northeast-2.amazonaws.com\r\nX-Amz-Content-Sha256: 672499f98b79d4003cccbe13a6cbf7075942acc15b97f573064bc60e117baddc\r\nAuthorization: AWS4-HMAC-SHA256 Credential=AKIAJKNKRDVBVPNFNJBA/20160218/ap-northeast-2/ec2/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=3850ae3941b0626d805a4c33043a70e034b1f5d547c997343b8403acdfcf479c\r\nContent-Length: 41\r\nAccept: /\r\n\r\n"
-> "HTTP/1.1 200 OK\r\n"
-> "Content-Type: text/xml;charset=UTF-8\r\n"
-> "Transfer-Encoding: chunked\r\n"
-> "Vary: Accept-Encoding\r\n"
-> "Date: Thu, 18 Feb 2016 02:30:56 GMT\r\n"
-> "Server: AmazonEC2\r\n"
-> "\r\n"
-> "703\r\n"
reading 1795 bytes...
-> "\n<DescribeRegionsResponse xmlns="http://ec2.amazonaws.com/doc/2015-10-01/\">\n 14f3449e-2574-4236-b35c-4799954eb13b\n \n \n eu-west-1\n ec2.eu-west-1.amazonaws.com\n \n \n ap-southeast-1\n ec2.ap-southeast-1.amazonaws.com\n \n \n ap-southeast-2\n ec2.ap-southeast-2.amazonaws.com\n \n \n eu-central-1\n ec2.eu-central-1.amazonaws.com\n \n \n ap-northeast-2\n ec2.ap-northeast-2.amazonaws.com\n \n \n ap-northeast-1\n ec2.ap-northeast-1.amazonaws.com\n \n \n us-east-1\n ec2.us-east-1.amazonaws.com\n \n \n sa-east-1\n ec2.sa-east-1.amazonaws.com\n \n \n us-west-1\n ec2.us-west-1.amazonaws.com\n \n \n us-west-2\n ec2.us-west-2.amazonaws.com\n \n \n"
read 1795 bytes
reading 2 bytes...
-> "\r\n"
read 2 bytes
-> "0\r\n"
-> "\r\n"
Conn keep-alive
ap-northeast-2
opened connection to S3
opening connection to ap-northeast-2-qwiklab-asset.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-asset.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-asset.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-asset.s3.ap-northeast-2.amazonaws.com:443...
Error: Updating bucket ap-northeast-2-qwiklab-asset => Seahorse::Client::NetworkingError/execution expired
opening connection to ap-northeast-2-qwiklab-release.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-release.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-release.s3.ap-northeast-2.amazonaws.com:443...
opening connection to ap-northeast-2-qwiklab-release.s3.ap-northeast-2.amazonaws.com:443...
Error: Updating bucket ap-northeast-2-qwiklab-release => Seahorse::Client::NetworkingError/execution expired
The text was updated successfully, but these errors were encountered: