rubygems / bundler

Manage your Ruby application's gem dependencies
https://bundler.io
MIT License
4.89k stars 2k forks source link

'too many connection resets' while bundling from scratch #1327

Closed benhoskings closed 12 years ago

benhoskings commented 12 years ago

Just got this bundling an app for the first time on ruby-1.9.3-preview1. I'm running these:

⚡ ruby -v
ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin11.0.1]
⚡ gem -v
1.8.6
⚡ bundle -v
Bundler version 1.1.pre.5

Bundling the app caused a failure while fetching dep info:

⚡ gem install bundler --pre && bundle
Fetching: bundler-1.1.pre.5.gem (100%)
Successfully installed bundler-1.1.pre.5
1 gem installed
Fetching git://github.com/benhoskings/delayed_job.git
remote: Counting objects: 2443, done.
remote: Compressing objects: 100% (1321/1321), done.
remote: Total 2443 (delta 1474), reused 1890 (delta 1029)
Receiving objects: 100% (2443/2443), 306.36 KiB | 22 KiB/s, done.
Resolving deltas: 100% (1474/1474), done.
Fetching git://github.com/benhoskings/rpm.git
remote: Counting objects: 23496, done.
remote: Compressing objects: 100% (7225/7225), done.
remote: Total 23496 (delta 16254), reused 23034 (delta 15832)
Receiving objects: 100% (23496/23496), 3.62 MiB | 60 KiB/s, done.
Resolving deltas: 100% (16254/16254), done.
Fetching dependency information from the API at http://rubygems.org/.......
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:428:in `rescue in request': too many connection resets (http://production.cf.rubygems.org/gems/rake-0.9.2.gem) (Gem::RemoteFetcher::FetchError)
    from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:373:in `request'
    from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:203:in `fetch_http'
    from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:213:in `fetch_http'
    from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:231:in `fetch_path'
    from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:133:in `download'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/rubygems_integration.rb:104:in `download_gem'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/source.rb:249:in `download_gem_from_uri'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/source.rb:76:in `fetch'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:55:in `block in run'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:in `block in each'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:in `each'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:in `each'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:54:in `run'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:12:in `install'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/cli.rb:213:in `install'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/bin/bundle:13:in `<top (required)>'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:in `load'
    from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:in `<main>'

The Gemfile.lock for this app:

⚡ cat Gemfile.lock
GIT
  remote: git://github.com/benhoskings/delayed_job.git
  revision: 2ed4975d4303b57aefedf033adc54d0d3822e014
  specs:
    delayed_job (2.1.3)
      activesupport (~> 3.0)
      daemons

GIT
  remote: git://github.com/benhoskings/rpm.git
  revision: 96affa669337415cacee4b576b92d8e469f78b6b
  specs:
    newrelic_rpm (3.1.0)

GEM
  remote: http://rubygems.org/
  specs:
    actionmailer (3.1.0.rc5)
      actionpack (= 3.1.0.rc5)
      mail (~> 2.3.0)
    actionpack (3.1.0.rc5)
      activemodel (= 3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      i18n (~> 0.6)
      rack (~> 1.3.1)
      rack-cache (~> 1.0.2)
      rack-mount (~> 0.8.1)
      rack-test (~> 0.6.0)
      sprockets (~> 2.0.0.beta.12)
    activemodel (3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
      bcrypt-ruby (~> 2.1.4)
      builder (~> 3.0.0)
      i18n (~> 0.6)
    activerecord (3.1.0.rc5)
      activemodel (= 3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
      arel (~> 2.1.4)
      tzinfo (~> 0.3.29)
    activeresource (3.1.0.rc5)
      activemodel (= 3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
    activesupport (3.1.0.rc5)
      multi_json (~> 1.0)
    arel (2.1.4)
    barista (1.1.0)
      coffee-script (~> 2.1)
    bcrypt-ruby (2.1.4)
    builder (3.0.0)
    capybara (0.4.1.2)
      celerity (>= 0.7.9)
      culerity (>= 0.2.4)
      mime-types (>= 1.16)
      nokogiri (>= 1.3.3)
      rack (>= 1.0.0)
      rack-test (>= 0.5.4)
      selenium-webdriver (>= 0.0.27)
      xpath (~> 0.1.3)
    celerity (0.8.9)
    chalofa_ruby-progressbar (0.0.9.1)
    chargify_api_ares (0.3.9)
    childprocess (0.1.9)
      ffi (~> 1.0.6)
    cloudfiles (1.4.16)
      mime-types (>= 1.16)
    coffee-script (2.1.3)
      coffee-script-source
    coffee-script-source (1.1.0)
    culerity (0.2.15)
    daemons (1.1.3)
    diff-lcs (1.1.2)
    erubis (2.7.0)
    exceptional (2.0.32)
      rack
    execjs (1.1.3)
      multi_json (~> 1.0)
    faker (0.9.5)
      i18n (~> 0.4)
    ffi (1.0.9)
    fuubar (0.0.4)
      chalofa_ruby-progressbar (~> 0.0.9)
      rspec (~> 2.0)
      rspec-instafail (~> 0.1.4)
    haml (3.1.2)
    has_scope (0.5.0)
    hike (1.2.0)
    hirb (0.4.5)
    i18n (0.6.0)
    inherited_resources (1.2.2)
      has_scope (~> 0.5.0)
      responders (~> 0.6.0)
    json_pure (1.5.1)
    kaminari (0.12.4)
      rails (>= 3.0.0)
    kgio (2.4.1)
    machinist (1.0.6)
    mail (2.3.0)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.16)
    multi_json (1.0.3)
    nokogiri (1.4.4)
    pg (0.11.0)
    polyglot (0.3.1)
    postmark (0.9.6)
    postmark-rails (0.4.1)
      actionmailer
      postmark (>= 0.9.0)
      rake
    rack (1.3.2)
    rack-cache (1.0.2)
      rack (>= 0.4)
    rack-mount (0.8.1)
      rack (>= 1.0.0)
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.0)
      rack (>= 1.0)
    rails (3.1.0.rc5)
      actionmailer (= 3.1.0.rc5)
      actionpack (= 3.1.0.rc5)
      activerecord (= 3.1.0.rc5)
      activeresource (= 3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
      bundler (~> 1.0)
      railties (= 3.1.0.rc5)
    railties (3.1.0.rc5)
      actionpack (= 3.1.0.rc5)
      activesupport (= 3.1.0.rc5)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (~> 0.14.6)
    rake (0.9.2)
    rdoc (3.8)
    redcarpet (1.17.1)
    responders (0.6.4)
    rspec (2.6.0)
      rspec-core (~> 2.6.0)
      rspec-expectations (~> 2.6.0)
      rspec-mocks (~> 2.6.0)
    rspec-core (2.6.4)
    rspec-expectations (2.6.0)
      diff-lcs (~> 1.1.2)
    rspec-instafail (0.1.8)
    rspec-mocks (2.6.0)
    rspec-rails (2.6.1)
      actionpack (~> 3.0)
      activesupport (~> 3.0)
      railties (~> 3.0)
      rspec (~> 2.6.0)
    rubyzip (0.9.4)
    sass (3.1.2)
    sass-rails (3.1.0.rc.2)
      actionpack (~> 3.1.0.rc1)
      railties (~> 3.1.0.rc1)
      sass (>= 3.1.2)
      sprockets (>= 2.0.0.beta.9)
    selenium-webdriver (0.2.0)
      childprocess (>= 0.1.7)
      ffi (>= 1.0.7)
      json_pure
      rubyzip
    sprockets (2.0.0.beta.12)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (!= 1.3.0, ~> 1.1)
    steak (1.1.0)
      rspec (>= 1.3)
    syntax (1.0.0)
    thor (0.14.6)
    tilt (1.3.2)
    treetop (1.4.9)
      polyglot (>= 0.3.1)
    tzinfo (0.3.29)
    uglifier (0.5.4)
      execjs (>= 0.3.0)
      multi_json (>= 1.0.2)
    unicorn (3.6.2)
      kgio (~> 2.3)
      rack
    xpath (0.1.4)
      nokogiri (~> 1.3)

PLATFORMS
  ruby

DEPENDENCIES
  barista
  capybara
  chargify_api_ares
  cloudfiles
  coffee-script
  delayed_job!
  exceptional
  faker
  fuubar
  haml
  hirb
  inherited_resources
  kaminari
  machinist
  newrelic_rpm!
  pg
  postmark-rails
  rails (= 3.1.0.rc5)
  redcarpet
  rspec
  rspec-rails
  sass-rails
  steak
  syntax
  uglifier
  unicorn
indirect commented 12 years ago

Unfortunately, that error was a result of the rubygems server having issues, and has nothing to do with bundler. Try again when the server is less overloaded, I guess?

On Jul 31, 2011, at 9:43 PM, benhoskingsreply@reply.github.com wrote:

Just got this bundling an app for the first time on ruby-1.9.3-preview1.

⚡ ruby -v ruby 1.9.3dev (2011-07-31 revision 32789) [x86_64-darwin11.0.1]

⚡ gem -v 1.8.6

⚡ bundle -v Bundler version 1.1.pre.5

⚡ gem install bundler --pre && bundle Fetching: bundler-1.1.pre.5.gem (100%) Successfully installed bundler-1.1.pre.5 1 gem installed Fetching git://github.com/benhoskings/delayed_job.git remote: Counting objects: 2443, done. remote: Compressing objects: 100% (1321/1321), done. remote: Total 2443 (delta 1474), reused 1890 (delta 1029) Receiving objects: 100% (2443/2443), 306.36 KiB | 22 KiB/s, done. Resolving deltas: 100% (1474/1474), done. Fetching git://github.com/benhoskings/rpm.git remote: Counting objects: 23496, done. remote: Compressing objects: 100% (7225/7225), done. remote: Total 23496 (delta 16254), reused 23034 (delta 15832) Receiving objects: 100% (23496/23496), 3.62 MiB | 60 KiB/s, done. Resolving deltas: 100% (16254/16254), done. Fetching dependency information from the API at http://rubygems.org/....... Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks! /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:428:in rescue in request': too many connection resets (http://production.cf.rubygems.org/gems/rake-0.9.2.gem) (Gem::RemoteFetcher::FetchError) from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:373:inrequest' from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:203:in fetch_http' from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:213:infetch_http' from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:231:in fetch_path' from /Users/ben/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/site_ruby/1.9.1/rubygems/remote_fetcher.rb:133:indownload' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/rubygems_integration.rb:104:in download_gem' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/source.rb:249:indownload_gem_from_uri' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/source.rb:76:in fetch' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:55:inblock in run' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:in block in each' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:ineach' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/spec_set.rb:12:in each' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:54:inrun' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/installer.rb:12:in install' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/cli.rb:213:ininstall' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/task.rb:22:in run' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/invocation.rb:118:ininvoke_task' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor.rb:246:in dispatch' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/lib/bundler/vendor/thor/base.rb:389:instart' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/gems/bundler-1.1.pre.5/bin/bundle:13:in <top (required)>' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:inload' from /Users/ben/.rvm/gems/ruby-1.9.3-preview1/bin/bundle:19:in `

'

⚡ cat Gemfile.lock GIT remote: git://github.com/benhoskings/delayed_job.git revision: 2ed4975d4303b57aefedf033adc54d0d3822e014 specs: delayed_job (2.1.3) activesupport (~> 3.0) daemons

GIT remote: git://github.com/benhoskings/rpm.git revision: 96affa669337415cacee4b576b92d8e469f78b6b specs: newrelic_rpm (3.1.0)

GEM remote: http://rubygems.org/ specs: actionmailer (3.1.0.rc5) actionpack (= 3.1.0.rc5) mail (~> 2.3.0) actionpack (3.1.0.rc5) activemodel (= 3.1.0.rc5) activesupport (= 3.1.0.rc5) builder (~> 3.0.0) erubis (~> 2.7.0) i18n (~> 0.6) rack (~> 1.3.1) rack-cache (~> 1.0.2) rack-mount (~> 0.8.1) rack-test (~> 0.6.0) sprockets (~> 2.0.0.beta.12) activemodel (3.1.0.rc5) activesupport (= 3.1.0.rc5) bcrypt-ruby (~> 2.1.4) builder (~> 3.0.0) i18n (~> 0.6) activerecord (3.1.0.rc5) activemodel (= 3.1.0.rc5) activesupport (= 3.1.0.rc5) arel (~> 2.1.4) tzinfo (~> 0.3.29) activeresource (3.1.0.rc5) activemodel (= 3.1.0.rc5) activesupport (= 3.1.0.rc5) activesupport (3.1.0.rc5) multi_json (~> 1.0) arel (2.1.4) barista (1.1.0) coffee-script (~> 2.1) bcrypt-ruby (2.1.4) builder (3.0.0) capybara (0.4.1.2) celerity (>= 0.7.9) culerity (>= 0.2.4) mime-types (>= 1.16) nokogiri (>= 1.3.3) rack (>= 1.0.0) rack-test (>= 0.5.4) selenium-webdriver (>= 0.0.27) xpath (~> 0.1.3) celerity (0.8.9) chalofa_ruby-progressbar (0.0.9.1) chargify_api_ares (0.3.9) childprocess (0.1.9) ffi (~> 1.0.6) cloudfiles (1.4.16) mime-types (>= 1.16) coffee-script (2.1.3) coffee-script-source coffee-script-source (1.1.0) culerity (0.2.15) daemons (1.1.3) diff-lcs (1.1.2) erubis (2.7.0) exceptional (2.0.32) rack execjs (1.1.3) multi_json (~> 1.0) faker (0.9.5) i18n (~> 0.4) ffi (1.0.9) fuubar (0.0.4) chalofa_ruby-progressbar (~> 0.0.9) rspec (~> 2.0) rspec-instafail (~> 0.1.4) haml (3.1.2) has_scope (0.5.0) hike (1.2.0) hirb (0.4.5) i18n (0.6.0) inherited_resources (1.2.2) has_scope (~> 0.5.0) responders (~> 0.6.0) json_pure (1.5.1) kaminari (0.12.4) rails (>= 3.0.0) kgio (2.4.1) machinist (1.0.6) mail (2.3.0) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) mime-types (1.16) multi_json (1.0.3) nokogiri (1.4.4) pg (0.11.0) polyglot (0.3.1) postmark (0.9.6) postmark-rails (0.4.1) actionmailer postmark (>= 0.9.0) rake rack (1.3.2) rack-cache (1.0.2) rack (>= 0.4) rack-mount (0.8.1) rack (>= 1.0.0) rack-ssl (1.3.2) rack rack-test (0.6.0) rack (>= 1.0) rails (3.1.0.rc5) actionmailer (= 3.1.0.rc5) actionpack (= 3.1.0.rc5) activerecord (= 3.1.0.rc5) activeresource (= 3.1.0.rc5) activesupport (= 3.1.0.rc5) bundler (~> 1.0) railties (= 3.1.0.rc5) railties (3.1.0.rc5) actionpack (= 3.1.0.rc5) activesupport (= 3.1.0.rc5) rack-ssl (~> 1.3.2) rake (>= 0.8.7) rdoc (~> 3.4) thor (~> 0.14.6) rake (0.9.2) rdoc (3.8) redcarpet (1.17.1) responders (0.6.4) rspec (2.6.0) rspec-core (~> 2.6.0) rspec-expectations (~> 2.6.0) rspec-mocks (~> 2.6.0) rspec-core (2.6.4) rspec-expectations (2.6.0) diff-lcs (~> 1.1.2) rspec-instafail (0.1.8) rspec-mocks (2.6.0) rspec-rails (2.6.1) actionpack (~> 3.0) activesupport (~> 3.0) railties (~> 3.0) rspec (~> 2.6.0) rubyzip (0.9.4) sass (3.1.2) sass-rails (3.1.0.rc.2) actionpack (~> 3.1.0.rc1) railties (~> 3.1.0.rc1) sass (>= 3.1.2) sprockets (>= 2.0.0.beta.9) selenium-webdriver (0.2.0) childprocess (>= 0.1.7) ffi (>= 1.0.7) json_pure rubyzip sprockets (2.0.0.beta.12) hike (~> 1.2) rack (~> 1.0) tilt (!= 1.3.0, ~> 1.1) steak (1.1.0) rspec (>= 1.3) syntax (1.0.0) thor (0.14.6) tilt (1.3.2) treetop (1.4.9) polyglot (>= 0.3.1) tzinfo (0.3.29) uglifier (0.5.4) execjs (>= 0.3.0) multi_json (>= 1.0.2) unicorn (3.6.2) kgio (~> 2.3) rack xpath (0.1.4) nokogiri (~> 1.3)

PLATFORMS ruby

DEPENDENCIES barista capybara chargify_api_ares cloudfiles coffee-script delayed_job! exceptional faker fuubar haml hirb inherited_resources kaminari machinist newrelic_rpm! pg postmark-rails rails (= 3.1.0.rc5) redcarpet rspec rspec-rails sass-rails steak syntax uglifier unicorn

Reply to this email directly or view it on GitHub: https://github.com/carlhuda/bundler/issues/1327

azizshaikh commented 12 years ago

Thanks @Indirect, I replaced the gemfile.lock and it works.