# Hang when updating Gem source index

**URL:** https://rubytalk.org/t/hang-when-updating-gem-source-index/18242
**Category:** ruby-talk
**Created:** [9 May 2005 05:41 UTC](https://rubytalk.org/t/hang-when-updating-gem-source-index/18242 "2005-05-09T05:41:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Nick\_Triantos](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@Nick\_Triantos](https://rubytalk.org/u/Nick_Triantos)
#### Post date: [9 May 2005 05:41 UTC](https://rubytalk.org/t/hang-when-updating-gem-source-index/18242/1 "2005-05-09T05:41:57Z")

</div>

Hi,

Just installed Ruby 1.8.2-15 (win32 version) on a new Windows XP pc.  
When I try to 'gem install' some packages, the app hangs / gets stuck  
waiting as below.  
&nbsp;&nbsp;&nbsp;&nbsp;C:\Documents and Settings\nick\Desktop\>gem install rails --remote  
&nbsp;&nbsp;&nbsp;&nbsp;Attempting remote installation of 'rails'  
&nbsp;&nbsp;&nbsp;&nbsp;Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
&nbsp;&nbsp;&nbsp;&nbsp;--\> gets stuck here, I let it run for hours with no response

I've seen others reporting the issue here and elsewhere on the web, too,  
but I haven't seen any solutions that work. I did update  
rubygems-update to 0.8.10, that didn't change anything. Other gem cmds  
(gem update, gem list, etc. do the same thing, when they get to this  
same point.

Any ideas? Anything I can do to debug this? Is there a trace cmd or  
something like that in ruby?

thanks all,  
-Nick

---

<div class="post-metadata">

### Author: ![Assaph\_Mehr1](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@Assaph\_Mehr1](https://rubytalk.org/u/Assaph_Mehr1)
#### Post date: [9 May 2005 06:04 UTC](https://rubytalk.org/t/hang-when-updating-gem-source-index/18242/2 "2005-05-09T06:04:26Z")

</div>

> &nbsp;&nbsp;&nbsp;&nbsp;C:\Documents and Settings\nick\Desktop\>gem install rails --remote  
> &nbsp;&nbsp;&nbsp;&nbsp;Attempting remote installation of 'rails'  
> &nbsp;&nbsp;&nbsp;&nbsp;Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> &nbsp;&nbsp;&nbsp;&nbsp;--\> gets stuck here, I let it run for hours with no response

a. Updating the Gems source index can take a long time. Try and wait a  
few (more) \*minutes\*.

b. Are you behind a proxy? You should set the --http-proxy command line  
option (or .gemrc file option).

HTH,  
Assaph

---

<div class="post-metadata">

### Author: ![Chad\_Fowler4](https://avatars.discourse-cdn.com/v4/letter/c/9fc29f/32.png) [@Chad\_Fowler4](https://rubytalk.org/u/Chad_Fowler4)
#### Post date: [9 May 2005 11:30 UTC](https://rubytalk.org/t/hang-when-updating-gem-source-index/18242/3 "2005-05-09T11:30:17Z")

</div>

Hi Nick. Are you able to download the gem source manually with your  
browser? It's at [RubyGems.org | your community gem host](http://gems.rubyforge.org/yaml.Z%5C).

You could try using the tracer library, but it will give you a ton of output:

ruby -rtracer /path/to/gem install rails --remote \> outputfile.txt

After waiting a couple of minutes, the last few lines of  
outputfile.txt would probably be helpful in determining where the  
program is hanging.

> **···**
>
> On 5/9/05, Nick Triantos \<nick-gmane@triantos.com\> wrote:
> 
> > Hi,
> > 
> > Just installed Ruby 1.8.2-15 (win32 version) on a new Windows XP pc.  
> > When I try to 'gem install' some packages, the app hangs / gets stuck  
> > waiting as below.  
> > &nbsp;&nbsp;&nbsp;&nbsp;C:\Documents and Settings\nick\Desktop\>gem install rails --remote  
> > &nbsp;&nbsp;&nbsp;&nbsp;Attempting remote installation of 'rails'  
> > &nbsp;&nbsp;&nbsp;&nbsp;Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> > &nbsp;&nbsp;&nbsp;&nbsp;--\> gets stuck here, I let it run for hours with no response
> > 
> > I've seen others reporting the issue here and elsewhere on the web, too,  
> > but I haven't seen any solutions that work. I did update  
> > rubygems-update to 0.8.10, that didn't change anything. Other gem cmds  
> > (gem update, gem list, etc. do the same thing, when they get to this  
> > same point.
> > 
> > Any ideas? Anything I can do to debug this? Is there a trace cmd or  
> > something like that in ruby?
> 
> --
> 
> Chad Fowler  
> [http://chadfowler.com](http://chadfowler.com)
> 
> > **[Ruby Central](https://rubycentral.org)**
> >
> > Supporting the Ruby Community Since 2001
> 
> > **[WebMD - Better information. Better health.](https://www.rubygarden.org/)**
> >
> > The leading source for trustworthy and timely health and medical news and information. Providing credible health information, supportive community, and educational services by blending award-winning expertise in content, community services, expert...
> 
> [http://rubygems.rubyforge.org](http://rubygems.rubyforge.org) (over 300,000 gems served!)

---

<div class="post-metadata">

### Author: ![Nick\_Triantos](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@Nick\_Triantos](https://rubytalk.org/u/Nick_Triantos)
#### Post date: [9 May 2005 14:21 UTC](https://rubytalk.org/t/hang-when-updating-gem-source-index/18242/4 "2005-05-09T14:21:10Z")

</div>

Hi Chad (and Assaph),

Yes, I actually started it updating, went to dinner, and then came back to it 2 hours later. It was still at that point, and there was no activity on the link.

I am behind a linksys DSL firewall, but connections that start from my machine are ok (no proxies, etc.). I'm now trying it from another PC on my network (which did work before), and that one's stuck at that same spot, too. If I manually download the gems and then to a local install, they work fine.

thanks for your help,  
-Nick

Chad Fowler wrote:

> **···**
>
> > On 5/9/05, Nick Triantos \<nick-gmane@triantos.com\> wrote:
> > 
> > > Hi,
> > > 
> > > Just installed Ruby 1.8.2-15 (win32 version) on a new Windows XP pc.  
> > > When I try to 'gem install' some packages, the app hangs / gets stuck  
> > > waiting as below.  
> > > &nbsp;&nbsp;&nbsp;C:\Documents and Settings\nick\Desktop\>gem install rails --remote  
> > > &nbsp;&nbsp;&nbsp;Attempting remote installation of 'rails'  
> > > &nbsp;&nbsp;&nbsp;Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
> > > &nbsp;&nbsp;&nbsp;--\> gets stuck here, I let it run for hours with no response
> > > 
> > > I've seen others reporting the issue here and elsewhere on the web, too,  
> > > but I haven't seen any solutions that work. I did update  
> > > rubygems-update to 0.8.10, that didn't change anything. Other gem cmds  
> > > (gem update, gem list, etc. do the same thing, when they get to this  
> > > same point.
> > > 
> > > Any ideas? Anything I can do to debug this? Is there a trace cmd or  
> > > something like that in ruby?
> > 
> > Hi Nick. Are you able to download the gem source manually with your  
> > browser? It's at [RubyGems.org | your community gem host](http://gems.rubyforge.org/yaml.Z%5C).
> > 
> > You could try using the tracer library, but it will give you a ton of output:
> > 
> > ruby -rtracer /path/to/gem install rails --remote \> outputfile.txt
> > 
> > After waiting a couple of minutes, the last few lines of  
> > outputfile.txt would probably be helpful in determining where the  
> > program is hanging.
