element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.03k stars 1.96k forks source link

** Unable to decrypt: The sender's device has not sent us the keys for this message. ** #16163

Open kevincox opened 3 years ago

kevincox commented 3 years ago

Description

Can't read the message. Sent between devices that have been talking using e2ee for a long time.

Log: sent

image

Version information

For the web app:

kevincox commented 3 years ago

This was mostly to send logs which have been sent from the element-web interface. However I can not decrypt on any of my devices.

kevincox commented 3 years ago

Instance of https://github.com/vector-im/element-web/issues/2996

kevincox commented 3 years ago

It is worth noting that subsequent messages sent from the same device were perfectly fine.

jryans commented 3 years ago

I have forwarded this issue to our E2EE team to investigate what's going wrong here.

kevincox commented 3 years ago

Thanks, this is ongoing. We just had an extended period of this issue today and I asked the sender to send logs from the Android app referencing this issue.

FWIW I now believe that this is an element-android issue as I think the sending device is to blame.

kevincox commented 3 years ago

This instance has been restored when the app cache was cleared. Usually we didn't clear the cache, it just recovered on its own but this time it went on for an extended period of time so I suggested that the sender clear the cache. It could have been coincidence but messages sent after the cache clear were readable to all devices.

I also confirmed that the sender uploaded logs from the app. They did a shake and sent this URL in the description.

uhoreg commented 3 years ago

I was unable to do much with the first set of debug logs because we don't have the logs from the sender. With the second set, it looks like the problem started with a spurious network error on the sender's side. In theory, it should have been able to recover, but it could be that it's not working properly.

kevincox commented 3 years ago

This is on a mobile phone so flakey network is likely if not expected.

solomon-b commented 3 years ago

This instance has been restored when the app cache was cleared. Usually we didn't clear the cache, it just recovered on its own but this time it went on for an extended period of time so I suggested that the sender clear the cache. It could have been coincidence but messages sent after the cache clear were readable to all devices.

I also confirmed that the sender uploaded logs from the app. They did a shake and sent this URL in the description.

How do you clear the app cache?

jryans commented 3 years ago

How do you clear the app cache?

Top left user menu -> Settings -> Help -> Scroll down -> Click "Clear cache and reload" button

akhilman commented 3 years ago

I have similar issue.

The interlocutor can read my messages, but I can't read his messages with Unable to decrypt: The sender's device has not sent us the keys for this message error.

A while ago I had reset my keys by Settings -> Security & Privacy -> Encryption -> Secure Backup -> Reset. Since that I never able to read any message from my friend. The problem continues more than half of the year. We tried many times to create a new room. We also tried different clients, including element-web with multiple browser, nheko, fluffychat in my side, and element-web and element-android on another side. Always same result.

Here is recent try: Room ID: !nAkgXNdTyzUuREuqGI:ru-matrix.org My ID: @akhil:ru-matrix.org Interlocutor's ID: @s6:matrix.org

From my side: image akhil.log

From interlocutor's side: image s6.log

akhilman commented 3 years ago

My issue solved by server admin. It was instance of https://github.com/matrix-org/synapse/issues/6867.

k79e commented 1 year ago

Have this problem too, One of friend reinstalled the system, I think he formatted the partition, So the old keys is deleted.

Now He says all information from a date (when he is not online) I sent to him is un-readable. It's can't decrypt.

But after he is online, we can normally chat, But he still can't read the information in above mentioned period.