GithubHelp home page GithubHelp logo

Comments (3)

leonardehrenfried avatar leonardehrenfried commented on July 20, 2024

I'm had the same problem on a Ubuntu 12.04 box (seems fixed in 14.04) and the following blog post had a solution: http://scie.nti.st/2008/3/14/amazon-s3-and-connection-reset-by-peer/

TLDR:
Put the following in /etc/sysctl.conf:

# Workaround for TCP Window Scaling bugs in other ppl's equipment:
net.ipv4.tcp_wmem = 4096 16384 512000
net.ipv4.tcp_rmem = 4096 87380 512000

and run sudo sysctl -p.

from deb-s3.

simonrondelez avatar simonrondelez commented on July 20, 2024

same issue here. The fix of Lenniboy doesn't help

from deb-s3.

jhnferraris avatar jhnferraris commented on July 20, 2024

I'm experiencing this issue in my Ubuntu 14.04. Tried the above fix but no joy.

Here's my logs:

The file size is 50mb

I'm experiencing 2 kinds of errors:

Connection reset

/usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write': Connection reset by peer (Errno::ECONNRESET)
    from /usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write0'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:173:in `block in write'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:190:in `writing'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:172:in `write'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:330:in `send_request_with_body_stream'
    from /usr/lib/ruby/1.9.1/net/http.rb:1922:in `exec'
    from /usr/lib/ruby/1.9.1/net/http.rb:1318:in `block in transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `catch'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1294:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/connection.rb:45:in `block in request'
    from /usr/lib/ruby/1.9.1/net/http.rb:746:in `start'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/connection.rb:52:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/base.rb:69:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/base.rb:88:in `put'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/object.rb:241:in `store'
    from /usr/local/bin/lb-backup-db:34:in `<main>'

or it would be a Broken pipe

/usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write': Broken pipe (Errno::EPIPE)
    from /usr/lib/ruby/1.9.1/net/protocol.rb:199:in `write0'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:173:in `block in write'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:190:in `writing'
    from /usr/lib/ruby/1.9.1/net/protocol.rb:172:in `write'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:330:in `send_request_with_body_stream'
    from /usr/lib/ruby/1.9.1/net/http.rb:1922:in `exec'
    from /usr/lib/ruby/1.9.1/net/http.rb:1318:in `block in transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `catch'
    from /usr/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'
    from /usr/lib/ruby/1.9.1/net/http.rb:1294:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/connection.rb:45:in `block in request'
    from /usr/lib/ruby/1.9.1/net/http.rb:746:in `start'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/connection.rb:52:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/base.rb:69:in `request'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/base.rb:88:in `put'
    from /var/lib/gems/1.9.1/gems/aws-s3-0.6.3/lib/aws/s3/object.rb:241:in `store'
    from /usr/local/bin/lb-backup-db:34:in `<main>'

Anyone got around this?

from deb-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.