Giter VIP home page Giter VIP logo

Comments (5)

canove avatar canove commented on July 22, 2024 4

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.

from whaticket-community.

luizoseas avatar luizoseas commented on July 22, 2024 2

run the command with another account other than root

from whaticket-community.

deepesh-agarwal avatar deepesh-agarwal commented on July 22, 2024 1

This https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox fixes the issue.

from whaticket-community.

deepesh-agarwal avatar deepesh-agarwal commented on July 22, 2024

When using:

sudo -u www-data bash
www-data@srv1:/root$ cd /var/www/whaticket/backend
www-data@srv1:~/whaticket/backend$ npm start

The error is now:

[nodemon] starting `node src/app.js`
Server started on port: 8080
(node:10078) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
[0829/030733.634647:FATAL:zygote_host_impl_linux.cc(116)] 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.

from whaticket-community.

WoneyBranga avatar WoneyBranga commented on July 22, 2024

I add "CHROME_ARGS=--no-sandbox --disable-setuid-sandbox" on ~/whaticket/backend/.env and fix my problem

from whaticket-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.