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

"gpg-agent: command get_passphrase failed: No such file or directory" #156

Closed
lucaspiller opened this issue Jan 31, 2016 · 2 comments
Closed

Comments

@lucaspiller
Copy link

@lucaspiller lucaspiller commented Jan 31, 2016

I've been using pass for years, and wanted to try out a GUI so here I am.

Whenever I try and decrypt a file I get the following error:

gpg-agent[30845]: command get_passphrase failed: No such file or directory
gpg: problem with the agent: No such file or directory
gpg: decryption failed: No secret key

If I run pass <file> in the terminal it decrypts fine (GPG prompts me for my passphrase each time, it's not stored in the agent or OS X keychain).

I'm running the latest release (v1.1.0). Details of my system:

$ which pass
/usr/local/bin/pass
$ which gpg2
/usr/local/bin/gpg2
$ which git
/usr/local/bin/git
$ which pwgen
/usr/local/bin/pwgen
$ uname -a
Darwin Maiz.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64
@annejan
Copy link
Member

@annejan annejan commented Jan 31, 2016

This is caused by pass normally asking for your pinentry (or passphrase) in the console, and there doesn't seem to be a graphical pinentry set in the gpg configuration.
Technically I could have wrapped some stuff around this issue, but for separation of concerns it was decided that QtPass should never know your GPG passphrase.
GPG has ways to set up different pinentry dialog options for GUI and commandline use.

I'm guessing you are running a homebrew version of GPG2?
I have not gotten that to work with a graphical pinentry yet myself, if you get it working, please tell us so we can add that to the FAQ and lose a dependency on gpgtools.

Unfortunately currently on OSX I have only been able to get QtPass working with the https://gpgtools.org/ and their graphical pin/passphrase-entry widget.

Which in my case asks for my GPG passphrase every time I want to decrypt a password too.

I might give it a try somewhere next week, uninstalling gpgtools and trying to get a graphical pinentry set-up with the homebrew gpg version.

@passw0rd123
Copy link

@passw0rd123 passw0rd123 commented Jun 8, 2016

@annejan Thanks for your explanation. Installing pinentry-mac on Homebrew worked for me 👍

brew install pinentry-mac
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants