How do I troubleshoot Pass â it is taking forever to unlock my gpg key
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm using pass to manage/consolidate passwords, but it takes a very long time to even ask for my gpg passphrase. It can take up to 30 seconds, which doesn't sound like an eternity but it sure feels like an eternity.
I'd love to figure out what is going on.
When I run it with strace
it dumps a bunch to the screen and then gets to:
access("/usr/bin/gpg2", X_OK) = 0
stat("/usr/bin/gpg2", 0755, st_size=917032, ...) = 0
geteuid() = 1000
getegid() = 1000
getuid() = 1000
getgid() = 1000
access("/usr/bin/gpg2", R_OK) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], , 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fce7a0969d0) = 21903
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigaction(SIGINT, 0x4449b0, , SA_RESTORER, 0x7fce796db4b0, SIG_DFL, , SA_RESTORER, 0x7fce796db4b0, 8) = 0
wait4(-1,
It hangs out there and eventually I get a prompt for my gpg passphrase. Once I unlock my gpg key it spits the password right out, I don't understand why the prompt takes so long.
bash password gpg-agent
 |Â
show 2 more comments
up vote
0
down vote
favorite
I'm using pass to manage/consolidate passwords, but it takes a very long time to even ask for my gpg passphrase. It can take up to 30 seconds, which doesn't sound like an eternity but it sure feels like an eternity.
I'd love to figure out what is going on.
When I run it with strace
it dumps a bunch to the screen and then gets to:
access("/usr/bin/gpg2", X_OK) = 0
stat("/usr/bin/gpg2", 0755, st_size=917032, ...) = 0
geteuid() = 1000
getegid() = 1000
getuid() = 1000
getgid() = 1000
access("/usr/bin/gpg2", R_OK) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], , 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fce7a0969d0) = 21903
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigaction(SIGINT, 0x4449b0, , SA_RESTORER, 0x7fce796db4b0, SIG_DFL, , SA_RESTORER, 0x7fce796db4b0, 8) = 0
wait4(-1,
It hangs out there and eventually I get a prompt for my gpg passphrase. Once I unlock my gpg key it spits the password right out, I don't understand why the prompt takes so long.
bash password gpg-agent
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
I have gpg-agent.
â Amanda
Jan 24 at 1:18
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
Are you runningpass
on a remote machine, e.g. viassh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check thepinentry-program
setting in your~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.
â cas
Jan 24 at 1:52
BTW, i usepinentry-program /usr/bin/pinentry-curses
because I mostly usepass
andgpg
from the command line (or from text programs likemutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.
â cas
Jan 24 at 1:55
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using pass to manage/consolidate passwords, but it takes a very long time to even ask for my gpg passphrase. It can take up to 30 seconds, which doesn't sound like an eternity but it sure feels like an eternity.
I'd love to figure out what is going on.
When I run it with strace
it dumps a bunch to the screen and then gets to:
access("/usr/bin/gpg2", X_OK) = 0
stat("/usr/bin/gpg2", 0755, st_size=917032, ...) = 0
geteuid() = 1000
getegid() = 1000
getuid() = 1000
getgid() = 1000
access("/usr/bin/gpg2", R_OK) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], , 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fce7a0969d0) = 21903
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigaction(SIGINT, 0x4449b0, , SA_RESTORER, 0x7fce796db4b0, SIG_DFL, , SA_RESTORER, 0x7fce796db4b0, 8) = 0
wait4(-1,
It hangs out there and eventually I get a prompt for my gpg passphrase. Once I unlock my gpg key it spits the password right out, I don't understand why the prompt takes so long.
bash password gpg-agent
I'm using pass to manage/consolidate passwords, but it takes a very long time to even ask for my gpg passphrase. It can take up to 30 seconds, which doesn't sound like an eternity but it sure feels like an eternity.
I'd love to figure out what is going on.
When I run it with strace
it dumps a bunch to the screen and then gets to:
access("/usr/bin/gpg2", X_OK) = 0
stat("/usr/bin/gpg2", 0755, st_size=917032, ...) = 0
geteuid() = 1000
getegid() = 1000
getuid() = 1000
getgid() = 1000
access("/usr/bin/gpg2", R_OK) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], , 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fce7a0969d0) = 21903
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigprocmask(SIG_SETMASK, , NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], , 8) = 0
rt_sigaction(SIGINT, 0x4449b0, , SA_RESTORER, 0x7fce796db4b0, SIG_DFL, , SA_RESTORER, 0x7fce796db4b0, 8) = 0
wait4(-1,
It hangs out there and eventually I get a prompt for my gpg passphrase. Once I unlock my gpg key it spits the password right out, I don't understand why the prompt takes so long.
bash password gpg-agent
edited Jan 24 at 1:20
asked Jan 23 at 22:29
Amanda
372112
372112
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
I have gpg-agent.
â Amanda
Jan 24 at 1:18
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
Are you runningpass
on a remote machine, e.g. viassh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check thepinentry-program
setting in your~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.
â cas
Jan 24 at 1:52
BTW, i usepinentry-program /usr/bin/pinentry-curses
because I mostly usepass
andgpg
from the command line (or from text programs likemutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.
â cas
Jan 24 at 1:55
 |Â
show 2 more comments
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
I have gpg-agent.
â Amanda
Jan 24 at 1:18
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
Are you runningpass
on a remote machine, e.g. viassh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check thepinentry-program
setting in your~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.
â cas
Jan 24 at 1:52
BTW, i usepinentry-program /usr/bin/pinentry-curses
because I mostly usepass
andgpg
from the command line (or from text programs likemutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.
â cas
Jan 24 at 1:55
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
I have gpg-agent.
â Amanda
Jan 24 at 1:18
I have gpg-agent.
â Amanda
Jan 24 at 1:18
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
Are you running
pass
on a remote machine, e.g. via ssh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check the pinentry-program
setting in your ~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.â cas
Jan 24 at 1:52
Are you running
pass
on a remote machine, e.g. via ssh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check the pinentry-program
setting in your ~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.â cas
Jan 24 at 1:52
BTW, i use
pinentry-program /usr/bin/pinentry-curses
because I mostly use pass
and gpg
from the command line (or from text programs like mutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.â cas
Jan 24 at 1:55
BTW, i use
pinentry-program /usr/bin/pinentry-curses
because I mostly use pass
and gpg
from the command line (or from text programs like mutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.â cas
Jan 24 at 1:55
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f419210%2fhow-do-i-troubleshoot-pass-it-is-taking-forever-to-unlock-my-gpg-key%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do you have some sort of agent or keychain running?
â jasonwryan
Jan 23 at 22:31
I have gpg-agent.
â Amanda
Jan 24 at 1:18
If your agent flakes out and you call pass, you will see this sort of blocking. I'd be looking at the agent, not pass.
â jasonwryan
Jan 24 at 1:42
Are you running
pass
on a remote machine, e.g. viassh
? If the gpg-agent on that remote machine is configured to try a GUI program first when asking for the password, you will get delays (or eventual timeout and fail). Check thepinentry-program
setting in your~/.gnupg/gpg-agent.conf
. There are also various debug settings you can enable in that conf file.â cas
Jan 24 at 1:52
BTW, i use
pinentry-program /usr/bin/pinentry-curses
because I mostly usepass
andgpg
from the command line (or from text programs likemutt
) and i want it to work in a local terminal and over ssh. I really don't care about a GUI for passphrase entry, so I've never bothered to find out how to get it to work reliably for both text-mode and GUI.â cas
Jan 24 at 1:55