Posts posted by MURASAKI.
-
-
1 hour ago, Johnson Liu said:
Hello, here is the error in my aapanel pm2 manager, after setting it up, it's not running and showing this error.
[PM2][Initialization] Environment variable HOME (Linux) or HOMEPATH (Windows) are not set! [PM2][Initialization] Defaulting to /etc/.pm2 [PM2][ERROR] Script not found: /www/server/panel/ndoepunke ,please take a look
May I ask bro, what version do you using mpwa? Lates?
If yes, this mpwa have modified can running without pm2, if you consent it a stabillity for the apps, you just run the node js without pm2. For the case if stopped running, it can set cron job for 1 hour to restrat the node js.
May this help you.
-
3 minutes ago, Magd Almuntaser said:
Tell the WhiskeySockets/Baileys team it's their problem 😅
I'm just one person trying to fix other people's problems 🥲Yes, thanks for the explanation brother, I have added my own error handling based on WhiskeySockets/Baileys for my ecosystem needs.
2 minutes ago, Mahmoud said:@MURASAKI. I see that you are the only member who constantly complains about problems
I find this strange,
Note that you are receiving free help and no one is obligated to help you, so instead of complaining constantly, try to gain some experience in configuring your server properly.
Yes, you are right, I am not required or obliged to get help for the problem I am facing.
I have actually figured out and fixed my problem myself, but I need a little explanation regarding some conditions because the WhiskeySockets/Baileys library can sometimes be tricky.
Note: I also help a little bit to prepare content, testing, etc. before the latest version is released.
-
18 minutes ago, Magd Almuntaser said:
It's normal, because the WhiskeySockets/Baileys library doesn't support receiving empty txt files because the library tries to know the file size from the text and since it's empty the library doesn't recognize it and stops.. I can fix that in the next version since I have a new fork of the library and I no longer use WhiskeySockets/Baileys directly
Owh, the problem its just handling error about "receiving empty txt" right ? so become the node js stop running.
-
-
2 minutes ago, Unicode said:
@MURASAKI. my MPWA no issues till now and no disconnect issue
I think, its not the right answer bro. May you see the log i send?
Of course, the applications I install must have different ecosystems, and I use an ecosystem that meets general standards.
-
Issue:
The Node JS has stooped working. Why the server JS send empty file?Precond:
1. MPWA, latest
2. Node JS, latest
Error:[32mINFO[39m [2024-09-17 08:57:05.485 +0700]: [36mconnection errored[39m trace: "AxiosError: Request failed with status code 400\n at settle (/www/wwwroot/domain.com/app/node_modules/axios/dist/node/axios.cjs:2019:12)\n at IncomingMessage.handleStreamEnd (/www/wwwroot/domain.com/app/node_modules/axios/dist/node/axios.cjs:3135:11)\n at IncomingMessage.emit (node:events:531:35)\n at endReadableNT (node:internal/streams/readable:1696:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (/www/wwwroot/domain.com/app/node_modules/axios/dist/node/axios.cjs:4287:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.upload (/www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js:542:30)\n at async /www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js:123:28\n at async Promise.all (index 0)\n at async prepareWAMessageMedia (/www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js:121:40)\n at async generateWAMessageContent (/www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js:416:13)\n at async generateWAMessage (/www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js:563:59)\n at async Object.sendMessage (/www/wwwroot/domain.com/app/node_modules/@whiskeysockets/baileys/lib/Socket/messages-send.js:687:33)\n at async Object.sendMedia (/www/wwwroot/domain.com/app/server/whatsapp.js:352:12)" uploadResult: { "debug_info": { "retriable": false, "type": "EMPTY_FILE_V4", "message": "Cannot process empty file"
-
Testcase Functionality & Non-Functionality MPWA 8.5.1 (update from panel)
Monday, 16 Sep 2024 19.35 PM Till End.
Creator: Murasaki.
---
A. Functionality
1. Update version from Admin, FAIL
- After update from the apps, show "Undefined constant STDIN". But just resferh the page or relogin, it solved.2. Manual Add Phone Book from Snacked Admin, FAIL
- Still same, it cant creaete from manual for snacked admin. Other theme it works.3. Schedule delete history message from setting, FAIL
- Its must with cron job or not? the history still there.
---
B. Non-Functionality
1. Node JS Status, Need to evalute the Node JS without Cron JOB for few days, and see the result.2. Server Status, Need to evalute the Server performance for few days, and see the result. But right now status so far so GUUD!
3. Compatibility with Reverse Proxy, Need to evalute the reverse proxy, and see the result.
---
But WELL DONE brother, nice work. 🔥🔥🔥🔥#MenyalaMPWAKUUH.
-
3 hours ago, Dewa IQOOZ7 said:
maybe you can try to start and stop node js from shared host terminal using cloudlinux-selector
cloudlinux-selector stop --json --interpreter nodejs --user usercpanel --app-root /home/usercpanel/pathproject
cloudlinux-selector start --json --interpreter nodejs --user usercpanel --app-root /home/usercpanel/pathproject
or restart
and then create bash script or use exec with php script, run it on cron
nah, for cpanel.
Thanks for sharing with us.
-
7 minutes ago, Remos said:
@MURASAKI. Please can you send for cpanel
I never tried cpanel bro, sory.
-
23 minutes ago, Remos said:
@MURASAKI. Please can you send the auto restart nodejs cron jobs
6 minutes ago, Unicode said:Just upload and open your url.
Cron job for restart nodejs on hosting is imposible. You can do it if using vps
Sory for late reply, i was handle to many damn request for my work.
I never using and test on cpanel on shared hosting, maybe this guide to help "auto restart nodejs cron jobs" with aaPanel based on my case:
---
1. Create Script Restart: restart-node.sh on your directory#!/bin/bash # Path ke direktori aplikasi Node.js APP_DIR="/www/wwwroot/yourwebsite.com/mpwa" # Nama file utama aplikasi Node.js (misalnya server.js) APP_SCRIPT="yourjsfile.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 dengan PID $PID dihentikan." else echo "Proses Node.js tidak ditemukan, aplikasi mungkin belum berjalan." fi # Mulai kembali aplikasi Node.js di background nohup node $APP_SCRIPT > app.log 2>&1 & echo "Aplikasi Node.js telah dimulai kembali."
2. Create Cron Job: restart-node.sh | Setup Every 1 Hours
/bin/bash /www/wwwroot/yourwebsite.com/yourapps/restart-node.sh
Thats it.
-
-
5 minutes ago, mdis said:
If without cronjob send messages per minute via API the connection is often lost and I have to restart my node.js
Is this happening because I am using shared hosting or is there an error in the script,
If anyone has a stable script please share it with me
thank youSome shared hosting will disconected the socket, why? because it is considered an anomaly on their log. So the solution is you must setup the cronjob on periodik time (1 hour/ 30 minutes) to restart the node js.
Next you must upgrade to the VPS for stable the sockets (spesially whiskey/baileys). I have been connected with MPWA version for 3 weeks with VM, not shared hossting.
Maybe this help you.
-
3 hours ago, Enno The Explorer said:
ya tentu saja, saya sdh mencobanya dan add name dan nimber sacara manual berhasil di tema snack admin
Reset Password : Success 💚
**********************************************File Manager : Success 💚
**********************************************Export Phonebook : Success 💚
**********************************************Campaign Snacked Admin (Theme) : Succes 💚
Campaign Eres & Eres Compact (Theme) : Success 💚
**********************************************Text Message : Success 💚
Media Message : Success 💚
Poll Message : Success 💚
List Message : Success 💚
Location Message : Success 💚
Vcard Message : Success 💚
**********************************************Automatically delete message history : Success 💚
**********************************************
Auto Replay Message (All Function): Success 💚
**********************************************
Api Test Message (All Function) : Success 💚
**********************************************
AI BOT One Bot (All Function): Success 💚
AI BOT Multi Bot (All Function): Success 💚
**********************************************
Webhook (All Function): Success 💚
**********************************************Mpwa : v8.0.5
Node.js : v20
Php : v8.2
Server.js : Modifikasi
Cronjob : Tidak adaMulai :
Tgl 05/09/24 Jam 10.02
s.d
Tgl 05/09/24 Jam 10.42
Durasi = +- 40 menit
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 10.42
sd
Tgl 05/09/24 Jam 13.50
Durasi = +- 2 Jam
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 13.50
sd
Tgl 05/09/24 Jam 19.11
Durasi = +- 5 jam
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 19.11
sd
Tgl 06/09/24 Jam 05.11
Durasi : +-10 Jam
Tes : Pesan Api 1x dan Autoreplay 1x
Hasil : Success & Still Online 💚Hasil Akhir : Semua Fitur Succes dan 8.0.5 Stabil
No, you miss a thing. On your list phonebook its fecth from WhatsApp Group not create manual. See the (ID: xxxxx) its fetch from WA Grup.
What a mean is you create manully a phonebook. Aftar that, add name and number manually too. See the result.
-
20 minutes ago, Gak Taw said:
ofc first action restart node sir, still not working
i dont know before on this forum say node stop, wa stop, more problem, but me dont have problem, and now all people working properly but now me have problemFYI :
i use local server ubuntu LTS
node v20
php 82
aapanelYou must find the proccess node js from terminal and find the PID of node js.
After that, you can kill and kill tree PID proccess of node js.
-
27 minutes ago, Enno The Explorer said:
Reset Password : Success 💚
**********************************************File Manager : Success 💚
**********************************************Export Phonebook : Success 💚
**********************************************Campaign Snacked Admin (Theme) : Succes 💚
Campaign Eres & Eres Compact (Theme) : Success 💚
**********************************************Text Message : Success 💚
Media Message : Success 💚
Poll Message : Success 💚
List Message : Success 💚
Location Message : Success 💚
Vcard Message : Success 💚
**********************************************Automatically delete message history : Success 💚
**********************************************
Auto Replay Message (All Function): Success 💚
**********************************************
Api Test Message (All Function) : Success 💚
**********************************************
AI BOT One Bot (All Function): Success 💚
AI BOT Multi Bot (All Function): Success 💚
**********************************************
Webhook (All Function): Success 💚
**********************************************Mpwa : v8.0.5
Node.js : v20
Php : v8.2
Server.js : Modifikasi
Cronjob : Tidak adaMulai :
Tgl 05/09/24 Jam 10.02
s.d
Tgl 05/09/24 Jam 10.42
Durasi = +- 40 menit
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 10.42
sd
Tgl 05/09/24 Jam 13.50
Durasi = +- 2 Jam
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 13.50
sd
Tgl 05/09/24 Jam 19.11
Durasi = +- 5 jam
Tes : Pesan Api 1x
Hasil : Success & Still Online 💚Tgl 05/09/24 Jam 19.11
sd
Tgl 06/09/24 Jam 05.11
Durasi : Target +- 10 Jam ⚠️
Tes : Belum dilakukan ⚠️
Hasil : Belum diketahui ⚠️bro, can you tested the feature: Manualy add name and number on phonebook at theme snack admin.
On my server its not working very well.
-
3 minutes ago, achelmidz said:
Bah, hmm.
---
1. Try to instal from laravel web server. Not from xampp right now.
2. on xammp, just start the MySQL for while for configuration.
3. Please, download the latest source code MPWA V8xxx5 minutes ago, angga turki said:scroll down, ada ektsensi php yang belum enable itu
Bah, the problem its another libbary not yet installed. azzzzzzzzzzzzzzzzzzz
-
3 minutes ago, achelmidz said:
@Dammah Sifla iya betul, masih di localhost
You can next for while and try to install it.
-
Thanks and congrats for release a new version MPWA V.8.0.0.0 made by @Magd Almuntaser 🔥 🔥 🔥 🔥
---
Request:
May I request feature "Roll Back (Back to Version x.x.x.x)" version of MPWA? sometime on production server (espesially linux), configuration its so complicate after update with firewall system and reverse proxy.---
Thanks.
-
-
-
-
-
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
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.
-
23 minutes ago, Enno The Explorer said:
ini jug bagus idenya, kirim cronjob ke nomor yang tidak pernah ada didunia ini 🤣
21 minutes ago, Unicode said:🤣🤣 coba saja.
Sepertinya tugas kita hanya membuat nodejs sibuk dan tetap terbangun.tapi saya sarankan memakai nomor yang tidak digunakan sebagai bot untuk ping.
karena kadang autoreply bot dan Ai akan tidak bekerja pada nomor yang digunakan untuk spam ping tersebut.
LoL, the true logic. haha
---
but it worted to tested and wake up the enod js every fuc*ing time. haha
Whatsapp Gateway | Multi Device v9.6.1
in Scripts
Dasar jangkrik, hode kau. haha