rubygems doesn't catch NO_PROXY for certain hosts, and rubygems fails when one remote source is unavailable
I have a couple problems that cropped up and I'm not sure if they are Rubygems problems or not.
I have the latest Rubygems version on 1.9.2 (1.7.2)
and I have been trying to get geminabox working
locally. In my tests on running it at
http://localhost:9292, rubygems seems to not recognize
my NO_PROXY environment variable that has
localhost included in it.(http://docs.rubygems.org/read/chapter/13#page51).
Additionally, even if I specify --no-http-proxy, it
still tries to connect through the proxy, where I get HTTP 502
errors from my proxy server.
Leading to the second issue, I added my localhost
server to the REMOTE SOURCES listing, and now that the
server isn't running, I can't download any gems at all. It seems
that Rubygems just halts when it can't find the specs.gz file for
one of my remote sources, even though rubygems.org isn't down:
PS C:\mydocs> gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.7.2
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: C:/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/Ruby192/lib/ruby/gems/1.9.1
- C:/mydocs/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org/", "http://localhost:9292/"]
- "maven" => {"plugin_version"=>"0.25.1"}
- "gem" => "--no-ri --no-rdoc"
- "install" => "--no-rdoc --no-ri --env-shebang"
- "update" => "--no-rdoc --no-ri --env-shebang"
- REMOTE SOURCES:
- http://rubygems.org/
- http://localhost:9292/
PS C:\mydocs> gem install pry
ERROR: Could not find a valid gem 'pry' (>= 0) in any repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Bad Gateway 502 (http://localhost:9292/latest_specs.4.8.gz)
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Nick Quaranto on 27 May, 2011 12:32 AM
Any luck with this? I haven't heard or seen other reports...and we don't have many windows users besides that. Can you
curlit? Download gems manually from it?3 Posted by Nick on 27 May, 2011 03:07 AM
Unfortunately, I haven't had much time to work on getting a gem server set up since that time.
However, I can say that if I modify the .gemrc to include what would be a localhost server, all gem commands fail to work, even if the other locations are good.
For instance, if I have a gem server set up at http://localhost:8080, and let's assume it's not running:
no command will work, since it seems to just flop out once it gets a 502 from my non-existent localhost server. The reason I bring this up is that while
rubygems.orgis a reliable server (thank goodness), I have a somewhat less-than-reliable server for Torquebox(http://www.torquebox.org), and my own localhost server set up as well. Since either one of those could be down, I essentially have to remove those from the remote sources before I can do anything at all viabundlerorrubygems.Support Staff 4 Posted by Luis Lavena on 19 Jun, 2011 04:13 PM
Hello,
I believe that the no host failure has been reported to RubyGems itself already:
https://github.com/rubygems/rubygems/pull/105
Bugs on RubyGems itself should be addressed in that particular tracker.
Feel free to close this out if I'm correct.
Nick closed this discussion on 19 Jun, 2011 04:47 PM.
Nick re-opened this discussion on 19 Jun, 2011 04:48 PM
5 Posted by Nick on 19 Jun, 2011 04:48 PM
Sounds like pull #105 is addressing this specific issue. Will close this. Thanks.
Support Staff 6 Posted by Luis Lavena on 22 Jun, 2011 08:39 PM
Oops, seems your reply reopened this. Closing this now.
Thank you!
Luis Lavena closed this discussion on 22 Jun, 2011 08:39 PM.