notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

Notes get destroyed - Cipher error

Open rusty-genius opened this issue 2 years ago • 7 comments

Some notes are getting destroyed and only show an error message. This has been the case for quite some time. (See attached Screenshot)

Screenshot_20230626-073635

Error message:

HBEGIN:oc_encryption_module:OC_DEFAULT_MODULE:cipher:AES-256-CTR:signed:true:HEND-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

Screenshots

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): 4.1.0 RC1
  • F-Droid or Play Store: FDroid
  • Android-Version: 13
  • Device: Pixel 4a

Server

  • Nextcloud version: 25.0.5 Enterprise
  • Nextcloud Notes version (server app): 4.8.0

Stacktrace

rusty-genius avatar Jun 26 '23 05:06 rusty-genius

Same issue, log shows what looks like your error, plus random characters after. Many of my notes have been replaced with: Error: OCP\Encryption\Exceptions\GenericEncryptionException Shows on server, but didn't sync note app. One thing I did before this happened was connect a phone that had been connected before, but whose authentication token had timed out. I relogged in in the Nextcloud android app, and then went into the notes app. The notes app still didn't authorize and load, so I pressed "add account", then readded the same account that was already in the app but I had just reauthorized. It continued to just load, and I left it alone and went to sleep, assuming it had to resyncronize. Woke up this morning almost all my notes overwritten with that error, fortunately saved them. My setup is setup to S3 external storage and encrypted. This is a dangerous bug

0cwa avatar Jul 29 '23 07:07 0cwa

I keep getting such stuff sometimes, I backup my notes regularly otherwise I may got heart attacks eventually.

bonbonboi avatar Aug 06 '23 12:08 bonbonboi

This sounds like nextcloud/richdocuments#2102 / nextcloud/text#3574 which was addressed by nextcloud/server#35649 in theory.

joshtrichards avatar Aug 21 '23 01:08 joshtrichards

This is till happening. I didn´t find a solution. I think it could be almost a year with th9is problem. With every update of notes and the notes up im hoping this will not happen anymore, but it does. Yesterday I lost a lot of notes because of that.

SchnydD avatar Jan 13 '24 09:01 SchnydD

I should add that upon looking at files again later, I had the same issue with some other files that weren't notes, you might want to download all your files and perform a search of contained text and use a file search method that will search binary files, or use grep like this from within your nextcloud folder:

LC_ALL="C" grep -alr HBEGIN:oc_encryption_module .

LC_ALL is provided for mac compatibility, -a searches binary files, -l shows just the files, and -r recursively searches folders for files

0cwa avatar Jan 18 '24 03:01 0cwa

Is there any hope of a resolution?

SchnydD avatar May 19 '24 06:05 SchnydD