-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENETRESET in remote_fetcher:api_endpoint on Windows 7 / ruby 2.2 / gems 2.4.5 #1214
Comments
Wow, I've never seen that exception before. If you rescue |
Corporate network, Mcafee (a/v only), no software firewalls, no proxies. Came down to one simple thing: turn the Windows firewall ON. Turn it OFF, immediately able to reproduce error. Turn it ON and the gems start flowing again. GO FIGURE. Exact same computer hardware/software build right next to it, no issues retrieving gems with the M$ firewall up or down. Chalking this up to "user customization" of their workstation. "Nuke it from orbit... only way to be sure." -Hicks |
@tenderlove indeed |
I disabled my firewall, but was unable to reproduce this error. I tried various firewall configurations, too. Personally I'd blame McAfee. ;) Anyway, closing this one out as "unable to reproduce". |
Reproducing it right now on Windows 7 Ult x64 SP1 |
Tried same command using same notebook with same software but from another location with another internet provider and the command worked fine, so it might be network infrastructure related thing like MTU size somewhere on a router: D:\Work>gem update rhc If this is your first time installing the RHC tools, please run 'rhc setup' Successfully installed rhc-1.38.4 |
@cyberegg ur method worked for me |
@cyberegg Thanks!!! |
I also found @cyberegg's trick to work. I also found that 2 of my machines were in vmware that were running into this same issue and swapping out the vm nic from intel E1000 to vmxnet3 also fixed this issue with the firewall turned off. |
I was running- "gem install berkshelf", I got the same error. So when I ran "gem install bundle" first and then tried the "gem install berkshelf" - it worked!! |
Same here guys. I turned Windows Firewall ON,and it works. How is this possible I don't know. Anyway, @cyberegg ,thanks a lot. |
@cyberegg ,thx it worked for me ,I try the method three times ,after reborn my pc and permit the firewall tip window ,finally it run successfully. |
I had the same problem. Fixed by temporarily disabling my anti-virus (Symantec Endpoint Protection). |
Using rubyinstaller to install Ruby 2.2.1-x86 on windows 7 x64 machine. No proxy configured, no firewalls active, no antivirus software installed. Plain direct connection to internet.
Trying to execute any gem network operation fails with
This traces back to line https://github.com/rubygems/rubygems/blob/master/lib/rubygems/remote_fetcher.rb#L94
Maybe windows dns client cannot handle SRV requests(dunno, never looked into the cause of the problem)
This can be fixed if we replace
rescue Resolv::ResolvError
with plainrescue
or more specific dns resolve error handling.The text was updated successfully, but these errors were encountered: