Jump to content

MURASAKI.

Members
  • Posts

    68
  • Reputation

    19
  • Files

    0
  • Rank

    Contributor
  • Joined

  • Last visited

3 Followers

About MURASAKI.

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

MURASAKI.'s Achievements

Contributor

Contributor (5/14)

  • One Year In
  • Dedicated Rare
  • Collaborator Rare
  • Reacting Well
  • One Month Later

Recent Badges

19

Reputation

  1. 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.
  2. Yes, thanks for the explanation brother, I have added my own error handling based on WhiskeySockets/Baileys for my ecosystem needs. 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.
  3. Owh, the problem its just handling error about "receiving empty txt" right ? so become the node js stop running.
  4. so, do you think this is normal or not? If it is normal, why does node js stop running?
  5. 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.
  6. 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"
  7. 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.
  8. nah, for cpanel. Thanks for sharing with us.
  9. 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.
  10. What panel do you using? Cpanel? aaPanel? or without panel?
  11. Some 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.
  12. 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.
  13. You 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.
×
  • Create New...