Users are experiencing unexpected session disconnections after successfully connecting via QR code. Initially, the session is established without any issues, but after a few hours or sometimes a few days, the session gets disconnected automatically without any manual intervention.
{
"level": 30,
"time": 1775906473620,
"pid": 7,
"hostname": "<hostname>",
"reqId": 82798,
"session": "c6Mb7erb",
"name": "NOWEBEngine",
"name": "regular_low",
"error":"Error: Invalid patch mac
at decodeSyncdPatch (file: ///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:198:19)
at process.processTicksAndRejections (node:internal/process/task_queues: 103: 5)
at async decodePatches (file: ///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:300:30)
at async file: ///app/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:432:70
at async file: ///app/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:249:40","msg":"failed to sync state from version, removing and trying from scratch"},
{"level":30,"time":1775906473620,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","msg":"resyncing regular_low from v0"},
{"level":30,"time":1775906473947,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","name":"regular_low","error":"Error: error:1C800064:Provider routines::bad decrypt
at Decipheriv.final (node:internal/crypto/cipher:170:29)
at aesDecryptWithIV (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:78:51)
at aesDecrypt (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:73:12)
at decodeSyncdMutations (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:152:24)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async decodeSyncdSnapshot (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:258:37)
at async file:///app/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:424:70
at async file:///app/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:249:40","msg":"failed to sync state from version, removing and trying from scratch"},
{"level":30,"time":1775906473948,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","msg":"resyncing regular_low from v0"},
{"level":40,"time":1775906474120,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NowebPersistentStore","msg":"got message update for unknown jid. update: '{\"key\":{\"id\":\"2A107F7B4AE75907A6D9\",\"fromMe\":true},\"update\":{\"status\":3,\"messageTimestamp\":1775906473}}'"},
{"level":30,"time":1775906474121,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"WebhookSender","id":"19g67mnu8v1c9","event.id":"evt_01kny4cj48g4btd39werwakec6","event":"message.ack","url":"https://example.com/webhooks/waha","msg":"Sending POST..."},
{"level":30,"time":1775906474192,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"WebhookSender","id":"19g67mnu8v1c9","event.id":"evt_01kny4cj48g4btd39werwakec6","event":"message.ack","url":"https://example.com/webhooks/waha","msg":"POST request was sent with status code: 200"},
{"level":30,"time":1775906474250,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","name":"regular_low","error":"Error: error:1C800064:Provider routines::bad decrypt
at Decipheriv.final (node:internal/crypto/cipher:170:29)
at aesDecryptWithIV (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:78:51)
at aesDecrypt (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:73:12)
at decodeSyncdMutations (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:152:24)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async decodeSyncdSnapshot (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:258:37)
at async file:///app/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:424:70
at async file:///app/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:249:40","msg":"failed to sync state from version"},
{"level":30,"time":1775906474255,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","msg":"resyncing regular from v213"},
{"level":30,"time":1775906474552,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","name":"regular","error":"Error: Invalid patch mac
at decodeSyncdPatch (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:198:19)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async decodePatches (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:300:30)
at async file:///app/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:432:70
at async file:///app/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:249:40","msg":"failed to sync state from version, removing and trying from scratch"},
{"level":30,"time":1775906474552,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","msg":"resyncing regular from v0"},
{"level":30,"time":1775906474856,"pid":7,"hostname":"<hostname>","reqId":82798,"session":"c6Mb7erb","name":"NOWEBEngine","name":"regular","error":"Error: error:1C800064:Provider routines::bad decrypt
at Decipheriv.final (node:internal/crypto/cipher:170:29)
at aesDecryptWithIV (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:78:51)
at aesDecrypt (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/crypto.js:73:12)
at decodeSyncdMutations (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:152:24)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async decodeSyncdSnapshot (file:///app/node_modules/@adiwajshing/baileys/lib/Utils/chat-utils.js:258:37)
at async file:///app/node_modules/@adiwajshing/baileys/lib/Socket/chats.js:424:70
at async file:///app/node_modules/@adiwajshing/baileys/lib/Utils/auth-utils.js:249:40","msg":"failed to sync state from version, removing and trying from scratch"},
Once a session is successfully connected, it should remain active unless explicitly disconnected by the user or due to a known/handled reason (e.g., logout by whatsapp).
Describe the bug
Users are experiencing unexpected session disconnections after successfully connecting via QR code. Initially, the session is established without any issues, but after a few hours or sometimes a few days, the session gets disconnected automatically without any manual intervention.
This is the error trace that's coming in logs:
Version
Get the WAHA version by calling
GET /api/version{ "version": "2026.3.4", "engine": "NOWEB", "tier": "PLUS", "browser": null, "platform": "linux/x64", "worker": { "id": null } }Expected behavior
Once a session is successfully connected, it should remain active unless explicitly disconnected by the user or due to a known/handled reason (e.g., logout by whatsapp).