Skip to content
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

Puppeteer + Lighthouse already successfully running on RHLS but when trying to run pa11y, get Failed to launch chrome Error #411

Closed
29rayb opened this issue Jun 15, 2018 · 2 comments

Comments

@29rayb
Copy link

29rayb commented Jun 15, 2018

I already have Puppeteer + Lighthouse successfully running on RHLS 7.4 but when trying to run pa11y for the first time, got the following error message:

Unhandled Rejection at: Promise Promise {
17:16:07 [Lighthouse & Pa11y Tests]   <rejected> Error: Failed to launch chrome!
17:16:07 [Lighthouse & Pa11y Tests] [0614/171607.549811:FATAL:zygote_host_impl_linux.cc(127)] No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

Expected behaviour

Should not happen as I already set this up for when I used Puppeteer with lighthouse ??

Actual behaviour

The output above

@rowanmanning
Copy link
Member

Hi @ray-kim-12, it's possible that working out #410 will help with this. OK if we try and get that working first?

@hollsk
Copy link
Member

hollsk commented Aug 28, 2018

Hi @ray-kim-12 - you can try to work around this by running chrome with the --no-sandbox flag enabled:

chromeLaunchConfig: {
    args: ['--no-sandbox']
}

@29rayb 29rayb closed this as completed Aug 31, 2018
kowalcj0 added a commit to kowalcj0/pa11y-dashboard that referenced this issue May 15, 2020
This is to fix issue with launching Chrome
Failed to launch chrome!
No usable sandbox!
Update your kernel or see
https://chromium.googlesource.com/chromium/src/+/master/docs/linux_suid_sandbox_development.md
for more information on developing with the SUID sandbox.
If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.

pa11y/pa11y#411
https://github.com/pa11y/pa11y#chromelaunchconfig-object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants