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

KeeAnywhere-1.5.0 plugin incompatible with Keepass 2.40 #147

Closed
LegoChicken opened this issue Sep 29, 2018 · 9 comments
Closed

KeeAnywhere-1.5.0 plugin incompatible with Keepass 2.40 #147

LegoChicken opened this issue Sep 29, 2018 · 9 comments
Labels
Milestone

Comments

@LegoChicken
Copy link

Two machines running Windows 7 professional. One works fine the other one produces:
image

@pascal69480
Copy link

pascal69480 commented Oct 1, 2018

Unfortunatly had a similar issue on my 7 machine.
Have tried to delete the directory in the \AppData\Local\KeePass\PluginCache\KVtC9Wrw4Tat3CIKCR6e directory but it was recreated at the next run of the app.

image

I read in the release note :
Default Storage Location for settings is now in User's Roaming AppData instead of User's Local AppData. but nothing seems to be stored in this path :(

I'm unable to open my Dropbox stored file and plan to downgrade KP to (temporary) solve the problem.

@LegoChicken
Copy link
Author

I also tried deleting the PluginCache directories. It was recreated on the next run of the app.

@Antasik
Copy link

Antasik commented Oct 3, 2018

Hello,

After moving KeePass (2.40 portable) to new Windows 10 machine i've got the same Error. I solved the problem by removing KeeAnywhere.Accounts.json file from KeePass directory. It looks like "secret" is encrypted and need to be decrypted in the same machine and user account but i'm not sure.

BR,
Marcin

@eulercb
Copy link

eulercb commented Oct 11, 2018

To avoid this problem, just select KeePass Configuration for Storage Location and you will be able to use your settings KeeAnywhere on any machine. Be aware that your access token will be stored unencrypted in KeePass.config.xml file.

@Kyrodan
Copy link
Owner

Kyrodan commented Oct 19, 2018

I see two different errors here:

  1. "Key not valid for use in special state"
  2. "Impossible to load Microsoft.Graph.Core..."

Topic 1:
I double checked the documentation and can't find a problem I can fix. As @Antasik statet (#147 (comment)) the KeeAnywhere.Accounts.json is encrypted via the current users account secrets. It can't be read, if it is not the same user anymore: copied the file to another users directory; deleted the original account and recreated a new one with the same name; etc. If it's a domain user, it also works on other machines (for what I move this file to "Roaming" App Data folder.

Topic 2:
In next version I applied another improvement for this problem. I can't reproduce this issue and do not know, why this still happens on some machines.

Other remarks:
@pascal69480: User's Roamin App Data is used. Old data get's converted. Maybe you used my temporary developer build? Then this is behavior does not happen and you have to move it by hand.

@Kyrodan Kyrodan added this to the 1.5.1 milestone Oct 19, 2018
@Kyrodan Kyrodan added the bug label Oct 19, 2018
@Kyrodan Kyrodan closed this as completed Oct 19, 2018
@LegoChicken
Copy link
Author

Still not working after upgrading to 1.5.1. Deleted everything in the PluginCache directory. Can you please re-open this defect.

@Kyrodan
Copy link
Owner

Kyrodan commented Oct 19, 2018

@LegoChicken: v1.5.1 indeed does not fix your issue because maybe this is not an issue :-)
Please check my post #147 (comment):

Topic 1:
I double checked the documentation and can't find a problem I can fix. As @Antasik statet (#147 (comment)) the KeeAnywhere.Accounts.json is encrypted via the current users account secrets. It can't be read, if it is not the same user anymore: copied the file to another users directory; deleted the original account and recreated a new one with the same name; etc. If it's a domain user, it also works on other machines (for what I move this file to "Roaming" App Data folder.

Maybe try to save the account info to KeePass config instead of seperate KeeAnywhere.Accounts.json

@Antasik
Copy link

Antasik commented Oct 21, 2018

In my opinion plugin behavior is fine and expected (there is no needed crypto key on new/other user profile) but exception info is misleading. Information thrown should be clear (about encrypt not "plugin incompatible with Keepass 2.40")

@LegoChicken
Copy link
Author

I finally got back to looking at this again. I deleted the KeeAnywhere.Accounts.json file from KeePass directory and set it up again and now works.

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