lighthouse: ECONNREFUSED When launching multiple Chrome instances
Hello! I don’t know why, but when I try to execute multiple instances of Chrome in a Linux env, I get this error:
[ERROR] connect ECONNREFUSED 127.0.0.1:39537
at Object.exports._errnoException (util.js:1050:11)
at exports._exceptionWithHostPort (util.js:1073:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14)
I’ve been trying to find more information about this, but I don’t know where to start from.
Any idea about what may be the problem?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (5 by maintainers)
@LucianoGanga
you have an error in your code when you upgraded to latest chrome-launcher.
heres the launch options you want:
you may also want
--no-sandbox
in there as well… I just ran into requiring that.@LucianoGanga, you said after upgrading your hardware the problem was gone. Can you remember what exactly made the point?
We are running into the exact same problems when doing more than four lighthouse runs in parallel.
Thank you for your feedback.
How are you launching and consuming chrome? Lighthouse as a node module?
chrome-launcher
and your own connection to Chrome?If you’re using the latest chrome-launcher module, it should be waiting until the port is available but you’ll have to make sure you’re awaiting for the promise resolution before connecting.
I also get same problems
I am able to reproduce this. here’s the steps
install travis node-js image
setup things within the travis shell:
then create an index.js with the code from @LucianoGanga’s comment above. and run:
Thanks for circling back around to let us know! That certainly would explain my difficulty reproing on a 64-core linux box 😃
Feel free to reach out again if you run into new issues!
Any comments will be really appreciated! We’re currently blocked with this!
Anyone? @patrickhulce?
So far, It appears to be an specific Linux problem (because it works fine in our macs, but not on our servers):
We’re basically reproducing this on Linux when:
Can you help us to reproduce if you’re getting the same error on your Linux env?