Enable end to end encryption fails with "Could not save keys, please try again"

Hi, I’m facing a problem while trying to enable the end to end encryption on my android device.

I had to “hard reset” my keys by deleting ./data/appdata_[some numbers]/end_to_end_encryption following this post How to reset E2EE and set ot up from scratch

And now, every time I try to enable it again, I get the error “Could not save keys, please try again”

My setup is:

  • Nextcloud version 32.0.6
  • Running on Truenas SCALE 25.10.1
  • End-to-end encryption app version 1.18.1

My android device is an S23 Ultra with android 16 with nextcloud android version 33

The nextcloud logs only provide this information

"POST /ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json HTTP/1.1" 409 1720 "-" "Mozilla/5.0 (Android) Nextcloud-android/33.0.0"
"POST /ocs/v2.php/apps/end_to_end_encryption/api/v1/public-key?format=json HTTP/1.1" 409 1720 "-" "Mozilla/5.0 (Android) Nextcloud-android/33.0.0"

And when trying to enable the end to end configuration from windows client I don’t get any error message but also nothing happens, and looking at the nextcloud logs it shows this

"GET /ocs/v2.php/apps/end_to_end_encryption/api/v2/public-key?format=json HTTP/1.1" 400 794 "-" "Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.26200 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

If you have backup of thus folder - restore it, then try to reset keys from settings (in thread there was about it)

If not - try to re-create ./end_to_end_encryption folder, maybe it tries to create files inside this folder and fails when found that there’s no such folder

Also try to re-instal E2EE app