Can't run bundle install
Not sure if this is related to the issues from last week, but I can no longer run "bundle install". I have tried deleting Gemfile.lock, and then commenting out everything in my Gemfile except rails. My Gemfile now looks like this:
source 'http://rubygems.org'
gem 'rails', '3.2.11'
(I have tried using both http and https in front of rubygems.org. The stacktrace I get is below.
Fetching gem metadata from http://rubygems.org/..Unfortunately,
a fatal error has occurred. Please see the Bundler
troubleshooting documentation at http://bit.ly/bundler-issues.
Thanks!
/Users/xxxxx/.rvm/gems/ruby-1.9.3-p374@global/gems/bundler-1.2.3/lib/bundler/fetcher.rb:168:in
`load': marshal data too short (ArgumentError)
Comments are currently closed for this discussion. You can start a new one.
2 Posted by cparedes on 04 Feb, 2013 11:22 PM
status.rubygems.org shows the site as down
3 Posted by riverotterranch on 05 Feb, 2013 10:49 PM
I am having the same problem. Occasionally I can get past this error, but then get timeout errors later on. My gemfile includes something requires installing selenium-webdriver (2.25.0). I finally downloaded this file by hand and installed the local copy, but bundler still cant get past it. If I dont get the error described above when I first run bundler, I get the error Gem::RemoteFetcher::FetchError: too many connection resets (http://bb-m.rubygems.org/gems/selenium-webdriver-2.25.0.gem). I have been trying since yesterday and continue to have the same problems.
4 Posted by cparedes on 05 Feb, 2013 11:07 PM
riverotterranch what do you see on http://status.rubygems.org/ now? I see all green, and was able to run a bundle install.
That being said, I just checked out http://isup.me/rubygems.org, and it says that it's down.
5 Posted by riverotterranch on 06 Feb, 2013 12:14 AM
I'm getting the same. All green on status, but down on isup. Bundler runs, but I'm still getting stuck on some gems - last time I tried it got 'too many connection resets' for the ffi gem. Bundler seems to be running really slowly.
6 Posted by riverotterranch on 07 Feb, 2013 02:36 AM
Still unable to get bundler to complete. It cant get past railties. I hae manually downloaded (using wget) and then installed the local copy of this gem, but bundler still gets hung up on it. Gem::RemoteFetcher::FetchError: too many connection resets (http://production.cf.rubygems.org/gems/railties-3.1.0.gem)
An error occured while installing railties (3.1.0), and Bundler cannot continue.
Make sure that
gem install railties -v '3.1.0'succeeds before bundling.7 Posted by dewdrops on 07 Feb, 2013 05:08 AM
facing same issue ..
Support Staff 8 Posted by Eric Hodel on 07 Feb, 2013 08:12 AM
Can any of you
gem install rail ties -v '3.1.0'?Note that this is the rubygems help area, not the bundler help area. Without determining that this is a rubygems issue (through running the command it says in the error message) we will have a very, very difficult time helping you.
9 Posted by benj on 08 Feb, 2013 09:44 AM
Not sure if this is the right place for this, but we've been having the same issue at the office for three days now. A colleague tried the same procedure using his home internet connection and the fetching of gem metadata from rubygems.org worked. This looks like a network problem. Is rubygems.org's hosting or service provider filtering certain IP blocks or something?
10 Posted by riverotterranch on 10 Feb, 2013 07:16 PM
This seems to now be fixed for me. Like benj, I think it was network problem. Bundler was just giving up after too many connection resets.
11 Posted by riverotterranch on 11 Feb, 2013 01:19 AM
Sorry - actually not fixed. And it is problem with Gems, not bundler. Trying to install Gherkin takes 2.5 minutes. Here is part of the verbose log
saasbook:/media/windows-share/hw4_rottenpotatoes$ sudo gem install -V gherkin -v '2.8.0'
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
connection reset after 1 requests, retrying
GET http://production.s3.rubygems.org/specs.4.8.gz
connection reset after 1 requests, retrying
GET http://rubygems.org/latest_specs.4.8.gz
connection reset after 2 requests, retrying
GET http://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
12 Posted by riverotterranch on 11 Feb, 2013 03:36 AM
And here is another. I cant install rspec-mocks at all - neither by specfiying version number, (2.8.0) nor by omitting the version number.
saasbook@saasbook:/media/windows-share/hw4_rottenpotatoes$ rails server
Could not find rspec-mocks-2.8.0 in any of the sources
Run
bundle installto install missing gems.saasbook@saasbook:/media/windows-share/hw4_rottenpotatoes$ sudo gem install -V rspec-mocks -v '2.8.0'
GET http://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET http://production.s3.rubygems.org/specs.4.8.gz
connection reset after 1 requests, retrying
GET http://production.s3.rubygems.org/specs.4.8.gz
connection reset after 1 requests, retrying
GET http://rubygems.org/quick/Marshal.4.8/rspec-mocks-2.8.0.gemspec.rz
connection reset after 2 requests, retrying
GET http://rubygems.org/quick/Marshal.4.8/rspec-mocks-2.8.0.gemspec.rz
302 Moved Temporarily
GET http://production.cf.rubygems.org/quick/Marshal.4.8/rspec-mocks-2.8...
200 OK
Installing gem rspec-mocks-2.8.0
Downloading gem rspec-mocks-2.8.0.gem
GET http://rubygems.org/gems/rspec-mocks-2.8.0.gem
302 Moved Temporarily
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: Connection timed out - connect(2) (http://rubygems.org/gems/rspec-mocks-2.8.0.gem)
Falling back to local-only install
ERROR: Could not find a valid gem 'rspec-mocks' (>= 0) in any repository
ERROR: Possible alternatives: rspec-mocks
13 Posted by Joel Nimety on 12 Feb, 2013 03:07 AM
Having the same issue. Might be a network issue since I'm working remotely at an unfamiliar location. switching from http to https fixed the issue for me:
source 'https://rubygems.org'Nick Quaranto closed this discussion on 20 Feb, 2013 01:43 AM.