chrome-launcher icon indicating copy to clipboard operation
chrome-launcher copied to clipboard

open chrome-launcher failed [ ubunto wsl ] connect ECONNREFUSED 127.0.0.1:38073

Open baruch-mashasha opened this issue 4 years ago • 3 comments
trafficstars

Hey, I try to run chrome launch from my ubuntu and got the error: connect ECONNREFUSED 127.0.0.1:38073. What should I do? the same code works well on mac os.

Details: Operation System: windows sub system: ubunto.

baruch-mashasha avatar Dec 29 '20 15:12 baruch-mashasha

I had the same issue. It seems that chrome is launched correctly but here chrome-laucher cannot connect to the process using localhost as an address.

Looking for alternatives I also tried with export WSL_HOST_IP=$(awk '/nameserver/ { print $2 }' /etc/resolv.conf) cause it seems that in wsl 2 the localhost is not connected with windows OS anymore. However, the same method hanged there forever (not even firing connection errors).

My workaround was to install google-chrome on my ubuntu instance and force chrome-laucher to use it with CHROME_PATH env variable. I know it's not ideal but it works, the only artifact is that at every run it creates in CWD a folder called C:\Users\USER\AppData\Local\lighthouse.40377277. Any suggestion on how to remove this folder or specify a better place to create it, it's appreciated.

relu91 avatar Mar 16 '21 18:03 relu91

Bumping this.

Is there a way to change temp folder or set platform manually. Referring to utils_1.getPlatform(). I guess changing platform from wsl to linux would give us correct temp folders and remove the need of setting CHROME_PATH.

avblink avatar Sep 15 '22 08:09 avblink

Need to change location of temp folder too. Under azure functions it tries to use makeWin32TmpDir which is wrong.

khmyznikov avatar Feb 23 '23 10:02 khmyznikov