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.

[Help] Running as root without --no-sandbox is not supported.

See original GitHub issue

Definitely not a whatticket issue but where to add the --no-sandbox to run all of this as root?

[nodemon] starting `node src/app.js`
Server started on port: 8080
(node:23531) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
[0828/114941.087419:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
canovecommented, Aug 28, 2020

The right decision is to run WhaTicket without root. But there is a workaround, by editing a file in WWebJS lib:

Edit node_modules/whatsapp-web.js/src/util/Constants.js , adding this args:

image

ps.: It’s not recommended, since every update you will need to make this changes again.

2reactions
luizoseascommented, Aug 28, 2020

run the command with another account other than root

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR:zygote_host_impl_linux.cc(89)] Running as root ...
Steps to reproduce the problem: When I am trying to launch the headless browser in puppeteer i am seeing the error message as...
Read more >
FATAL: Running as root without --no-sandbox is not supported ...
I had a similar issue when I run my electron app with sudo: sudo ./MyElectronApp ... Running as root without --no-sandbox is not...
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 >
Fix "running as root without -no-sandbox" Error in Puppeteer
The solution is straightforward but comes with some caveats. To fix the error outright, we can add some flags to the Puppeteer browser...
Read more >
Running as root without --no-sandbox is not supported. what ...
You need to make sure that /tmp/.mount_JoplinYYcZ7h/chrome-sandbox is owned by root and has mode 4755. ... Can Someone help me out with simple ......
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