Notes get destroyed - Cipher error
Some notes are getting destroyed and only show an error message. This has been the case for quite some time. (See attached Screenshot)
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
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
I keep getting such stuff sometimes, I backup my notes regularly otherwise I may got heart attacks eventually.
This sounds like nextcloud/richdocuments#2102 / nextcloud/text#3574 which was addressed by nextcloud/server#35649 in theory.
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.
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
Is there any hope of a resolution?