From: jigarjm@... Date: 2014-02-05T19:43:17+00:00 Subject: [ruby-core:60514] [ruby-trunk - Bug #9488] [Open] ruby/2.1.0/net/protocol.rb:153 - Resource temporarily unavailable - read would block Issue #9488 has been reported by jigar joshi. ---------------------------------------- Bug #9488: ruby/2.1.0/net/protocol.rb:153 - Resource temporarily unavailable - read would block https://bugs.ruby-lang.org/issues/9488 * Author: jigar joshi * Status: Open * Priority: Normal * Assignee: * Category: core * Target version: * ruby -v: 2.1.0 * Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- /opt/rubies/ruby-2.1.0/bin/gem env RubyGems Environment: - RUBYGEMS VERSION: 2.2.0 - RUBY VERSION: 2.1.0 (2013-12-25 patchlevel 0) [x86_64-linux] - INSTALLATION DIRECTORY: /opt/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0 - RUBY EXECUTABLE: /opt/rubies/ruby-2.1.0/bin/ruby - EXECUTABLE DIRECTORY: /opt/rubies/ruby-2.1.0/bin - SPEC CACHE DIRECTORY: /home/vagrant/.gem/specs - RUBYGEMS PLATFORMS: - ruby - x86_64-linux - GEM PATHS: - /opt/rubies/ruby-2.1.0/lib/ruby/gems/2.1.0 - /home/vagrant/.gem/ruby/2.1.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://rubygems.org/"] - REMOTE SOURCES: - http://rubygems.org/ - SHELL PATH: - /usr/local/bin - /bin - /usr/bin - /usr/local/sbin - /usr/sbin - /sbin - /home/vagrant/bin ------------------------------------------- $ /opt/rubies/ruby-2.1.0/bin/gem list -r | grep 'foodcritic' daptiv-foodcritic-rules (0.0.1) foodcritic (3.0.3) guard-foodcritic (1.0.2) rake-foodcritic (0.0.3) thor-foodcritic (1.1.0) -------------------------------------------- $ /opt/rubies/ruby-2.1.0/bin/gem install foodcritic --debug Exception `LoadError' at /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError Exception `Resolv::DNS::Config::OtherResolvError' at /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:548 - _rubygems._tcp.rubygems.org Exception `Resolv::ResolvError' at /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:492 - DNS result has no information for _rubygems._tcp.rubygems.org Exception `Errno::EEXIST' at /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/fileutils.rb:250 - File exists @ dir_s_mkdir - /home/vagrant/.gem/specs/rubygems.org%80 Exception `IO::EAGAINWaitReadable' at /opt/rubies/ruby-2.1.0/lib/ruby/2.1.0/net/protocol.rb:153 - Resource temporarily unavailable - read would block --------------------------------------------- what could be wrong here ? note: googling resulted into multiple thing (didn't work) - could be dns issue, I reset the dns setting similar to another machine (mac) where this command worked fine - removed https:// from source and added http:// -- http://bugs.ruby-lang.org/