Skip to content

Message couldn't be decrypted. It may have been in this chat or a group chat. Please check your Signal app. #562

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fir3drag0n opened this issue Oct 11, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@fir3drag0n
Copy link

#552 still exists although I updated the version

@fir3drag0n fir3drag0n added the bug Something isn't working label Oct 11, 2024
@brknkfr
Copy link

brknkfr commented Oct 13, 2024

I experienced exactly this behaviour when someone else adds a person to an existing signal group where I am member of. This causes the bridge to create an empty chat with the newly added signal person in the signal group.

@bblacher
Copy link

I'm facing this issue as well now.

@DevelAngel
Copy link

DevelAngel commented Mar 25, 2025

I see this error, too. But it happens only in one of my direct chats. Other signal chats are working.

In the chat with these messages, I cannot write any messages via signal bridge: The Signal app of my contact reports that the message cannot be received (in german: "Zustellungsproblem").

In the signal-bridge log, I find the following log around the time of the first occurance:

Mar 18 11:37:27 raspberry matrix-signal[2142]: chown: /data/registration.yaml: Read-only file system
Mar 18 11:37:27 raspberry matrix-signal[2142]: chown: /data/config.yaml: Read-only file system
Mar 18 11:37:53 raspberry matrix-signal[2142]: Error updating config: failed to override current config with temp file: rename ./mautrix-config-3778679396.yaml config.yaml: device or resou>
Mar 18 11:37:53 raspberry matrix-signal[2142]: 2025-03-18T11:37:53.584Z INF Initializing bridge built_at=2025-02-04T10:51:34Z go_version=go1.23.5 name=mautrix-signal version=0.7.5+dev.5c7c>
Mar 18 11:37:53 raspberry matrix-signal[2142]: 2025-03-18T11:37:53.634Z INF Initializing libsignal version:0.65.4 component=libsignal file=rust/bridge/ffi/src/logging.rs line=103
...
Mar 18 14:32:33 raspberry matrix-signal[2142]: 2025-03-18T14:32:33.553Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:33:42 raspberry matrix-signal[2142]: 2025-03-18T14:33:42.382Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:34:02 raspberry matrix-signal[2142]: 2025-03-18T14:34:02.944Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.304Z INF deserialized UnidentifiedSenderMessageContent from f20406fa-0f85-4462-8931-41204f0c01d5.1 with type Whisper comp>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.306Z INF f20406fa-0f85-4462-8931-41204f0c01d5.1 creating new chains. component=libsignal file=/builds/tulir/gomuks-build->
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.308Z INF Trimming excessive receiver_chain for session with base key f2ebf3535a8462e02d7c486c8c8c79b7baa3e848121221f28a20>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.308Z WRN Bad Mac! Their Mac: cba0b0b49ffca27d Our Mac: 1d27c3d0854df7f4 component=libsignal file=rust/protocol/src/protoc>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.312Z WRN Failed to decrypt Whisper message with ratchet key: e7eddafd8fb2b35003d3d591c55839a77c3b1ab440b1b04fac7adadc7034>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.313Z ERR No valid session for recipient: f20406fa-0f85-4462-8931-41204f0c01d5.1, current session base key f2ebf3535a8462e>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.313Z ERR Message from f20406fa-0f85-4462-8931-41204f0c01d5.1 failed to decrypt; sender ratchet public key e7eddafd8fb2b35>
Mar 18 14:36:33 raspberry matrix-signal[2142]: Candidate session 0 failed with 'invalid Whisper message: MAC verification failed', had 5 receiver chains
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b2cff49f90e5d0ed2494fdb805642fcbec9bcb4b36a04f0afcfca0a0d3342e19 chain key index 12
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b0a55b46efc930d4ce0e275680fb0a3890d0b44a0bb168b4f6b29f8a8982b662 chain key index 9
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05f57a7f2a8b0a9e84debd134997afacf6cdfbdcea7fcb20db5096b7fd4cff9448 chain key index 15
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b31a51532d5db0f8de8a8704285e2f190c6873d159b788c0e5c631732ced9e49 chain key index 5
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 0548656e6c422b990f5c9da261961c72f874d9a9343ce2f1552c914c7cc3407213 chain key index 1 component=>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.314Z ERR Failed to decrypt whisper message, trying generic function error="30: invalid Whisper message: decryption failed>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.316Z INF deserialized UnidentifiedSenderMessageContent from f20406fa-0f85-4462-8931-41204f0c01d5.1 with type Whisper comp>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.319Z INF f20406fa-0f85-4462-8931-41204f0c01d5.1 creating new chains. component=libsignal file=/builds/tulir/gomuks-build->
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.321Z INF Trimming excessive receiver_chain for session with base key f2ebf3535a8462e02d7c486c8c8c79b7baa3e848121221f28a20>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.321Z WRN Bad Mac! Their Mac: cba0b0b49ffca27d Our Mac: 1d27c3d0854df7f4 component=libsignal file=rust/protocol/src/protoc>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.322Z WRN Failed to decrypt Whisper message with ratchet key: e7eddafd8fb2b35003d3d591c55839a77c3b1ab440b1b04fac7adadc7034>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.322Z ERR No valid session for recipient: f20406fa-0f85-4462-8931-41204f0c01d5.1, current session base key f2ebf3535a8462e>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.323Z ERR Message from f20406fa-0f85-4462-8931-41204f0c01d5.1 failed to decrypt; sender ratchet public key e7eddafd8fb2b35>
Mar 18 14:36:33 raspberry matrix-signal[2142]: Candidate session 0 failed with 'invalid Whisper message: MAC verification failed', had 5 receiver chains
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b2cff49f90e5d0ed2494fdb805642fcbec9bcb4b36a04f0afcfca0a0d3342e19 chain key index 12
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b0a55b46efc930d4ce0e275680fb0a3890d0b44a0bb168b4f6b29f8a8982b662 chain key index 9
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05f57a7f2a8b0a9e84debd134997afacf6cdfbdcea7fcb20db5096b7fd4cff9448 chain key index 15
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b31a51532d5db0f8de8a8704285e2f190c6873d159b788c0e5c631732ced9e49 chain key index 5
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 0548656e6c422b990f5c9da261961c72f874d9a9343ce2f1552c914c7cc3407213 chain key index 1 component=>
M

That the registration.yaml and config.yaml is read-only mounted is not the reason for this error. But there are Bad Mac messages.

@ethnh
Copy link

ethnh commented Mar 26, 2025

I see this error, too. But it happens only in one of my direct chats. Other signal chats are working.

In the chat with these messages, I cannot write any messages via signal bridge: The Signal app of my contact reports that the message cannot be received (in german: "Zustellungsproblem").

In the signal-bridge log, I find the following log around the time of the first occurance:

Mar 18 11:37:27 raspberry matrix-signal[2142]: chown: /data/registration.yaml: Read-only file system
Mar 18 11:37:27 raspberry matrix-signal[2142]: chown: /data/config.yaml: Read-only file system
Mar 18 11:37:53 raspberry matrix-signal[2142]: Error updating config: failed to override current config with temp file: rename ./mautrix-config-3778679396.yaml config.yaml: device or resou>
Mar 18 11:37:53 raspberry matrix-signal[2142]: 2025-03-18T11:37:53.584Z INF Initializing bridge built_at=2025-02-04T10:51:34Z go_version=go1.23.5 name=mautrix-signal version=0.7.5+dev.5c7c>
Mar 18 11:37:53 raspberry matrix-signal[2142]: 2025-03-18T11:37:53.634Z INF Initializing libsignal version:0.65.4 component=libsignal file=rust/bridge/ffi/src/logging.rs line=103
...
Mar 18 14:32:33 raspberry matrix-signal[2142]: 2025-03-18T14:32:33.553Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:33:42 raspberry matrix-signal[2142]: 2025-03-18T14:33:42.382Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:34:02 raspberry matrix-signal[2142]: 2025-03-18T14:34:02.944Z INF decrypted Whisper message from 39315383-6236-495a-abea-aea168192815.1 with current session state (base key 3bda1>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.304Z INF deserialized UnidentifiedSenderMessageContent from f20406fa-0f85-4462-8931-41204f0c01d5.1 with type Whisper comp>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.306Z INF f20406fa-0f85-4462-8931-41204f0c01d5.1 creating new chains. component=libsignal file=/builds/tulir/gomuks-build->
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.308Z INF Trimming excessive receiver_chain for session with base key f2ebf3535a8462e02d7c486c8c8c79b7baa3e848121221f28a20>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.308Z WRN Bad Mac! Their Mac: cba0b0b49ffca27d Our Mac: 1d27c3d0854df7f4 component=libsignal file=rust/protocol/src/protoc>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.312Z WRN Failed to decrypt Whisper message with ratchet key: e7eddafd8fb2b35003d3d591c55839a77c3b1ab440b1b04fac7adadc7034>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.313Z ERR No valid session for recipient: f20406fa-0f85-4462-8931-41204f0c01d5.1, current session base key f2ebf3535a8462e>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.313Z ERR Message from f20406fa-0f85-4462-8931-41204f0c01d5.1 failed to decrypt; sender ratchet public key e7eddafd8fb2b35>
Mar 18 14:36:33 raspberry matrix-signal[2142]: Candidate session 0 failed with 'invalid Whisper message: MAC verification failed', had 5 receiver chains
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b2cff49f90e5d0ed2494fdb805642fcbec9bcb4b36a04f0afcfca0a0d3342e19 chain key index 12
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b0a55b46efc930d4ce0e275680fb0a3890d0b44a0bb168b4f6b29f8a8982b662 chain key index 9
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05f57a7f2a8b0a9e84debd134997afacf6cdfbdcea7fcb20db5096b7fd4cff9448 chain key index 15
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b31a51532d5db0f8de8a8704285e2f190c6873d159b788c0e5c631732ced9e49 chain key index 5
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 0548656e6c422b990f5c9da261961c72f874d9a9343ce2f1552c914c7cc3407213 chain key index 1 component=>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.314Z ERR Failed to decrypt whisper message, trying generic function error="30: invalid Whisper message: decryption failed>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.316Z INF deserialized UnidentifiedSenderMessageContent from f20406fa-0f85-4462-8931-41204f0c01d5.1 with type Whisper comp>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.319Z INF f20406fa-0f85-4462-8931-41204f0c01d5.1 creating new chains. component=libsignal file=/builds/tulir/gomuks-build->
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.321Z INF Trimming excessive receiver_chain for session with base key f2ebf3535a8462e02d7c486c8c8c79b7baa3e848121221f28a20>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.321Z WRN Bad Mac! Their Mac: cba0b0b49ffca27d Our Mac: 1d27c3d0854df7f4 component=libsignal file=rust/protocol/src/protoc>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.322Z WRN Failed to decrypt Whisper message with ratchet key: e7eddafd8fb2b35003d3d591c55839a77c3b1ab440b1b04fac7adadc7034>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.322Z ERR No valid session for recipient: f20406fa-0f85-4462-8931-41204f0c01d5.1, current session base key f2ebf3535a8462e>
Mar 18 14:36:33 raspberry matrix-signal[2142]: 2025-03-18T14:36:33.323Z ERR Message from f20406fa-0f85-4462-8931-41204f0c01d5.1 failed to decrypt; sender ratchet public key e7eddafd8fb2b35>
Mar 18 14:36:33 raspberry matrix-signal[2142]: Candidate session 0 failed with 'invalid Whisper message: MAC verification failed', had 5 receiver chains
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b2cff49f90e5d0ed2494fdb805642fcbec9bcb4b36a04f0afcfca0a0d3342e19 chain key index 12
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b0a55b46efc930d4ce0e275680fb0a3890d0b44a0bb168b4f6b29f8a8982b662 chain key index 9
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05f57a7f2a8b0a9e84debd134997afacf6cdfbdcea7fcb20db5096b7fd4cff9448 chain key index 15
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 05b31a51532d5db0f8de8a8704285e2f190c6873d159b788c0e5c631732ced9e49 chain key index 5
Mar 18 14:36:33 raspberry matrix-signal[2142]: Receiver chain with sender ratchet public key 0548656e6c422b990f5c9da261961c72f874d9a9343ce2f1552c914c7cc3407213 chain key index 1 component=>
M

That the registration.yaml and config.yaml is read-only mounted is not the reason for this error. But there are Bad Mac messages.

Have you already tried re-linking signal? Just make a new blank data dir and redo the connection 🤔

If yes, bizzare😵

@laszabine
Copy link

I had the same problem, and re-linking Signal solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

6 participants