browserpass / browserpass-legacy

Legacy Browserpass repo, development is now happening at:
https://github.com/browserpass/browserpass-extension
MIT License
998 stars 87 forks source link

Error: Unable to detect the location of gpg binary #311

Closed sievertz closed 5 years ago

sievertz commented 5 years ago

General information


Exact steps to reproduce the problem

  1. Go to page related to a stored password
  2. Click the browserpass button: image
  3. Click the password you wish to use

What should happen?

The password is copied

What happened instead?

I get the following error: image

maximbaz commented 5 years ago

Hi there, have you already tried the steps from FAQ? https://github.com/browserpass/browserpass#does-not-work-on-macos-native-host-has-exited

sievertz commented 5 years ago

I thought I had but hadn't done all the steps. After following the steps my pass doesn't seem to work at all (not from terminal either). I get the following error:

gpg: can't connect to the agent: IPC connect call failed gpg: can't connect to the agent: IPC connect call failed gpg: decryption failed: No secret key

Any idea what is wrong? Thanks!

maximbaz commented 5 years ago

Try to restart gpg-agent, or maybe better simply reboot. After that make sure gpg itself is able to see your private key with gpg -K, if so proceed retrying pass and browserpass.

sievertz commented 5 years ago

Just tried restarting and then gpg -K but that just resulted in:

gpg: can't connect to the agent: IPC connect call failed gpg: can't connect to the agent: IPC connect call failed gpg: can't connect to the agent: IPC connect call failed

Any other ideas?

maximbaz commented 5 years ago

Uh it seems you broke your gpg 😄 Try to google, there are some results like this: https://stackoverflow.com/questions/46673717/gpg-cant-connect-to-the-agent-ipc-connect-call-failed

Browserpass doesn't use pass at all, but it heavily depends on gpg, so you've got to get gpg working before you can use this project :)

sievertz commented 5 years ago

So I simply re-installed macgpg2 from https://github.com/GPGTools/MacGPG2, that fixed the issue. Not sure what I did to break it though!

browserpass also works now, thanks for the help :)

maximbaz commented 5 years ago

Yay, enjoy 😉