gopass icon indicating copy to clipboard operation
gopass copied to clipboard

How to recover from ctrl-c when prompt asking for pin on MAC

Open williamyeh opened this issue 3 years ago • 1 comments

Summary

I accidentally hit ctrl-c when terminal on MAC asked me for gopass pin. Now gopass show hangs for a long time won't return control to me.

Tried brew uninstall gopass, hoping to clean it up, and reinstall. But after reinstalling, my local passwords are still there. gopass ls, works. But gopass show hangs.

Suggestions? Any documentation on how to fully uninstall cleanup gopass?

Thanks, William

Steps To Reproduce

Expected behavior

Environment

  • OS: [e.g. Mac OS X High Sierra, Ubuntu 18.04, Windows 10, ...]
  • OS version: [uname -a]
  • gopass Version: [gopass version]
  • Installation method: [e.g. from source, brew, gopass repo]

Additional context

williamyeh avatar Oct 12 '20 22:10 williamyeh

Can you check to see if you have a rogue gpg-agent daemon running? I've found that killing any rogue gpg-agent processes fixes this state, but you might need to run a reload afterwards. Additionally, I'd advise adding the following to your shell's dotfile to prevent getting stuck in this state.

export GPG_TTY=$(tty)

Edit: You also might need to check for pinentry and kill that as well.

nwoythal avatar Oct 28 '20 15:10 nwoythal