# How to handle Gem repository failures?

**URL:** <https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437>\
**Category:** Rails\
**Created:** [June 28, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437 "2006-06-28T19:53:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 7:53pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/1 "2006-06-28T19:53:25Z")

</div>

Well, I’ve managed to screw myself but good, apparently.

I cleanup my “old” versions of actionmailer and actionpack, and now the  
rails gem is unavailable and of course, I can’t start rails 1.1.2  
without the latest actionpack and actionmailer.

None of the rails related gems appears to be currently available in the  
repository for me to get the old versions back so that I can run rails  
1.1.2.

So, I have a few questions:

1. If I execute a gem command and see:

C:\eclipse\workspace\>gem install actionpack 1.12.1  
ERROR: While executing gem … (Gem::GemNotFoundException)  
Could not find actionpack (\> 0) in the repository

am I totally screwed with respect to being able to get that gem? Or is  
there a way for me to download it another way and install it by hand?

1. Is there a place where the status of the Gem repository is shown so  
that we know if there’s some kind of outage or maintenance that’s being  
done?

Serves me right for trying to update stuff ASAP.

Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:13pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/2 "2006-06-28T20:13:35Z")

</div>

> So, I have a few questions:
> 
> 1. If I execute a gem command and see:
> 
> C:\eclipse\workspace\>gem install actionpack 1.12.1  
> ERROR: While executing gem … (Gem::GemNotFoundException)  
> Could not find actionpack (\> 0) in the repository

Hm, I’m seeing this too, although only on Windows. I was able to fix it  
by deleting the source\_cache file, which on my machine is in:

c:\ruby\lib\ruby\gems\1.8\source\_cache

Then I did a “gem install ikko” and all was well.

Yours,

Tom

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:14pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/3 "2006-06-28T20:14:41Z")

</div>

What does gem install ikko do?

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:18pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/4 "2006-06-28T20:18:44Z")

</div>

Tom C. wrote:

> > So, I have a few questions:
> > 
> > 1. If I execute a gem command and see:
> > 
> > C:\eclipse\workspace\>gem install actionpack 1.12.1  
> > ERROR: While executing gem … (Gem::GemNotFoundException)  
> > Could not find actionpack (\> 0) in the repository
> 
> Hm, I’m seeing this too, although only on Windows. I was able to fix it  
> by deleting the source\_cache file, which on my machine is in:
> 
> c:\ruby\lib\ruby\gems\1.8\source\_cache
> 
> Then I did a “gem install ikko” and all was well.
> 
> Yours,
> 
> Tom

What is the purpose of deleting the source\_cache file? Is there any  
documentation about this anywhere so that I can learn about it?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:23pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/5 "2006-06-28T20:23:43Z")

</div>

Tom C. wrote:

> > So, I have a few questions:
> > 
> > 1. If I execute a gem command and see:
> > 
> > C:\eclipse\workspace\>gem install actionpack 1.12.1  
> > ERROR: While executing gem … (Gem::GemNotFoundException)  
> > Could not find actionpack (\> 0) in the repository
> 
> Hm, I’m seeing this too, although only on Windows. I was able to fix it  
> by deleting the source\_cache file, which on my machine is in:
> 
> c:\ruby\lib\ruby\gems\1.8\source\_cache
> 
> Then I did a “gem install ikko” and all was well.
> 
> Yours,
> 
> Tom

I’m making progress after deleting the source\_cache file.

I’d like to point out that the error message is “Could not find  
actionpack (\> 0) in the repository,” not “Could not find X in your  
_LOCAL COPY_ of the repository index” which frankly makes a big  
difference. If I knew about the source\_cache file, I would have deleted  
it.

Kind of confusing for the people moving to Ruby and Rails.

Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:19pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/6 "2006-06-28T20:19:11Z")

</div>

Thanks for the tip. I was having the problem on Debian Sarge. I  
deleted the source\_cache at  
/usr/lib/ruby/gems/1.8  
and all is well.

-bakki

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:37pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/7 "2006-06-28T20:37:40Z")

</div>

> What does gem install ikko do?

Ah, sorry, I just meant that as an example. I mean, then go ahead and  
do a “gem install abc”, where abc == the gem name.

Yours,

Tom

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:38pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/8 "2006-06-28T20:38:02Z")

</div>

> I’m making progress after deleting the source\_cache file.

Super!

> I’d like to point out that the error message is “Could not find  
> actionpack (\> 0) in the repository,” not “Could not find X in your  
> _LOCAL COPY_ of the repository index” which frankly makes a big  
> difference. If I knew about the source\_cache file, I would  
> have deleted  
> it.
> 
> Kind of confusing for the people moving to Ruby and Rails.

Yup, good point, might be worth it post a note to that effect here:

[http://rubyforge.org/tracker/?atid=575&group\_id=126&func=browse](http://rubyforge.org/tracker/?atid=575&group_id=126&func=browse)

I’m sure they’d appreciate feedback on the error messages; every bit  
helps…

Yours,

Tom

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [June 28, 2006, 8:41pm UTC](https://www.ruby-forum.com/t/how-to-handle-gem-repository-failures/96437/9 "2006-06-28T20:41:48Z")

</div>

> What is the purpose of deleting the source\_cache file?

I thnk that’s the local gem cache.

> Is there any  
> documentation about this anywhere so that I can learn about it?

Yup, you can read all about RubyGems here:

[http://rubygems.org/](http://rubygems.org/)

and there’s a rubygems-developers mailing list:

[http://rubyforge.org/mailman/listinfo/rubygems-developers](http://rubyforge.org/mailman/listinfo/rubygems-developers)

Yours,

Tom
