
http://bugzilla.novell.com/show_bug.cgi?id=589994 http://bugzilla.novell.com/show_bug.cgi?id=589994#c4 Alex Tsariounov <alext@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|alext@novell.com | --- Comment #4 from Alex Tsariounov <alext@novell.com> 2010-03-26 17:13:09 UTC --- (In reply to comment #3)
I have no idea why it works now. Is the original issue reproducible? Are you running gpg in X or on tty? What if you create some testing user account and try the same procedure as different user?
It is reproducible. I think this may be interference from seahorse-agent. By default, I don't run gpg-agent. After I log in and try to encrypt something, I do not get the pinentry double dialogs for the passphrase, instead I get a dialog with the title "Passphrase" which has two entries for the phrase. (Pinentry comes up twice for the two phrases and has a title of "pinentry-gtk2".) So, right after login, with this dual phrase entry dialog, I get the error. The error happens before the phrase entry dialog comes up. And the resulting error code from gpg is always 2. Now, if I run [eval $(gpg-agent --daemon)], I get the pinetry dialog and zero return code. Additionally, if I then kill the gpg-agent, I still get the pinentry dialog and the zero return code from gpg (it just says it can't connect to the gpg-agent). Perhaps running gpg-agent somehow makes gpg stop trying to connect to seahorse-agent, and it doesn't try to connect even after gpg-agent is killed? Also, if I create a different account, the behavior is exactly the same.
Please provide output of 'rpm -qa | grep gpg | grep -v pubkey'. Also please answer the question about pinentry from comment #2. Thanks.
[zuul:Desktop]$ rpm -qa | grep gpg | grep -v pubkey gpg2-2.0.14-3.1.x86_64 libgpg-error0-1.7-3.2.x86_64 gpgme-1.2.0-2.5.x86_64 kgpg-4.3.5-0.1.1.x86_64 gpg2-lang-2.0.14-3.1.noarch libgpgme11-1.2.0-2.5.x86_64 libgpg-error-devel-1.7-3.2.x86_64 libgpg-error0-32bit-1.7-3.2.x86_64 [zuul:Desktop]$ which pinentry /usr/bin/pinentry [zuul:Desktop]$ rpm -q pinentry pinentry-0.7.6-5.5.x86_64 [zuul:Desktop]$ rpm -qf `which seahorse-agent` seahorse-plugins-2.28.1-0.1.1.x86_64
You can also try setting up gpg-agent as described e.g. in gpg-agent(1), 'EXAMPLES' section.
Actually, I'd rather not run the gpg-agent since it caches my phrases, and I'd rather type them in every time. Thanks. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.