Open rsrchboy opened 8 years ago
This is likely a pinentry problem, with this being a culprit:
08d error getting TTY for GPG: No Context provided for this call
This code is somewhat new, so I can investigate a bit today..
Thank you!
Cc: @patrickxb, seems like using NetContext
doesn't always work since it's not plumbed through all the way through the various code paths.
I'm getting this same error when I run keybase signup
and it asks if I want to use one of my PGP keys. This is the first command I ran after installing keybase
:
$ keybase signup
Your email address: foo@bar.com
Your desired username: username
A public name for this device [home computer]: computername
Would you like to add one of your PGP keys to Keybase? [Y/n] y
# Algo Key Id Created UserId
= ==== ====== ======= ======
1 xxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx
2 xxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3 xxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
4 xxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Choose a key: 4
▶ WARNING error getting TTY for GPG: No Context provided for this call
▶ ERROR addGPG error: ImportKey (secret: true) error: GPG error: exit status 2
I'm running Archlinux. And:
$ keybase version
Client: 1.0.41
Service: 1.0.41
Also, my gpg agent is running and my pin entry works when running standard gpg commands. e.g., gpg -d something.gpg
prompts me for my pin.
It looks like the signup
command did actually create my account, but did indeed fail to associate my gpg key. Running keybase pgp select
yielded the same ▶ ERROR ImportKey (secret: true) error: GPG error: exit status 2
. However, running keybase pgp select --no-import
did actually work. I don't understand why.
Running under a plain shell (no tmux, no screen, etc), with gpg-agent running, the client hangs at this point:
After selecting
1
, here's what the output of the above command but with--debug
shows:...and there we stay, until I abort it.
Additionally,
--gpg-options
doesn't actually appear to impact the options given to gpg2 (AFAICT, at any rate).Am I futzing something here?