pfn / keepasshttp

KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP
GNU General Public License v3.0
1.98k stars 277 forks source link

The following plugin is incompatible with the current version of KeePass #242

Open sbrl opened 8 years ago

sbrl commented 8 years ago

I've just tried to install the latest version of this plugin with KeePass 2.29, but it doesn't work. It tells me that "The following plugin is incompatible with the current version of KeePass: /path/to/keepass/plugins/KeePassHttp.plgx.

Here's my uname -a:

Linux Snowflake 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

If you need more information to track down this issue, please don't hesitate to ask and I''l try to help in any way I can.

xescab commented 8 years ago

Hi, I have the same issue, but with KeePass 2.28.

uname -a: Linux SG1551 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) x86_64 GNU/Linux

euneuber commented 8 years ago

I have it work with version 2.29 and 2.30:

I copied KeePassHttp.dll and KeePassHttp.plgx and Newtonsoft.Json.dll to the KeePass install directory.

kowenzhang commented 8 years ago

I'm using 2.30. The plugin works properly.

rojaro commented 8 years ago

I am using Ubuntu 15.10 and KeePass2 v2.30 from ppa:jtaylor/keepass (+ mono-complete) and it just doesnt work anymore. Other plugins such as KeeAgent work just fine.

First i tried the "keepass2-plugin-keepasshttp" package v1.8.4 from ppa:dlech/keepass2-plugins which used to work until in the past, but does not anymore.

Then i removed the "keepass2-plugin-keepasshttp" package, and downloaded the pglx file manually and copied it into the /usr/lib/keepass2/plugins directory. Which also did not work.

I also tried to download the dll's and added them as well, but again no luck...

rojaro commented 8 years ago

@euneuber & @kowenzhang ... what operating systems are you using?

kowenzhang commented 8 years ago

Ubuntu 14.04 64bit.

euneuber commented 8 years ago

openSUSE 13.1 64bit with this mono packages:

mono-core-3.0.6-3.1.3.x86_64 libmonosgen-2_0-0-3.0.6-3.1.3.x86_64 mono-wcf-3.0.6-3.1.3.x86_64 mono-reactive-3.0.6-3.1.3.x86_64 libmono-2_0-1-3.0.6-3.1.3.x86_64 libmonosgen-2_0-devel-3.0.6-3.1.3.x86_64 mono-nunit-3.0.6-3.1.3.x86_64 mono-data-3.0.6-3.1.3.x86_64 mono-mvc-3.0.6-3.1.3.x86_64 mono-data-oracle-3.0.6-3.1.3.x86_64 mono-addins-0.6.2-10.1.3.noarch mono-winfxcore-3.0.6-3.1.3.x86_64 monodoc-core-3.0.6-3.1.3.x86_64 mono-data-sqlite-3.0.6-3.1.3.x86_64 mono-locale-extras-3.0.6-3.1.3.x86_64 mono-complete-3.0.6-3.1.3.x86_64 mono-qt4-4.11.5-290.3.x86_64 mono-web-3.0.6-3.1.3.x86_64 mono-devel-3.0.6-3.1.3.x86_64 mono-entityframework-3.0.6-3.1.3.x86_64 mono-kde4-4.11.5-330.2.x86_64 libmono-2_0-devel-3.0.6-3.1.3.x86_64 mono-extras-3.0.6-3.1.3.x86_64 mono-winforms-3.0.6-3.1.3.x86_64 mono-basic-2.10-10.1.3.noarch mono-data-postgresql-3.0.6-3.1.3.x86_64

synchrone commented 8 years ago

The issue is that KeePassHttp itself has more dependencies than KeePass itself.

All of them are satisfied if you're a developer and have everything installed.

For the users, the minimal set of Debian\Ubuntu packages looks like:

sudo apt-get install libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil

Throw in `sudo apt-get install mono-mcs if you want KeePassHttp.plgx on-the-fly compilation support.

sbrl commented 8 years ago

@synchrone Running that command seems to have fixed it!

Does that help for others too?

bbuck-psd commented 8 years ago

It does not help for me (Debian Sid, Keepass2 2.31)

synchrone commented 8 years ago

@bbuck-psd this is not necesarily the case ALL the time. KeePass reports an "incompatibility" for ANY error whatsoever.

To get a stacktrace of an exception that occured during the plugin initialization, run KeePass.exe with --debug flag. Please post it here.

bbuck-psd commented 8 years ago

@synchrone Thanks for the --debug flag tip. I don't think it's necessary to post the stack trace, as the top line clued me in to the fact that not having read permissions on the pglx file might be the issue. One quick sudo chmod 644 /usr/lib/keepass2/KeePassHttp.pglx later, and it loads fine.

sbrl commented 8 years ago

Perhaps an issue should be filed against KeePass2 then? The error message could certainly be more helpful. On Fri, 2016-01-22 at 06:49 -0800, bbuck-psd wrote:

@synchrone Thanks for the --debug flag tip. I don't think it's necessary to post the stack trace, as the top line clued me in to the fact that not having read permissions on the pglx file might be the issue. One quick sudo chmod 644 /usr/lib/keepass2/KeePassHttp.pglx later, and it loads fine. — Reply to this email directly or view it on GitHub.

vertexmachina commented 8 years ago

I've encountered this error before and the cause was that I had another instance of KeePass open that was running wild. After killing the errant process and reopening KeePass, the error went away.

mirekzapletal-cz commented 8 years ago

ISSUE: Incompatible with the latest version of KeePass2 (v2.31)

Environment: Ubuntu 14.04 64bit

Actions to reproduce the issue: 1) update KeePass2 from v2.30 to v2.31 2) cleanup of Keepass2 plugin cache done 3) start KeePass2

[1] Trying to fix, no success: 1) closed KeePass2 2) manual cleanup of files in Keepass2 plugin cache 3) updated KeePassHttp.plgx in /usr/lib/.... 4) start KeePass2

[2] Trying to fix, no success: 1) closed KeePass2 2) double checked that there are no other instances of KeePass2 running 3) CHOWN myself:myself on KeePassHttp.plgx 4) re-start KeePass2

ISSUE NOT SOLVED

Seems like we have to wait for new release of KeePassHttp.plgx

quanengineering commented 8 years ago

@synchrone , it's work for me, thanks. @mirekzapletal-cz you should try synchrone's method.

synchrone commented 8 years ago

Meanwhile, @dlech was so nice as to publish a fixed package together with dependencies to his PPA.

The easiest way would be:

sudo apt-add-repository ppa:dlech/keepass2-plugins
sudo apt-get update
sudo apt-get install keepasshttp
quanengineering commented 8 years ago

thanks @synchrone

camilleperin commented 8 years ago

Wow ! Stuck for 3 days with this one but thanks @synchrone !!

"sudo apt-get install mono-mcs" saved me!

alexgrpopa commented 8 years ago

I am trying to make keepasshttp work but I am failing hard.

Ubuntu 16.04 MATE
Linux desktop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

KeePass 2.32
KeePassHttp 1.8.4.1

I have installed mono-complete. The error I have: http://i.imgur.com/3EP1ySI.png

sbrl commented 8 years ago

@AlexPopa Try chmodding that folder with something like chmod -R +r <folder name>. On Wed, 2016-04-27 at 08:18 -0700, Alex Popa wrote:

I am trying to make keepasshttp work but I am failing hard. Ubuntu 16.04 MATE Linux desktop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

KeePass 2.32 KeePassHttp 1.8.4.1 I have installed mono-complete. The error I have: http://i.imgur.com/3EP1ySI.png — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

alexgrpopa commented 8 years ago

@sbrl In the instalation guide it says that I should chmod it to 644. I chaged it 777 and it works. I don't know how safe is this. I'm still a newbie and I have been taught not to mess with chmod. Thank you! :+1:

sbrl commented 8 years ago

@alexgrpopa Oh yeah~! You've just reminded me of something. I think the issue is because the directories are not marked as executable. Strangely enough you can't list a directories contents if it isn't marked executable. So you want to something like this:

find test -type d -print0 | xargs -0 chmod -c 755

The find finds all the directories, and passes them into xargs, which chmods them. The -c parameter just makes chmod tell you if it does anything.

I would recommend messing around with chmod in a safe testing environment where you aren't at risk of breaking anything, like a virtual machine. Understanding how linux permissions work with chmod and chown (and by extension chgrp can be invaluable in keeping your system(s) safe.

sbourdette commented 8 years ago

Same issue after upgrade ubuntu from 15.10 to 16.04 Plugin incompatible

Description: Ubuntu 16.04 LTS Release: 16.04 Codename: xenial

KeePass 2.32 KeePassHttp 1.8.4.1

image

PPRiphagen commented 7 years ago

I also had the problem after upgrading from 15.10 to 16.04 For me the sudo apt-get install mono-mcs did the trick

KeePass 2.32 KeePassHttp: 1.8.4.1

jgbreezer commented 7 years ago

I also found (if I'm not mistaken) that if I had both the .dll and the .plgx files in there, it wouldn't work. The latest .plgx (as I write, Oct 2016) on Keepass2 v2.32 and Ubuntu 16.04 with correct permissions (as per earlier posts) works fine for me once I have enough mono installed (sudo apt install mono-complete was more than enough, I manually installed some other libs mentioned too beforehand). Some other plgx file plugins I downloaded don't work as they need a newer mono and I didn't want to hack with my apt-installed version (or run older plgx's I think) so I went without/used triggers to do the job

epicstar commented 7 years ago

I had this problem, too, on Ubuntu 16.10. I originally thought that chmod 644 KeePassHttp.plgx was enough but it wasn't. It says in the instructions to install mono-complete so I tried that:

sudo apt-get install mono-complete

After I did this, the plugin now works as expected. This ticket should be closed because they already address the issue in the instructions.

pihentagy commented 7 years ago

apt-get install mono-devel was enough for me. But really worth mentioning somewhere!

theob88 commented 7 years ago

On my Windows 10 installation, resetting winsock and deleting old lavasoft files as per this thread helped me (scroll down to the last few posts): https://github.com/pfn/keepasshttp/issues/275