npm install fails with ECONNRESET on new OSS environment
This project intermittently fails with ECONNRESET while doing npm install: https://ci.appveyor.com/project/floydpink/swara-server/history
After some investigation it seems requests to some URL(s) are being throttled by IP. We tried from VM on different IP from the same subnet and the problem was not reproducible. New environment VMs are working behind NAT and have a single external IP.
Is there any way to track down the issue to a specific npm package or even resource URL?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Hari Menon on 15 Jul, 2015 02:26 AM
Apologies about the delayed response on this, Feodor.
As had mentioned in one of the tweets, here is the list of packages that npm seemed to have failed in the original repo, shown against the build numbers:
1.0.49 - escape-string-regexp
1.0.48 - gulp
1.0.47 - kerberos
1.0.46 - ws (not definitive)
1.0.45 - ws (not definitive)
1.0.44 - ws (not definitive)
1.0.43 - v8-debug
I also have created a smaller repo that also seems to be failing with the same error: https://ci.appveyor.com/project/floydpink/appveyor-npm-issue
Thanks for your help in figuring out and fixing this issue.
Support Staff 2 Posted by Feodor Fitsner on 15 Jul, 2015 02:58 AM
Nope, this must be something else. 8 builds in a row - all successful: https://ci.appveyor.com/project/FeodorFitsner/npm-test/history
Is there any way to "see" what request fails?
3 Posted by Hari Menon on 15 Jul, 2015 03:24 AM
I added the
-ddflag to thenpm installcommands to get verbose logging enabled in this build which has also errored. But just scrolling down to the end of the log is proving to be a Himalayan effort - perhapsDownload Logwould be a nice-to-have feature for things like this. :)Support Staff 4 Posted by Feodor Fitsner on 15 Jul, 2015 03:44 AM
Such a big log is no go anyway. It's just easier to click "Download log" - 12 MB :)
Support Staff 5 Posted by Feodor Fitsner on 15 Jul, 2015 03:46 AM
Does this piece means the problem is in
lodash.repeatorasync?Support Staff 6 Posted by Feodor Fitsner on 15 Jul, 2015 03:54 AM
It's really hard to understand what module/script throws that exception.
Those two work: https://ci.appveyor.com/project/FeodorFitsner/npm-test/build/1.0.11...
7 Posted by Hari Menon on 15 Jul, 2015 11:17 AM
I understand it is not straight forward even with the verbose log.
How do I download the log from the build? I would like to take a look as well.
8 Posted by Hari Menon on 15 Jul, 2015 02:41 PM
Never mind, I see the button now that I checked from my laptop. Just curious, was that button always there? :)
Support Staff 9 Posted by Feodor Fitsner on 15 Jul, 2015 02:59 PM
Yeah, it's been there from early beginning :)
- Feodor
10 Posted by Hari Menon on 15 Jul, 2015 03:04 PM
I realized that now. For sure, I was sleep-deprived when trying look for that button yesterday!
Unfortunately, I do not understand the error message either. There are a couple of
msbuilderrors which you also might have seen. Not sure if those are what caused the issue.I will add you into the test repo - feel free to make any changes there.
11 Posted by Hari Menon on 21 Jul, 2015 10:33 PM
The mysterious issue still persists - https://ci.appveyor.com/project/floydpink/swara-server/history
12 Posted by Gyandeep Singh on 22 Jul, 2015 06:20 PM
Here is an another example where it has happened quite a few times: https://ci.appveyor.com/project/nzakas/eslint/branch/master/job/3mid80rfvg8fqsxa
Support Staff 13 Posted by Feodor Fitsner on 22 Jul, 2015 06:25 PM
Yeah, it looks bad. There is definitely something wrong - I'm trying to understand the cause of this issue as on Pro environment it's not reproducible.
Support Staff 14 Posted by Feodor Fitsner on 02 Aug, 2015 08:07 PM
Great news, the issue has been fixed! :)
We removed RRAS with NAT, so every build worker is directly connected to a public network. Most probably that was NAT not working nicely with Node.js. However, there is still possibility that some web resource is throttling requests by IPs.
15 Posted by Hari Menon on 02 Aug, 2015 08:41 PM
awesome - thank you!
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 AM.