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.

ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported

See original GitHub issue

Steps to reproduce

Tell us about your environment:

  • Puppeteer version: 1.11.0
  • Platform / OS version: Chrome version: 71.0.3578.98-1 Channel: stable OS Version: Debian GNU/Linux 8 (jessie) Flash Version:
  • URLs (if applicable):
  • Node.js version: 6.4.1

What steps will reproduce the problem?

Steps to reproduce the problem:

  1. When I am trying to launch the headless browser in puppeteer i am seeing the error message as . 15:40:19 Error: Failed to launch chrome! 15:40:19 [1220/234018.696360:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180. 15:40:19 15:40:19 15:40:19 TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md 15:40:19

The code snippet: const puppeteer = require(‘puppeteer’); describe(’ SC Station Test’, () => { test(Station Scan Test , async () => { browser = await puppeteer.launch({args: [‘–no-sandbox’]}); page = await browser.newPage(); await page.goto(“https://www.google.com/”) await browser.close(); }, 20000); });

What is the expected behavior? It should able launch the headless browser and able ot execute the tests

What went wrong?

Did this work before? It didn’t

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:33
  • Comments:26 (1 by maintainers)

github_iconTop GitHub Comments

128reactions
loretoparisicommented, Jun 22, 2019

@ststeiger so which are the launch options? Like

puppetteer.launch({
   headless: true,
   args: ['--no-sandbox']
})

Or do I need to add args: ['--no-sandbox', '--disable-setuid-sandbox'] as well?

20reactions
sabin-bhattarai-ckocommented, Jun 27, 2019

This worked for me RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running as root without --no-sandbox is not supported.
23603:23603:0405/215332.263545: ERROR : zygote_host_impl_linux. cc (90)] Running as root without -- no - sandbox is not supported.
Read more >
Running as root without --no-sandbox is not supported
After starting with resin-electronjs I've since updated to electron 5 since I was having some issues with UI elements.
Read more >
Docker , ERROR:zygote_host_impl_linux.cc(89)] Running as ...
Running as root without --no-sandbox is not supported - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing ...
Read more >
no-sandbox is not supported) error in centos - LinuxHelp
Answer: To fix the above (Running as root without --no-sandbox is not supported) error, use following steps: step1: Edit the below file vim ......
Read more >
no-sandbox is not supported ,已解决_不渴望力量的哈士奇的 ...
linux下运行google-chrome google-chrome http://www.baidu.com 错误信息ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is ...
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