Jump to content
Bicrypto v4.4.2 + All Plugins ×

Whatsapp Gateway | Multi Device v8.5.1


Magd Almuntaser

Recommended Posts

4 minutes ago, Enno The Explorer said:

bisa dibuat pakai appsheet om, diintegrasikan ke mpwa

Saya pakai web framework ci4 om 😅 sent notif lewat api , absen berbasis RFID 125hz , nah kalau wa bengong gini jadi rada gimana gitu wkwkwkw pm saja om saya kirim source code website nya

Link to comment
Share on other sites

26 minutes ago, Enno The Explorer said:

di id cloudhost port 3100 dan 3120 berjalan lancar, mungkin hostingnya bermasalah kali mas 😄

node.js pakai v 16. type production jangan yang lain

solusinya gimana ya?

aku coba settingan other connected juga tapi mismatch. (QR dan wa tidak bisa konek)

sedangkan settingan hosting shared (use http link) tapi wa berjalan lancar.

Screenshot 2024-08-28 094419.png

Link to comment
Share on other sites

1 minute ago, Enno The Explorer said:

buka file env.nya mas..itu pasti url serverya jadi httpss , kelebihan s nya 1

ini yg bener env pake https apa http aja?

aku cek dan coba rubah ke http aja dan https tetep muncul errornya

Link to comment
Share on other sites

7 minutes ago, Unicode said:

ini yg bener env pake https apa http aja?

aku cek dan coba rubah ke http aja dan https tetep muncul errornya

tergantung, domain dan subdomain mas sebelumnya sdh di auto sll atau engga, klo saya pada saat buat domain pertama kali saya ssl dan saat buat sub domain untuk mpwa ini saya autossl lagi, jd bisa konek sesuai yang diharapka, klo mas bingung nnti sy bantu pakai remote anydesk

Link to comment
Share on other sites

I always disconncted with this node js betweeb 01.xx - 02.xx AM. But other apps with 1 network & diferent VM running well.
---
Precond:
1. aaPanel, latest
2. Node js, latest
3. MPWA, latest

image.thumb.png.a84cea450eca6e5472095096bc531cdc.png

Maybe this recomendation and temporary solution by my case.
---
Issue:
Node js always stop running everyday and the apps (MPWA) show normal status of node js.

Temporary Solution:
Using cron job on your panel. In my case using aaPanel.

1. Create a Restart Script
Create a file/script "restart-node.sh" that will stop and restart a Node.js application in your folder.

#!/bin/bash

# Path ke direktori aplikasi Node.js
APP_DIR="/www/wwwroot/domain.com/your-application"

# Nama file utama aplikasi Node.js
APP_SCRIPT="your-js.js"

# Ganti direktori ke aplikasi
cd $APP_DIR

# Cari PID (Process ID) dari aplikasi yang sedang berjalan
PID=$(ps aux | grep $APP_SCRIPT | grep -v grep | awk '{print $2}')

# Jika PID ditemukan, matikan proses
if [ -n "$PID" ]; then
  kill -9 $PID
  echo "Proses NODE JS dihentikan."
fi

# Mulai kembali aplikasi NODE JS di background
nohup node $APP_SCRIPT > app.log 2>&1 &
echo "Aplikasi NODE JS telah dimulai kembali."

2. Set Permission on Script

chmod +x /path/to/restart-node.sh or set: 644/754

3. Create Cron Job in aaPanel (Shell Script)

/bin/bash /path/to/restart-node.sh

4. Setup Daily Task (Time of Executing) & Execute

5. See the log result and PID of Node.JS

---

Thanks.

  • Like 3
  • Love 1
Link to comment
Share on other sites

41 minutes ago, Enno The Explorer said:

tergantung, domain dan subdomain mas sebelumnya sdh di auto sll atau engga, klo saya pada saat buat domain pertama kali saya ssl dan saat buat sub domain untuk mpwa ini saya autossl lagi, jd bisa konek sesuai yang diharapka, klo mas bingung nnti sy bantu pakai remote anydesk

ternyata bisa setelah mengikuti panduan om @Magd Almuntaser di page 40 namun setelah port connected, masalahnya adalah QR wa tidak bisa muncul 😅.

alhasil yasudah balik ke yg biasa aja hahaha

Link to comment
Share on other sites

43 minutes ago, MURASAKI. said:

I always disconncted with this node js betweeb 01.xx - 02.xx AM. But other apps with 1 network & diferent VM running well.
---
Precond:
1. aaPanel, latest
2. Node js, latest
3. MPWA, latest

image.thumb.png.a84cea450eca6e5472095096bc531cdc.png

Maybe this recomendation and temporary solution by my case.
---
Issue:
Node js always stop running everyday and the apps (MPWA) show normal status of node js.

Temporary Solution:
Using cron job on your panel. In my case using aaPanel.

1. Create a Restart Script
Create a file/script "restart-node.sh" that will stop and restart a Node.js application in your folder.

#!/bin/bash

# Path ke direktori aplikasi Node.js
APP_DIR="/www/wwwroot/domain.com/your-application"

# Nama file utama aplikasi Node.js
APP_SCRIPT="your-js.js"

# Ganti direktori ke aplikasi
cd $APP_DIR

# Cari PID (Process ID) dari aplikasi yang sedang berjalan
PID=$(ps aux | grep $APP_SCRIPT | grep -v grep | awk '{print $2}')

# Jika PID ditemukan, matikan proses
if [ -n "$PID" ]; then
  kill -9 $PID
  echo "Proses NODE JS dihentikan."
fi

# Mulai kembali aplikasi NODE JS di background
nohup node $APP_SCRIPT > app.log 2>&1 &
echo "Aplikasi NODE JS telah dimulai kembali."

2. Set Permission on Script

chmod +x /path/to/restart-node.sh or set: 644/754

3. Create Cron Job in aaPanel (Shell Script)

/bin/bash /path/to/restart-node.sh

4. Setup Daily Task (Time of Executing) & Execute

5. See the log result and PID of Node.JS

---

Thanks.

How about at shared hosting mas? Can we apply it too?

Edited by Gusik Prasetyo
Link to comment
Share on other sites

43 minutes ago, Enno The Explorer said:

nnti pesan bisa dikirim pakai API Direct url dari mpwa, nnti sy remotekan ya om 😄

Mas, idcloudhost mpwa 709 sering iddle ato lancar2 aja?

 

Hello sir @Magd Almuntaser I test on same hosting:

V.7.0.9: use cronjob every 5 minutes but often iddle and i have to restart nodejs. When iddle, i can't run autoreply, aibot, api.

V7.0.0 my whatsapp always connect even i don't use cronjob.

Link to comment
Share on other sites

14 minutes ago, Gusik Prasetyo said:

Mas, idcloudhost mpwa 709 sering iddle ato lancar2 aja?

 

Hello sir @Magd Almuntaser I test on same hosting:

V.7.0.9: use cronjob every 5 minutes but often iddle and i have to restart nodejs. When iddle, i can't run autoreply, aibot, api.

V7.0.0 my whatsapp always connect even i don't use cronjob.

Seperti biasa , setelah update saya paste server.js dari 7.0.0 🤣

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...