waha icon indicating copy to clipboard operation
waha copied to clipboard

[Question] WEBJS What should I do if some sessions are frequently disconnected or started?

Open HuangDaHui opened this issue 1 year ago • 19 comments

What should I provide to help troubleshoot? I am using the latest version.

HuangDaHui avatar Aug 25 '25 08:08 HuangDaHui

I am with this same problem I already change to NOWEB to see if it would work but still with the same problem at least 5 times a day the connection is lost and reconnected

michaelvips avatar Aug 27 '25 14:08 michaelvips

hi @devlikepro have any solution for that, i saw the same problem in so many threads... i have the same problem, i tried all, proxy, more server capacity, ever latest versions.... but the problem persists... i only use webjs...

dv9 avatar Aug 28 '25 11:08 dv9

Hi! Could you try 2025.8.3? And ignore some chats that you're not interested in

🆕 NEW

🛠️ Fixes

  • 2025.8.3 - WEBJS - add config.webjs.tagsEventsOn

patron:PRO

devlikepro avatar Aug 30 '25 11:08 devlikepro

Thanks @devlikepro, today all my sessions did apperars in status STARTING.... (have 5 workers in differents machines and vps) i had 2025.08.01 version but affter update to 2025.8.3 all sessions are in status WORKING and im testing the new feature to ignore groups, status and channels... thanks for the reply...

dv9 avatar Aug 30 '25 13:08 dv9

same thing, any solutions? @devlikepro ?

ezlazylemon avatar Aug 30 '25 22:08 ezlazylemon

yes the same situation... i check it again and 1 session stuck in STARTING... i dont know what is wrong @devlikepro

dv9 avatar Aug 31 '25 01:08 dv9

@dv9 @ezlazylemon

any update about the session stuck in Starting?

gabrielsandrade avatar Sep 08 '25 13:09 gabrielsandrade

@gabrielsandrade are you from brazil ? I think the problem is your vps or install, since last update is works fine to me.

michaelvips avatar Sep 08 '25 13:09 michaelvips

@gabrielsandrade are you from brazil ? I think the problem is your vps or install, since last update is works fine to me.

Yes, I updated to the latest version and it got back to normal Thanks!

gabrielsandrade avatar Sep 08 '25 14:09 gabrielsandrade

hi @gabrielsandrade, yes but sometimes stuck in STARTING with the last version, im changing to GOWS engine and have not problems at the moment... but in WEB JS i don't find the final solution....

dv9 avatar Sep 08 '25 15:09 dv9

@dv9 in fact, there are several reasons why a session can "restart" I also had this some time ago, in my case what solved it was creating a new installation, with new volumes, it doesn't make sense, but it solves it.

michaelvips avatar Sep 08 '25 15:09 michaelvips

What I miss is a community on discord, even if it's for core members, what do you think @devlikepro ?

michaelvips avatar Sep 08 '25 15:09 michaelvips

i tried that, with new vps installing from zero... i tried aws, google cloud, proxys, more big, etc... actually hace 6 o 7 WEBJS sessions and every day i have to check te phones... some days i need restart some session.... you have not more problems @michaelvips?

dv9 avatar Sep 08 '25 17:09 dv9

@dv9 very rare, one thing you can do is configure when a session has a problem it is automatically restarted, do you know how to do it?

https://waha.devlike.pro/docs/how-to/config/#sessions

Add to the env

#restart all sessions when the worker is restarted. WAHA_WORKER_RESTART_SESSIONS=true

#This variable can be used to start sessions with the specified names right after launching the API. Separate session names with a comma. WHATSAPP_START_SESSION=session1,session2

michaelvips avatar Sep 08 '25 17:09 michaelvips

@dv9 I didn't find a solution for the random disconnect (in my case happens once per month) but I added a web hook to get the session status events and set a telegram bot to send me a message when it happens.

gabrielsandrade avatar Sep 08 '25 17:09 gabrielsandrade

@dv9 @ezlazylemon

any update about the session stuck in Starting?

Hi, I'm waiting for new release🫠

ezlazylemon avatar Sep 08 '25 17:09 ezlazylemon

@dv9 This is the error you getting ? "The browser has been disconnected"

Image

michaelvips avatar Sep 08 '25 17:09 michaelvips

What I been doing is send a message to myself every 15nminutes, if the message arrives, and I receive status code 200 then I do nothing, and when the message doesn’t gets send I check the sesión status and It gets restarted with some n8n logic by api it’s works sometimes but some others It don’t and I have to manually log out and log in , sometimes redeploy the docker container or some other times, erase and recreate the postgres database.

Sometimes it doesn’t get disconnected in weeks and some others it gets disconnected every day,

someone has a fix, it’s very frustrating keep pending on the status

Arturooro10 avatar Sep 14 '25 11:09 Arturooro10

2025.9.8 - WEBJS - up engine - #1276 , #1407

patron:PRO

devlikepro avatar Oct 04 '25 10:10 devlikepro