Skip to content

Idle connections #3

@jakajancar

Description

@jakajancar

I'm getting the below error when trying to use nanoc-deploy. No files are uploaded to S3. There is some delay after the warnings, so I have a feeling connections are made, but nothing sent. Or perhaps Content-Length is too large, and S3 just keeps waiting...

I get it consistently. Files are pretty small: the entire site has around 40 and it's 3MB in size.

$ rake deploy:cloud --trace
** Invoke deploy:cloud (first_time)
** Execute deploy:cloud
[WARN] fog: followed redirect to jaka-kubje-org.s3-external-3.amazonaws.com, connecting to the matching region will be more performant
[WARN] fog: followed redirect to jaka-kubje-org.s3-external-3.amazonaws.com, connecting to the matching region will be more performant
[WARN] fog: followed redirect to jaka-kubje-org.s3-external-3.amazonaws.com, connecting to the matching region will be more performant
[WARN] fog: followed redirect to jaka-kubje-org.s3-external-3.amazonaws.com, connecting to the matching region will be more performant
rake aborted!
Expected(200) <=> Actual(400 Bad Request)
request => {:expects=>200, :headers=>{"Authorization"=>"***", "x-amz-acl"=>"public-read", "Content-Type"=>"text/html", "Date"=>"Mon, 04 Jul 2011 19:20:56 +0000", "Content-Length"=>4096, "Host"=>"jaka-kubje-org.s3.amazonaws.com:443"}, :path=>"/about%2Findex.html", :mock=>nil, :query=>nil, :method=>"PUT", :body=>#<File:about/index.html>, :host=>"jaka-kubje-org.s3.amazonaws.com", :idempotent=>true, :scheme=>"https", :port=>"443"}
response => #<Excon::Response:0x102731998 @headers={"x-amz-id-2"=>"MQBVIFeUSdIari/JrQa0QRBA3UJm0JOX14gpY8furHBBmmHjkKJQV1w4Of26jVBe", "Transfer-Encoding"=>"chunked", "Date"=>"Mon, 04 Jul 2011 19:21:16 GMT", "Content-Type"=>"application/xml", "x-amz-request-id"=>"C3E3F2C0578FAD98", "Server"=>"AmazonS3", "Connection"=>"close"}, @body="<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>RequestTimeout</Code><Message>Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.</Message><RequestId>C3E3F2C0578FAD98</RequestId><HostId>MQBVIFeUSdIari/JrQa0QRBA3UJm0JOX14gpY8furHBBmmHjkKJQV1w4Of26jVBe</HostId></Error>", @status=400>
/Users/jaka/.gem/ruby/1.8/gems/excon-0.6.3/lib/excon/connection.rb:179:in `request'
/Users/jaka/.gem/ruby/1.8/gems/fog-0.9.0/lib/fog/core/connection.rb:20:in `request'
/Users/jaka/.gem/ruby/1.8/gems/fog-0.9.0/lib/fog/storage/aws.rb:348:in `request'
/Users/jaka/.gem/ruby/1.8/gems/fog-0.9.0/lib/fog/storage/requests/aws/put_object.rb:43:in `put_object'
/Users/jaka/.gem/ruby/1.8/gems/fog-0.9.0/lib/fog/storage/models/aws/file.rb:119:in `save'
/Users/jaka/.gem/ruby/1.8/gems/fog-0.9.0/lib/fog/core/collection.rb:50:in `create'
/Users/jaka/.gem/ruby/1.8/gems/nanoc-deploy-0.0.3/lib/nanoc-deploy/extra/deployers/cloud.rb:136:in `run'
/Users/jaka/.gem/ruby/1.8/gems/nanoc-deploy-0.0.3/lib/nanoc-deploy/extra/deployers/cloud.rb:134:in `each'
/Users/jaka/.gem/ruby/1.8/gems/nanoc-deploy-0.0.3/lib/nanoc-deploy/extra/deployers/cloud.rb:134:in `run'
/Users/jaka/.gem/ruby/1.8/gems/nanoc-deploy-0.0.3/lib/nanoc-deploy/tasks/deploy/cloud.rake:9
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:205:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:200:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/task.rb:144:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:112:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:90:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:84:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:62:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:129:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/application.rb:59:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.9.2/bin/rake:32
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => deploy:cloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions