-
Notifications
You must be signed in to change notification settings - Fork 826
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
Chrome fails to launch in headless mode #2235
Comments
@nesl247 To summarize that thread for you, by default, chrome uses two Linux features that are currently unimplemented surface in WSL, namely namespaces/sandboxes, and udev. Ken wrote a stub library that just returns "all clear" for libudev calls, and you also need to run without the sandbox. |
Thanks for reporting the issue. Closing this out as a duplicate. |
@stehufntdev Why close it as a duplicate, the other is not open. |
Also thanks to everyone else for the info. |
Sorry, I thought the other one was still open. Re-opened for now. |
More the merrier. Fundamentally this is a dupe of #1121. The trap above is actually because of |
By the way, user namespaces will return a similar error on Arch, which has consistently refused to ship with the User Namespaces functionality and patches enabled (a stance that has been vindicated several times with the numerous vulnerabilities that have been discovered in UNS since then). They choose instead to setuid on the sandbox, or something to that effect, I believe. I'm actually curious how the sandbox will fail on an Arch image. Possibly it might fail due to unix capabilities again (like ping was failing in an issue earlier), but then I wonder what if I setuid it. Gonna roll your libudev stub for Arch, probably write a PKGBUILD in case others want to try it and report back. |
Update: The setuid sandbox fails differently but fundamentally again on another clone flag, going to open a new issue. |
fwiw (I hate to be a wet blanket), not being able to launch chrome to run karma tests kind of kills using WSL for me (and my team...) There's no way to run the same node_modules install from windows and WSL, so you're left removing / reinstalling on the windows side to run tests -- in which case why am I bothering with WSL...? Is it possible to launch any browser from the WSL side for karma testing? |
@chadbr - Firefox works well for me provided you have an X11 server listening on DISPLAY=0:0 |
@chadbr - excellent.... |
Fixed in 16273. |
I'm still seeing error on 16299.15, should I file another issue or just here?
|
Not having any luck either...
|
I'm trying to run chrome in headless mode to integrate it into Karma. Unfortunately it doesn't seem to be working in WSL at all.
Running: Microsoft Windows [Version 10.0.15063]
Attached is the output of strace.
chrome1.log.txt
chrome2.log.txt
chrome3.log.txt
The text was updated successfully, but these errors were encountered: