intermittent gem install failure - could not find gem rubyforge locally or in a repository.
I'm using chef to install gems. It's been working fine for a while but over the last few weeks I've noticed that gem installations are intermittently failing with the error:
could not find gem rubyforge locally or in a repository.
It's not specific to any gem, I've seen it error out on a variety of gems. Eventually after a few tries it works. I'm thinking it's a bad mirror in rotation?
More Error Context:
gem install rubyforge -q --no-rdoc --no-ri -v "1.0.4" -V returned 2, expected 0
---- Begin output of gem install rubyforge -q --no-rdoc --no-ri -v "1.0.4" -V ----
STDOUT:
STDERR: ERROR: could not find gem rubyforge locally or in a repository
---- End output of gem install rubyforge -q --no-rdoc --no-ri -v "1.0.4" -V ----
Support Staff 2 Posted by Nick Quaranto on 17 Feb, 2010 05:14 AM
Gemcutter doesn't use mirrors, it's all talking to S3 now...what version of RubyGems are you using? The output of
gem envshould help.Also, just curious...are you using Chef on EC2 to install gems? We have another issue open regarding this from Engine Yard and I wonder if it's related...
3 Posted by Garret Heaton on 17 Feb, 2010 06:12 AM
I also have this issue installing gems on EC2 (via Chef and command line). I often run in to the following: http://gist.github.com/304368
My temporary 'solution' is to run "gem sources -c" before each gem I install. That seems to work about 80% of the time.
4 Posted by apsoto on 17 Feb, 2010 08:08 AM
yes I'm using chef on EC2 using 64bit CentOS. I've seen the Engine yard issue in their forums and it sounds very similar to what I'm experiencing, however I'm not using Engine Yard.
5 Posted by Garret Heaton on 17 Feb, 2010 04:00 PM
Here's my
gem env:I install the gem binary using:
This is on Ubuntu 9.04, btw.
Support Staff 6 Posted by Nick Quaranto on 13 Mar, 2010 06:42 PM
We've heard several reports of problems with EC2 downloading gems but we still can't nail it down. Here's the other thread, if it helps:
http://help.rubygems.org/discussions/problems/21-odd-behavior-with-...
7 Posted by Philip Gardner on 16 Jun, 2010 10:32 PM
I seem to be running into the same issue. I'm using puppet to install some gems (not on EngineYard) on primarily CentOS 64-bit machines. Here is my
gem env:This also seems to occur even if I run the command by hand at times:
Running the command
gem sources -cprior to running it by hand does seem to solve the problem most of the time, though it doesn't help anyone figure out the root cause.If it helps, I've attached output from running strace while trying to download and install these gems:
strace /usr/bin/gem install -v 2.3.5 --include-dependencies rails8 Posted by apsoto on 17 Jun, 2010 03:32 AM
Yep, still happens fairly often with me even though I run gem sources -c
I just keep trying and it eventually works. I've been told rubygems.org doesn't use any sort of mirroring for the hosted gems, but it sure looks like it's having intermittent issues with finding gem files, but if I just keep re-running the command it eventually works.
9 Posted by kwilcox on 18 Jun, 2010 06:01 PM
Still happening for me, all time time, everytime! Any word on progress?
Support Staff 10 Posted by Nick Quaranto on 13 Jul, 2010 09:14 PM
Sorry about the massive delays here. Are you behind a NAT or firewall? Can you provide us with the output of
gem env? Are connections to Amazon S3 or CloudFront blocked?11 Posted by Math on 07 Aug, 2010 08:20 AM
Still same problem for me.
Using
gem sources -cafter every try ofgem installfixes it.Is there any info I can provide to help with that problem?
I can give root access if helpful.
Linux Serverr 2.6.26-2-xen-amd64 #1 SMP Sun Jun 20 20:51:58 UTC 2010 x86_64 GNU/LinuxSupport Staff 12 Posted by Nick Quaranto on 14 Aug, 2010 04:04 PM
If anyone could show us the AMI or region where this is happening in EC2? We're still not sure about this or why it's happening.
13 Posted by kwilcox on 14 Aug, 2010 05:11 PM
I'm having problems on us-east-1b on both Windows and Linux Quick Start 32-bit AMIs.
Support Staff 14 Posted by Nick Quaranto on 04 Aug, 2012 06:38 PM
Sorry, this comment was buried in our spam inbox.
We haven't heard of connection issues lately...is this still happening?