Mikescher/AlephNote

[SN Error] Execption while syncing notes: Cannot decrypt note with local masterkey

Closed this issue · 8 comments

After updating the Standard Notes encryption to 004 I got the following message:

"AlephNote.Plugins.StandardNote.StandardNoteAPIException: Cannot decrypt note with local masterkey ---> System.DllNotFoundException: Unable to load DLL 'libsodium': Das angegebene Modul wurde nicht gefunden. (Exception from HRESULT: 0x8007007E)"

Anyway: AWESOME App 👍 😍

That's strange, can you look into the AlephNote directory and confirm that the libsodium.dll is there (same dir as AlephNote.exe).

Also (if it's there) can you open the file properties (rightclick -> properties) and confirm that the dll is not clocked by your security settings as seen here:
image
( source )

Hi, the libsodium.dll is in the same directory as always and it is not read only or anythink. In the past AlephNote worked perfectly. The last update and the update of the new encryption mechanism killed the sync :-(. Reinstall doesn´t help.

Hmm, according to this it could be that you need to install Visual C++ Redistributable 2015.
Can you try that and report back if it helped. I'm also using SN with the new encryption scheme on my PC, so it really could be that you are missing some kind of dependency.

I kinda hope that is not the problem, because then I would need to somehow detect that and show the user a warning :(

Edit: yeah DependencyWalker also agrees that libsodium.dll has a dependency on VCRUNTIME140.DLL

Edit-2: It seems like we could also simply package the vcredist dll's together with AN..., not the best solution but because we don't have an installer step it seems reasonable

Hi Mike, ok. Sorry, I´m too slow: So I need to package the dll's together?

No, please first try installing Visual C++ Redistributable 2015.
If this fixes your problem I will have to find a solution where I either detect a missing vcredist and show the user a message or try to bundle all needed dll's with the app.

But first we should be sure that this is actually the problem (aka if installing the vcredist package fixes it for you that was probably the problem...)

Hi, I was told another version of Visual C++ is already installed. I cannot continue the setup. Installed is Visual C++ 2015-2019 Redistributable - newest version.

Can you try extracting vcruntime140.zip and put the dll next to AlephNote.exe and then try restarting AlephNote and connecting again?

Now it works!! 😄 👍