Skip to content
New issue

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

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

Already on GitHub? # to your account

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

Closed
cybera66 opened this issue Feb 9, 2021 · 8 comments
Assignees
Labels

Comments

@cybera66
Copy link

cybera66 commented Feb 9, 2021

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 👍 😍

@Mikescher
Copy link
Owner

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 )

@Mikescher Mikescher self-assigned this Feb 10, 2021
@cybera66
Copy link
Author

cybera66 commented Feb 14, 2021

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.

@Mikescher
Copy link
Owner

Mikescher commented Feb 15, 2021

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

@cybera66
Copy link
Author

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

@Mikescher
Copy link
Owner

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...)

@cybera66
Copy link
Author

cybera66 commented Feb 23, 2021

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.

@Mikescher
Copy link
Owner

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

@cybera66
Copy link
Author

cybera66 commented Mar 2, 2021

Now it works!! 😄 👍

@Mikescher Mikescher added the bug label Mar 5, 2021
Mikescher added a commit that referenced this issue Mar 9, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants