Skip to content

[BUG] - Bad MAC Error: Bad MAC #2079

@oPatricio02

Description

@oPatricio02

Session error:Error: Bad MAC Error: Bad MAC

1763408370997,    at Object.verifyMAC (/app/node_modules/libsignal/src/crypto.js:87:15)
1763408370997,    at SessionCipher.doDecryptWhisperMessage (/app/node_modules/libsignal/src/session_cipher.js:250:16)
1763408370997,    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1763408370997,    at async SessionCipher.decryptWithSessions (/app/node_modules/libsignal/src/session_cipher.js:147:29)
1763408370997,    at async 274204117184759_1.80 [as awaitable] (/app/node_modules/libsignal/src/session_cipher.js:171:28)
1763408370997,    at async _asyncQueueExecutor (/app/node_modules/libsignal/src/queue_job.js:20:29)
1763408371548,Message sended ID: 3EB0483D6373D2EDC5B11A
1763408381478,Failed to decrypt message with any known session...
1763408381478,Session error:Error: Bad MAC Error: Bad MAC
1763408381478,    at Object.verifyMAC (/app/node_modules/libsignal/src/crypto.js:87:15)
1763408381478,    at SessionCipher.doDecryptWhisperMessage (/app/node_modules/libsignal/src/session_cipher.js:250:16)
1763408381478,    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
1763408381478,    at async SessionCipher.decryptWithSessions (/app/node_modules/libsignal/src/session_cipher.js:147:29)
1763408381478,    at async 220993415020571_1.0 [as awaitable] (/app/node_modules/libsignal/src/session_cipher.js:171:28)
1763408381478,    at async _asyncQueueExecutor (/app/node_modules/libsignal/src/queue_job.js:20:29)
1763408381478,Session error:Error: Bad MAC Error: Bad MAC
1763408381478,    at Object.verifyMAC (/app/node_modules/libsignal/src/crypto.js:87:15)

To Reproduce
In version 7-rc6 and in this PR #1892 the problem persists.

Additional context
The scenario is as follows: there are old connection authentications in production that I cannot delete data from the current auth table because there are still connected clients that are working, and if I delete them and they don't work, it could cause problems for the company. I deployed an update using this PR, but I constantly receive the messages I mentioned above, and I believe that because of this, message sending is very slow, sometimes not even sending at all. Can anyone tell me if disconnecting the devices and connecting them in this new version of the PR or in rc6 might solve the problem?

**The older version of the authentications is 6.7.18

Thank you in advance!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions