vasani-arpit / WBOT

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

I got error running nodemon #102

Closed indragunawan82 closed 4 years ago

indragunawan82 commented 4 years ago

Capture

vasani-arpit commented 4 years ago

You need to install following dependencies

sudo apt-get install gconf-service libasound2 libatk1.0-0 libatk-bridge2.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
indragunawan82 commented 4 years ago

problem still occur

vasani-arpit commented 4 years ago

@gnadelwartz, Will you help @indragunawan82? This looks like your expertise.

gnadelwartz commented 4 years ago

do you run on a Linux server without running x11 or display not set?

if yes you can use xvfb virtual x11 server to run WBOT. Ubuntu?

http://manpages.ubuntu.com/manpages/trusty/man1/xvfb-run.1.html

indragunawan82 commented 4 years ago

image

image

not working

indragunawan82 commented 4 years ago

does this WBOT working in ubuntu? or i should change to other OS (exclude windows) ?

gnadelwartz commented 4 years ago

may be I missed something, but what is the command nodemon for? usually you start WBOT with the command wbot...

nevertheless to have a running X11 you must use

xvfb-run wbot

or (maybe) in your case

xvfb-run nodemon

if this does not work for you you may try on windows or mac. in case you are a developer, can try https://github.com/smashah/sulla as base for your bot.

my srlf made bot is based in it

gnadelwartz commented 4 years ago

ah, I see what nodemon is for. does wbot run if you start it manually?

indragunawan82 commented 4 years ago

image

gnadelwartz commented 4 years ago

you must be in the base dir, not src dir, the app can not open json. try:

cd /var/www/html/WBOT-0.11
node src/index.js

running with node should only done when you are famliar with node.js and know to debug an app. all others should use the compiled version

indragunawan82 commented 4 years ago

image

gnadelwartz commented 4 years ago

xvfb-run node src/index.js

if this does not go further, I'm done ...

indragunawan82 commented 4 years ago

The main problem is ENOENT sir why this ENOENT happened?

indragunawan82 commented 4 years ago

image

does anyone able to run WBOT in ubuntu 18 ?

gnadelwartz commented 4 years ago

enoent say: file or dir does not exist, dies the chrome binary is in the path shown?

indragunawan82 commented 4 years ago

image

nothing in there sir

gnadelwartz commented 4 years ago

rm the complete Linux-xxx path and try again ...

only to be shure, the user you are using is owner of WBOT dir has full acess right to it?

gnadelwartz commented 4 years ago

as last ressort change the following line

https://github.com/vasani-arpit/WBOT/blob/1f172d5af63a3765dc22cbb742b60ba78113e1f5/src/index.js#L73

to point to native chrome installation on Ubuntu...

which chromium-browser should show the installation path

ryahpalma commented 4 years ago

I also tried to use the nodemon but was unsuccessful.

vasani-arpit commented 4 years ago

Try localtunnel @ryahpalma @indragunawan82

indragunawan82 commented 4 years ago

image

previouse error are fix, now i got new error

indragunawan82 commented 4 years ago

image

why i always go to exception?

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.