keepasshttp icon indicating copy to clipboard operation
keepasshttp copied to clipboard

Loading KeepassHTTP results in empty error message

Open aheusingfeld opened this issue 12 years ago • 9 comments
trafficstars

I'm currently running Keepass 2.22 on CrossOver 12.2.1.26977 on Mac OS X 10.8.4. Crossover is a customized Wine

To access keepass in Firefox I

  • downloaded KeepassHTTP from https://github.com/pfn/keepasshttp (to be exact, this is the version 1.7.1.0 I used https://github.com/pfn/keepasshttp/blob/c4ff23048c1b30be55b496628f6fab2c bc805071/KeePassHttp.plgx)
  • dropped it into the Keepass directory in ~/Library/Application Support/CrossOver/Bottles/KeePass2/drive_c/Program Files/KeePass Password Safe 2/
  • started the Keepass2.app previously created by CrossOver

While starting Keepass tries to load the plugin but it fails with an empty popup error dialog. Empty in this case means there is no message in the dialog, just the OK button.

The same happens when I exchange the "KeePassHttp.pglx" file with "Newtonsoft.Json.dll" and "KeePassHttp.dll" from the mono directory.

Have you got an idea what the cause might be or do you know whether Keepass write a logfile about such load time errors?

BTW: Can you tell me which port KeePassHTTP tries to occupy? I'd like to check whether this port is already in use.

Thanks in advance for your support.

NOTE: I posted the same problem description as a support request at Codeweavers (https://www.codeweavers.com/compatibility/browse/name/?app_id=1641;forum=1;msg=146314)

aheusingfeld avatar Jun 14 '13 19:06 aheusingfeld

I haven't had much luck with using keepass on OSX for a while; instead, you might want to try kypass companion, it is a compatible-to-keepass app that also implements the keepasshttp protocol.

On Fri, Jun 14, 2013 at 12:42 PM, Alexander Heusingfeld < [email protected]> wrote:

I'm currently running Keepass 2.22 on CrossOver 12.2.1.26977 on Mac OS X 10.8.4. Crossover is a customized Wine

To access keepass in Firefox I

  • downloaded KeepassHTTP from https://github.com/pfn/keepasshttp (to be exact, this is the version 1.7.1.0 I used https://github.com/pfn/keepasshttp/blob/c4ff23048c1b30be55b496628f6fab2cbc805071/KeePassHttp.plgx)
  • dropped it into the Keepass directory in ~/Library/Application Support/CrossOver/Bottles/KeePass2/drive_c/Program Files/KeePass Password Safe 2/
  • started the Keepass2.app previously created by CrossOver

While starting Keepass tries to load the plugin but it fails with an empty popup error dialog. Empty in this case means there is no message in the dialog, just the OK button.

The same happens when I exchange the "KeePassHttp.pglx" file with "Newtonsoft.Json.dll" and "KeePassHttp.dll" from the mono directoryhttps://github.com/pfn/keepasshttp/tree/master/mono.

Have you got an idea what the cause might be or do you know whether Keepass write a logfile about such load time errors?

BTW: Can you tell me which port KeePassHTTP tries to occupy? I'd like to check whether this port is already in use.

Thanks in advance for your support.

NOTE: I posted the same problem description as a support request at Codeweavers ( https://www.codeweavers.com/compatibility/browse/name/?app_id=1641;forum=1;msg=146314 )

— Reply to this email directly or view it on GitHubhttps://github.com/pfn/keepasshttp/issues/121 .

pfn avatar Jun 14 '13 21:06 pfn

Thanks for the quick response, @pfn. I'd really like to investigate in this issue but therefore I need answers on the questions above. Can you give me a little inside on this?

  1. Which port will KeePassHTTP try to occupy/ listen on?
  2. Is there any kind of logfile written by Keepass when it loads a plugin for the first time?
  3. Can you set Keepass into DEBUG mode so it puts out more information when loading a plugin?

Thanks in advance for your support.

aheusingfeld avatar Jun 16 '13 13:06 aheusingfeld

I can confirm that I can repeat this error in 2015.

Running KeePass 2.26 with the latest KeePassHttp (1.8.4.0) will create a blank popup message. KeePassHttp seems to be installed semi-installed though (you can see and use the "KeePassHttp Options..." from the "Tools" menu) but you can't see it on the "Plugins..." page.

Also the listening port does not open.

There's nothing in the Wine logs.

Anyway to crack up debbuging of KeePassHttp to stdout so we can see what's happening and paste the logs here?

bokysan avatar Jun 05 '15 17:06 bokysan

I have the exact same issue in 2016 Btw the default port is 19455. Tools > KeePassHtpp Options... > Advanced

The plugin list is empty Tools > Plugins...

It seems that the plugin KeePassHtpp is not loaded correctly whereas the same configuration works correctly on a native Windows + KeePassHtpp + PassIFox

Starli0n avatar Jan 08 '16 02:01 Starli0n

This is due to the use of System.Net.HttpListener, which depends on httpapi.dll 2.0, which is not available in Wine. I found a workaround to replace this dependency completely with a managed implementation. If anyone's still trying to get KeePassHttp to work with Wine, you can checkout my forked repo at https://github.com/jasonxh/keepasshttp.

jasonxh avatar Sep 12 '16 07:09 jasonxh

Actually, if the managed implemention of the HTTP listener is fairly robust, I would appreciate a PR that would switch to this.

On Mon, Sep 12, 2016 at 12:21 AM Hao Xia [email protected] wrote:

This is due to the use of System.Net.HttpListener, which depends on httpapi.dll 2.0, which is not available in Wine. I found a workaround to replace this dependency completely with a managed implementation. If anyone's still trying to get KeePassHttp to work with Wine, you can checkout my forked repo at https://github.com/jasonxh/keepasshttp.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pfn/keepasshttp/issues/121#issuecomment-246267771, or mute the thread https://github.com/notifications/unsubscribe-auth/AAfQxeA_2wK8lUQMp-kOhvl81s7AnI9mks5qpP10gaJpZM4AvLJr .

pfn avatar Oct 14 '16 17:10 pfn

@pfn yeah it's been fairly stable for me for more than a month. I've opened PR https://github.com/pfn/keepasshttp/pull/289

jasonxh avatar Oct 16 '16 22:10 jasonxh

Nice PR @jasonxh - thanks for the contribution!

nifr avatar Oct 17 '16 13:10 nifr

@pfn @jasonxh thanks, works fine on macOS 10.14.5

oit63 avatar Jul 11 '19 02:07 oit63