{"action":"created","issue":{"url":"https://api.github.com/repos/frasertweedale/gcaff/issues/5","labels_url":"https://api.github.com/repos/frasertweedale/gcaff/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/frasertweedale/gcaff/issues/5/comments","events_url":"https://api.github.com/repos/frasertweedale/gcaff/issues/5/events","html_url":"https://github.com/frasertweedale/gcaff/issues/5","id":55019781,"number":5,"title":"Provide a means of recovering (or prevention) if the passphrase fails after checking all the keys","user":{"login":"pastcompute","id":2771007,"avatar_url":"https://avatars.githubusercontent.com/u/2771007?v=3","gravatar_id":"","url":"https://api.github.com/users/pastcompute","html_url":"https://github.com/pastcompute","followers_url":"https://api.github.com/users/pastcompute/followers","following_url":"https://api.github.com/users/pastcompute/following{/other_user}","gists_url":"https://api.github.com/users/pastcompute/gists{/gist_id}","starred_url":"https://api.github.com/users/pastcompute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pastcompute/subscriptions","organizations_url":"https://api.github.com/users/pastcompute/orgs","repos_url":"https://api.github.com/users/pastcompute/repos","events_url":"https://api.github.com/users/pastcompute/events{/privacy}","received_events_url":"https://api.github.com/users/pastcompute/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-21T13:43:27Z","updated_at":"2015-01-23T11:42:31Z","closed_at":null,"body":"Hi,\r\n\r\nI got all the way through checking keys and hit the sign button, then got an error MISSING PASSPHRASE.\r\n\r\nI don't know why this happened, because I I had gpg-agent running. Perhaps I accidentally ran gcaff from a terminal window started prior to gpg-agent. Anyhow.\r\n\r\nI copied and pasted part of the log (I had logging=DEBUG) so after some sleep I might try and hack something together to parse the output of 'DEBUG:gcaff.ui:sign and send' and try again.\r\n\r\nOn reflection I havent yet setup my second private key into my gpg-agent script so maybe that caused it.\r\n\r\nAnyway, I think it might be useful, rather than exiting, to either give a chance to respawn gpg-agent (will that work? or is it too late?) or do a test that the (all) private keys are accessible before starting ?\r\n"},"comment":{"url":"https://api.github.com/repos/frasertweedale/gcaff/issues/comments/71182385","html_url":"https://github.com/frasertweedale/gcaff/issues/5#issuecomment-71182385","issue_url":"https://api.github.com/repos/frasertweedale/gcaff/issues/5","id":71182385,"user":{"login":"pastcompute","id":2771007,"avatar_url":"https://avatars.githubusercontent.com/u/2771007?v=3","gravatar_id":"","url":"https://api.github.com/users/pastcompute","html_url":"https://github.com/pastcompute","followers_url":"https://api.github.com/users/pastcompute/followers","following_url":"https://api.github.com/users/pastcompute/following{/other_user}","gists_url":"https://api.github.com/users/pastcompute/gists{/gist_id}","starred_url":"https://api.github.com/users/pastcompute/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pastcompute/subscriptions","organizations_url":"https://api.github.com/users/pastcompute/orgs","repos_url":"https://api.github.com/users/pastcompute/repos","events_url":"https://api.github.com/users/pastcompute/events{/privacy}","received_events_url":"https://api.github.com/users/pastcompute/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T11:42:31Z","updated_at":"2015-01-23T11:42:31Z","body":"So I thought a good workaround would be to cause `gpg-agent` to open the key by signing a dummy key then running `gcaff` ...\r\n\r\nNow I have something called `pinentry` spinning a core at 100% and `gcaff` frozen, so that didn't work.\r\n\r\n\r\nSo annoyingly I will have to fallback to the original caff program.\r\n\r\n\r\nOther info that may be relevant:\r\n\r\ngpg2 2.0.19\r\ngpg-agent 2.0.19\r\nDebian Wheezy amd64"}}