vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
990 stars 314 forks source link

Nacl Helper Process #223

Closed indragunawan82 closed 3 years ago

indragunawan82 commented 3 years ago

After installation in linux, i got error :

image

vasani-arpit commented 3 years ago

This is a problem from puppeteer(chromium) side.

Please add '--disable-setuid-sandbox' in the list of arguments array in constats.js and try.

indragunawan82 commented 3 years ago

image

still same

vasani-arpit commented 3 years ago

I am assuming you are built the project again or running it wia npm run start

another thing which you can cross check is puppeteer requires following packages installed in order to run properly. Make sure you have them all.

sudo apt update && sudo apt install -y gconf-service libgbm 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

the above is for ubuntu.

indragunawan82 commented 3 years ago

still same ,
have u tried this in ubuntu 20?

vasani-arpit commented 3 years ago

Yes. Do one thing. Try to run hello world of puppeteer in headless mode. Once that is successful WBOT can run easily.

indragunawan82 commented 3 years ago

following discussion in here : https://github.com/puppeteer/puppeteer/issues/290

and tried this suggestion : image

by adding parameter --headless in constants.js image

it works,