Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notes get destroyed - Cipher error #1829

Open
rusty-genius opened this issue Jun 26, 2023 · 6 comments
Open

Notes get destroyed - Cipher error #1829

rusty-genius opened this issue Jun 26, 2023 · 6 comments
Labels

Comments

@rusty-genius
Copy link

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 rusty-genius changed the title Notes geht destroyed Notes get destroyed - Cipher error Jun 26, 2023
@0cwa
Copy link

0cwa commented Jul 29, 2023

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

@bonbonboi
Copy link

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

@joshtrichards
Copy link
Member

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

@SchnydD
Copy link

SchnydD commented Jan 13, 2024

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.

@0cwa
Copy link

0cwa commented Jan 18, 2024

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

@SchnydD
Copy link

SchnydD commented May 19, 2024

Is there any hope of a resolution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants