ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported
See original GitHub issueSteps 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:
- 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:
- Created 5 years ago
- Reactions:33
- Comments:26 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ststeiger so which are the
launch
options? LikeOr do I need to add args:
['--no-sandbox', '--disable-setuid-sandbox']
as well?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