question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not open URL when launched from WSLv2

See original GitHub issue

Provide the steps to reproduce

  1. Run LH on google.com

What is the current behavior?

Chrome opens to about:blank

What is the expected behavior?

Chrome opens to google.com

Environment Information

  • Affected Channels: Node
  • Lighthouse version: 6.0.0-beta.0
  • Chrome version: 84.0.4120.0 (Official Build) canary (64-bit) (cohort: Clang-64)
  • Node.js version: v13.13.0
  • Operating System: Windows 10 2004 with WSLv2

Related issues

Lighthouse is installed inside of WSL, if I then run it from zsh/bash, it opens a blank Chrome video instead of the URL I passed

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Stanzillacommented, Apr 20, 2020

Yup, pretty much.

image

This is as far as it gets.

1reaction
patrickhulcecommented, Apr 20, 2020

Hm, seems like there are intermittent WSL issues with localhost binding https://github.com/microsoft/WSL/issues/4636 maybe try some of the remediation techniques there?

Restarting LxssManager from windows services worked for me. I hope it keeps on working 🤞

Seemed to have some success for folks.

cc @wardpeet do you use WSL and do you remember encountering anything like this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local sites running in WSL2 not accessible in browser #5298
When starting a site/app locally on my computer in WSL 2 ( Ubuntu 20.04 LTS (GNU/Linux 4.19.84-microsoft-standard x86_64)), the browser won't ...
Read more >
Open browser in host system from Windows Subsystem for ...
Should be "/bin/host_chrome" . However the browser opens, but it does not open the URL in question. Just the blank start page. –...
Read more >
WSL (Ubuntu): how to open localhost in browser from bash ...
You can invoke the Windows command line from Bash and use Windows file association to open URL with the default Windows browser.
Read more >
Web development with Python on Windows
A step-by-step guide to get started using Python for web development on Windows, including set up for frameworks like Flask and Django.
Read more >
Developing in WSL - Visual Studio Code
Developing in WSL. The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found