element-x-android icon indicating copy to clipboard operation
element-x-android copied to clipboard

confirming recovery after update doesnt accept correct recovery key

Open kinghat opened this issue 2 years ago • 32 comments

Steps to reproduce

after the update to 0.4.0 it is telling me the backups are out of sync and i need to confirm my recovery key.

Outcome

What did you expect?

backups not be out of sync? entered recovery key to be correct.

What happened instead?

the correct key isnt accepted.

Your phone model

pixel 2 xl

Operating system version

android 13

Application version and app store

element x version 0.4.0

Homeserver

Homeserver is https://matrix-client.matrix.org

Will you send logs?

No

Are you willing to provide a PR?

No

kinghat avatar Dec 23 '23 01:12 kinghat

I also get an "Incorrect recovery key" if I used a key that I saved to my KeePass. Is a "recovery key" a correct term? I was unable to find it in the Element Web and it looks like the term was changed recently:

recovery key is a deprecated name of security key

see https://github.com/element-hq/element-web/issues/15500#issuecomment-864579422

there's lingering uses of "Recovery Key" still, as you have found in the validation message, so those should likely be replaced.

see https://github.com/element-hq/element-web/issues/15500#issuecomment-713673647

maresmar avatar Dec 23 '23 22:12 maresmar

In my case a very old recovery key is accepted and confirmed but the chat backup remains off sync

returntrip avatar Dec 25 '23 08:12 returntrip

im not having the issue anymore. it still shows that i need to confirm my recovery key but it goes away after a few seconds now. should i close this?

kinghat avatar Jan 05 '24 19:01 kinghat

Please keep it open I still get this problem

returntrip avatar Jan 05 '24 20:01 returntrip

Same here, recovery key is not accepted in element-x. I confirmed that the same key is correct in Android element.

spaetz avatar Jan 07 '24 12:01 spaetz

@returntrip, @spaetz , could you try using your recovery keys and them upload some logs by using the bug reporting feature in settings? It might help confirm if it's the same one we're seeing on iOS and provide more info for debugging.

jmartinesp avatar Jan 08 '24 08:01 jmartinesp

Done!

returntrip avatar Jan 08 '24 10:01 returntrip

Uploaded log

spaetz avatar Jan 08 '24 15:01 spaetz

Also seeing this issue. Using a self-hosted dendrite.

0x1a8510f2 avatar Jan 09 '24 21:01 0x1a8510f2

Uhh, I was also using a self-hosted dendrite, so perhaps that is a common issue. I have since switched over to synapse, but have not set up sliding sync yet, so I can't test right now.

spaetz avatar Jan 10 '24 04:01 spaetz

I'm getting this same issue on a new login. Login -> verify with other session -> Element X asks to confirm recovery key. The correct one isn't accepted but it asking for that is a bug in itself. I uploaded logs after a fresh login with this issue number in comment.

uumas avatar Jan 11 '24 00:01 uumas

I have since changed my homeserver from dendrite to synapse and can report that Android-x accepted my recovery key now, so it seems to be something dendrite specific, after all?

spaetz avatar Jan 12 '24 15:01 spaetz

I'm having this issue on synapse

uumas avatar Jan 12 '24 15:01 uumas

I'm having this on the official matrix.org server.

  • New install
  • Logged in
  • Got prompted to enter the recovery key
  • Key is actually accepted once I press continue
  • Message asking to confirm the recovery key still reappears after a while.
  • 99% of old ee messages get decrypted successfully, so the backup seems to be restored, but some recent ones (usually a couple in a single chat) remain with "waiting for this message" forever

If I repeat the process, the messages which remain in "waiting for this message" state changes (and I get the previous ones back), so there seems to be some issue there..

wavexx avatar Jan 15 '24 15:01 wavexx

I am also having this issue, long term matrix.org account user. using element web/desktop on linux, in firefox linux and on a single android device using the classical element from google play-store and additionally some months ago I also additionally somewhat use and compare the element-x android. some when a while back, element-x-android (only) started showing this notification to "confirm your recovery key" only on element-x-android, nowhere else. I am always scared of such cryptography and maybe? data-loss prone situations, I dont want to lose my chats, I only have a very few communications ongoing. all the other element applications web-page etc dont show any problems. only the element-x-android shows this complaint. what to do about it? i do have recovery keys or strings or whatever those technical terms were when I created the account and some when fetched downloaded or exported those security settings. I really dont want to mess up my account and my chats and all. any advice? will us users need to do anything about it or just wait for some fix in the element-x-android client? thank you.

subscribernamegoeshere avatar Jan 17 '24 16:01 subscribernamegoeshere

@subscribernamegoeshere You're unlikely to lose any data because of this. Just wait until the fix is released and then enter the recovery phrase/key, which should make the notification go away. Until then, you'll just have to wait.

0x1a8510f2 avatar Jan 17 '24 16:01 0x1a8510f2

so I do have to enter something it will not go away with a fix? just wondering as this message didnt come up originally when I very first logged into the modern element-x-android in the first place. it was doing fine without this request for recovery key for a number of weeks. until that december update to 0.4.0 I guess.

subscribernamegoeshere avatar Jan 17 '24 17:01 subscribernamegoeshere

I think they only added the feature to use key backup in that version. It is expected that you see that notification and have to enter your recovery key once. The bug is that the correct recovery key isn't accepted. So once that bug is fixed in the next release after this issue is closed, try entering the recovery key again.

0x1a8510f2 avatar Jan 17 '24 23:01 0x1a8510f2

The refresh UI issue has been fixed in https://github.com/element-hq/element-x-android/pull/2421, there was an issue on the state observer.

Can you confirm it's fixed on the latest nightly and/or on EXA 0.4.5?

Thanks

bmarty avatar Feb 28 '24 21:02 bmarty

Issue persists for me on 0.4.5

On Wed, 28 Feb 2024, at 22:52, Benoit Marty wrote:

The refresh UI issue has been fixed in #2421 https://github.com/element-hq/element-x-android/pull/2421, there was an issue on the state observer.

Can you confirm it's fixed on the latest nightly and/or on EXA 0.4.5?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/element-hq/element-x-android/issues/2098#issuecomment-1969981558, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLHVORVHMIUK3V74QCXQBTYV6RJPAVCNFSM6AAAAABBAN2KWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRZHE4DCNJVHA. You are receiving this because you were mentioned.Message ID: @.***>

returntrip avatar Mar 01 '24 20:03 returntrip