standardnotes / forum

Support from other community members. For 1-on-1 help, please contact help@standardnotes.com.
https://forum.standardnotes.org
198 stars 8 forks source link

"Error Decrypting" messages (note plural) -- OK now what? #41

Closed WritingSolutions2020 closed 2 years ago

WritingSolutions2020 commented 7 years ago

Now I am [annoyed ] for real. I've tried to be patient but this is COMPLETELY UNACCEPTABLE!

I just used the Web client. I didn't intentionally do anything wacky or weird. And now I have a whole bunch of "Error Decrypting" messages:

Web client:

2017-07-27 12_04_02-notes standard notes

W7 desktop client:

2017-07-27 12_05_13-notes

What the Hell does this even mean!? And what am I supposed to do about it!?

I've been using computers since 1981. I was a former systems programmer who wrote assembly language and C++. I specialized in hardware-software integration. Today I write my own Python 3 utilities -- I understand how computers work! And as a "technical technical writer since 1998 I can work around minor annoyances. This is NOT a minor annoyance!

This is crazy! Sorry if I seem annoyed. But I am. What program should "offer" me this information? Moreover, what program should offer me this information and provide me with ZERO guidance as to what to do next!?

C'mon...

Hope this helps, Riley SFO

moughxyz commented 7 years ago

See https://github.com/standardnotes/forum/issues/24

WritingSolutions2020 commented 7 years ago

I'm sorry my friend but this is a train wreck! How many steps -- EXACTLY -- do I need to perform?

No, no, no, no, no! There is some evidence to suggest that I am neither stupid nor lazy. I've been using computers since 1981. I am a former software developer who (way back in 1985) used assembly language to write interrupt handlers and to integrate new hardware with operating systems. And I am now genuinely [annoyed].

Presenting users with scary and unhelpful messages like the ones illustrated by my screenshots is bad UX (as in, what should I do now?). Suggesting that users confronted with such messages are now obliged to do some mysterious set of steps to remediate the problem is worse.

I understand that you may be a single developer. And that you're buried alive with issues, requirements, and things to do. BUT please understand that if Standard Notes is to succeed, it cannot expect users to fix application problems by reading github bug reports...

Cheers, thanks as always, and hope this helps, Riley SFO

WritingSolutions2020 commented 7 years ago

What I seem to be able to do is to use the Windows desktop client to choose a "Error decrypting" note, choose an instance, then click Menu > Delete note to delete each error instances. I did so tentatively -- I worried that deleting those objects would also delete the notes I don't want to lose. I also needed to delete them one-by-one. Oof!

I'm not eager to be a complainer or to be negative. I understand what a huge, and impressively successful job, you're doing. But as described -- and experienced -- this is a [very poor] UX.

Cheers, thanks as always, & hope this helps, Riley SFO

moughxyz commented 7 years ago

I'm not following..did the steps fix the issue?

WritingSolutions2020 commented 7 years ago

"did the steps fix the issue?"

Logging out and back in didn't seem to. In the Web client I logged out, deleted my browser's cache and all Standard Notes cookies, then logged back in. The "Error decrypting" notes were all still there. (I say "notes"? because the steps I used to get rid of those self-described errors were exactly the same steps I use to delete a note.) Read on...

What I ended up doing to get rid of all these self-described errors was: Selected each one of the "Error decrypting" instances one-by-one, then in each instance / note clicked Menu > Delete note. Now if I log out and back in I seem to have cleared the problem in both the Web and the desktop client.

From my perspective the MUCH more important point is: What innocent / unintentional hand movement did this normally skilled user make to create the situation? I wasn't "fooling around" or "experimenting" or otherwise doing some "not-normal-user" thing. Then shazam! -- I suddenly have a whole bunch of "things" (notes? or?) that report "Error decrypting". Ouch! Sigh...

Cheers, thanks as always, & hope this helps, Riley SFO

WritingSolutions2020 commented 7 years ago

OK -- what I have evidently ended up losing was ALL my tags. They're all gone. I suspect when I deleted all those "Error decrypting" notes that my tags went with them.

Now that I think about it, this happened right after I added the Autocomplete tags extension. Possible?

AND now things are so tangled up I don't how to get rid of all the extra mess.

I guess it could have been worse: I might have lost all my notes. But still not Standard Notes' best day.

Sigh -- please excuse my unhappiness with this situation. A tool that "eats" things then leaves an otherwise capable user with an impenetrable mess isn't fun to use.

moughxyz commented 7 years ago

By deleting each note individually, even when there was an error decrypting it, you delete it completely from the server. So at this point you've deleted notes that were otherwise valid.

The reason this happened is likely because you applied the Verification tag update, but did not update your applications or sign out afterwards.

Regarding your tags, I think they still exist, but that they don't show up using the Folders extension because there was an error decrypting them. Try deactivating the Folders extension. At this point, you'll see a list of tags with a blank title (because they aren't decrypted).

I understand your frustration. We'll get to the bottom of this. No need to worry though, your data is never lost. I can restore your data to one of the backups made every morning. Shoot me an email with your account email to mo@standardnotes.org.

Answer a few questions as well if you can:

  1. Have you changed your password recently?
  2. Did you upload a verification tag to your account recently?
  3. Have you created any backups of your data manually?
moughxyz commented 7 years ago

Also, while the Verification update has been troublesome for a handful of users, it only required manual migration for existing users, and not new users. Luckily new users get all of that automatically. But it was a migration that had to be done. I knew it would cause temporary pain and bad UX for some users, but it was one of those bandages that just needed to be ripped off all at once.

AdamFo commented 7 years ago

He,y @mobitar. I am the new user. I've downloaded windows desktop app and iPhone app TODAY and registered TODAY for the FIRST time.

I have a similar problem. When I make a note in iPhone it shows me "error decrypting" message on my desktop app version. AND when I make a desktop note it shows me "error decrypting" message on my iPhone.

I've also signed out from every device and made sure that I have the newest version and logged in. It didn't help.

I hope this issue will get done fast because I am eager to try this app!

moughxyz commented 7 years ago

@AdamFo continued here: https://github.com/standardnotes/forum/issues/42

WritingSolutions2020 commented 7 years ago

Mo:

Per our question, no -- didn't change my password. The only change I made was that I added the extension that attaches a tag to a Note based on typed characters.

More the point, it looks like I've been able to tidy things up. Whew! Scary.

Essential point is that a whole bunch of invalid objects somehow came into being.

OK -- things look like they're back the way the way they were. No apparent loss of Notes or Tags (he said).

Scary. I wasn't doing anything weird save adding that tags extension. And I can't say adding it was the source of the problem -- may well have been a coincidence. With that in mind, I have no idea why the application suddenly became that frighteningly confused.

Cheers, thanks, & hope this helps, Riley

moughxyz commented 7 years ago

So per #42, I just uncovered an issue where if you create notes offline on iOS (and possibly Android), and then sign in to your account, those notes then become problematic when you sync them to desktop. Did you happen to use any mobile clients during this time?

Or did you happen to create any notes offline in general during this time?

WritingSolutions2020 commented 7 years ago

Re:

Did you happen to use any mobile clients during this time?

...did you happen to create any notes offline in...

That's why the whole experience was so scary. I wasn't doing anything I would suppose would "stress" the application. I just started the desktop for Windows client and all Hell broke loose...

Cheers and thanks, Riley SFO

moughxyz commented 7 years ago

And were you already signed in on both clients when the issue happened? Or did you initiate a new sign in?

WritingSolutions2020 commented 7 years ago

Re:

...were you already signed in on both clients when the issue happened?

Maybe yes. Not sure. I usually only turn to the Web client if I need to add an extension. So because I was adding an extension I had to have the Web client live.

Not sure if I then fired up the desktop client, too.

Cheers & hope this helps, Riley

moughxyz commented 7 years ago

Here's what I think happened. Let me know if this sounds plausible.

You've been using the latest version of the desktop client, and everything has been going great. You applied the Verification update sometime last week or so.

You come to the web app after a while, and you're already signed in. However, because you're already signed in and haven't visited in a while, the web browser doesn't have the Verification parameters, and so is unable to decrypt all your items. (Strangely, now that I take a look at your screenshot, all the items with error decrypting have the same date and time. It may have just been one item that was duplicated as part of some sync conflict).

At this point, the only solution would have been to sign out of the web app and sign back in. However, because it wasn't clear what you should do, you begin deleting things, which takes us into a whole other stranger land of confusion.

Does that sound possible?

WritingSolutions2020 commented 7 years ago

Mo:

You come to the web app after a while, and you're already signed in. However, because you're already signed in and haven't visited in a while, the web browser doesn't have the Verification parameters,

Possibly. For what it's worth, I use a cleanup application that deletes browser cookies and the browser cache around at the end of a browser session. And the start of a browser session corresponds to my booting up my laptop at the start of each day; as in I don't leave my laptop running overnight. Point being that if I log in to anything at the start of a browser session a Web app has no residual cookies or cache.

More than anything I was overwhelmed by a sudden explosion of red ink Error decrypting messages. Accompanied by apparent chaos in the Extensions panel. And my initial attempts to click my way into an understanding of what the heck happened, and to then click my way into a fix, didn't initially produce a helpful outcome. Scary! And yes, annoying.

In any event I seem to have gotten things back where they were. Next time (I suspect there will, alas, be one) I'll have a clearer idea of what to try...

Cheers, thanks for your help & patience, Riley SFO

moughxyz commented 7 years ago

I'm more optimistic that you won't experience something like this again ;) Given the timing, it's 100% likely this is related to the Verification update as I've had to deal with dozens of similar issues in the past few days.

In any case, I'll be releasing a new service in the next couple weeks that auto-emails encrypted backups of your data to you every night. That should help for people who don't have Dropbox or Google Drive.

WritingSolutions2020 commented 7 years ago

Web client via MintLinux 32-bit with Firefox 54, logged in to Standard Notes for the first time on this computer.

Here we go again:

screenshot at 2017-07-30 15-11-20

Not sure why this recurred given that this is the FIRST time I logged in to Standard Notes from this computer with this browser. So the notion of a "Verification update" doesn't seem like it should apply?

What a poor user experience. I did nothing "wrong" (except perhaps try to use Standard Notes) but I'm again obliged to sort this out. Note also that at this point I'm tired of documenting this category of problem...

Please fix this forever! Please don't do this to your users! For future updates or changes that risk creating this category of mess, please find a way to make it less frightening -- and easier to clean up...

moughxyz commented 7 years ago

Can you recall what you did leading up to this? Because it seems that your actual data is decrypted properly, but that the app is creating a bunch of duplicates of some invalid item all with the same timestamp: 7/30/2017 3:00PM. What about notes prior to that? Are they decrypting properly?

And can you speak of the note of 7/30/2017 3:00PM? Did you create a note at this time?

moughxyz commented 7 years ago

Also, what happens if you open an incognito tab on a web browser and try a fresh sign in from there? Do those same items show that same error?

WritingSolutions2020 commented 7 years ago

Can you recall what you did leading up to this?

In MintLinux 32-bit I used Firefox 54 to log into Standard Notes. Was immediately greeted with the red ink. Repeated the manual select and delete.

Thanks for your help and patience but this is my last comment on this issue. If it happens again on any system or client, I'm gone...

Good luck!

moughxyz commented 7 years ago

What about notes prior to 7/30/2017 3:00PM? Are they decrypting properly?

WritingSolutions2020 commented 7 years ago

Are they decrypting properly?

How would I know? I evidently haven't lost my notes. Does that mean "decrypting properly"?

I'm not doing anything more to troubleshoot this --I'm exhausted. If Standard Notes "blows up" again I'm simply going to walk away from it...

moughxyz commented 7 years ago

Discovered what the issue is. Will report back once I have the fix.

moughxyz commented 7 years ago

Ok, go ahead and give Desktop v1.2.2 a download (or auto-update if not on Linux — auto-update n/a on Linux) and refresh the web app to get the latest version. Mobile clients will be updated with the fix this week. This should solve your issue.

If it doesn't, then 😃🔫.

WritingSolutions2020 commented 7 years ago

OK, thanks -- installed. Here's hoping -- there are several things I like about Standard Notes when it works. But major explosions of the sort described in this thread are truly off-putting...

Cheers & thanks 'gain for your help, Riley SFO

perandre commented 6 years ago

Seeimg the same issue: Opening the iOS app (latest version) for the first time in weeks, all notes are replaced with the Error Decrypting msg. Tried to sign out and sign in again, but it didn’t help.

moughxyz commented 6 years ago

Did you restore from iCloud recently? There was an issue with this that has since been fixed. Please email me from your account email to mo@standardnotes.org and I'll help you get this resolved.

perandre commented 6 years ago

No, no restore has been done. Thanks, I’ll email you now.

Stever888 commented 6 years ago

Having this problem, too, after an iCloud restore to initialize a replacement iPhone.

Stever888 commented 6 years ago

(HELP!!!) in case that wasn’t obvious

moughxyz commented 6 years ago

Resolution summary:

perandre's issue: In this case the user's account used an old encryption format that the new app was for some reason unable to read. The solution was to use the web/desktop and follow the update prompts upon signing in. Then click Account -> Advanced -> Re-encrypt all items.

Stever888's issue: User was able to see notes properly decrypt after verifying that the data was intact using the web app first, then (to the effect of) deleting the iOS app and re-installing it to have a safer, blank slate.

However, while I was digging around in the codebase, I identified a deeper issue with the iCloud restore bug, which I thought I had fixed. The issue can still manifest itself if the user accidentally does the following:

  1. Restore from iCloud.
  2. Open the app, see "Error decrypting".
  3. Quit the app completely.
  4. Re-open the app and sign in.

In this case, the "Error decrypting" flag was not saved properly after the user quits the app, so upon re-open, the items forget that they are in an errored state, and upon signing in, are merged with the user's data.

Fortunately I was able to patch this up quickly, and will be rolling out the fix this week for all platforms.