waha icon indicating copy to clipboard operation
waha copied to clipboard

[BUG][GOWS] - Status messages are not sent to all contacts after moving to a new server

Open TheOneironaut opened this issue 1 year ago • 4 comments

Description: When I send a status message from my server, it is successfully sent to all my contacts. However, after migrating to a new, more powerful server, I installed the software again with the same configuration as the previous server. The only difference between the two servers is that the first one used Sessions - PostgreSQL, while the new server is local.

On the new server, the status message is only sent to some of my contacts.

Steps Taken:

  1. I verified that all contacts exist by running GET /api/contacts/all, and they are all present.
  2. My configuration remains the same on both servers except for the database type.
  3. The issue persists even after reconnecting Sessions on the first server.

Logs: Full logs: https://pastebin.com/z63EMmyn

Summary of errors: I am receiving hundreds or thousands of messages like these:

{"level":40,"time":1739807402199,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[Session/status_ami/Client] Failed to fetch prekey for 9725*******[email protected]: got error getting prekeys: <error code=\"500\" text=\"internal-server-error\"/>"} {"level":40,"time":1739807402200,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[Session/status_ami/Client] Failed to fetch prekey for 9725*******[email protected]: got error getting prekeys: <error code=\"500\" text=\"internal-server-error\"/>"} {"level":40,"time":1739807406403,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[Session/status_ami/Client] Server returned different participant list hash when sending to status@broadcast. Some devices may not have received the message."}

Then:

{"level":40,"time":1739807406403,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[Session/status_ami/Client] Server returned different participant list hash when sending to status@broadcast. Some devices may not have received the message."} {"level":30,"time":1739807406405,"pid":1,"hostname":"5cea*******","reqId":232,"req":{"id":232,"method":"POST","url":"/api/status_ami/status/image","query":{},"params":{"0":"api/status_ami/status/image"}},"res":{"statusCode":201},"responseTime":41655,"msg":"request completed"} {"level":40,"time":1739807408298,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[Session/status_ami/Client] 9725*******[email protected]'s device list hash changed from 2:5yY3WVJA to 2:5yY3WVJA (add). New hash doesn't match (2:3GrOTjZB)"} {"level":30,"time":1739807409932,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[ERROR] 2025-02-17T17:50:09+02:00 SessionCipher.go:268 ▶ Unable to verify ciphertext mac: mismatching MAC in signal message"} {"level":30,"time":1739807409932,"pid":1,"hostname":"5cea*******","engine":"gows","msg":"[WARNING] 2025-02-17T17:50:09+02:00 SessionCipher.go:214 ▶ failed to verify ciphertext MAC: mismatching MAC in signal message"}

Additional Note: After reconnecting Sessions on the first server, it is also no longer sending to all contacts.

Any insights on why this might be happening and how to fix it?

patron:PLUS

TheOneironaut avatar Feb 17 '25 17:02 TheOneironaut

Okay, sorry for the bother, maybe I was a little impatient. I tried again now and it works fine on both servers. Apparently there are things that need to be loaded in the background. I'll wait a day and update if my views haven't changed.

patron:PLUS

TheOneironaut avatar Feb 17 '25 21:02 TheOneironaut

Hi! It could be error on WA side.

<error code=\"500\" text=\"internal-server-error\"/>

Let's try again and see how it goes! Btw, how many contacts do you have?

patron:PRO

devlikepro avatar Feb 18 '25 04:02 devlikepro

Hi! It could be error on WA side.

<error code=\"500\" text=\"internal-server-error\"/>

Let's try again and see how it goes! Btw, how many contacts do you have?

patron:PRO

Yes, I just checked the views and it's great! I probably had to wait a bit after connecting the session for things to load.

I'm currently sending status messages to 14K contacts. I'm really waiting for there to be an option to preview the link and the ability to delete status messages, then I'll try sending to 30K contacts.

patron:PLUS

TheOneironaut avatar Feb 18 '25 07:02 TheOneironaut

@TheOneironaut got it, putting it a bit higher on the roadmap, early March 🤞

patron:PRO

devlikepro avatar Feb 18 '25 08:02 devlikepro