Bug#727013: Bug #727013: [gnupg2] gpg2 cannot connect to pinentry, although it is installed

2015-09-25 Thread Mariusz Gronczewski
I have similiar problem.

Config is simple i3 window manager, so no gnome services running by default
except gnome keyring

when I run gpg-agent either from standard /etc/ xsession or from
.xsessionrc I dont get any pinentry, only immediate failure and it logs
(guru loglevel):

2015-09-25 12:21:12 gpg-agent[23399] starting a new PIN Entry
2015-09-25 12:21:12 gpg-agent[23399] DBG: connection to PIN entry
established
2015-09-25 12:21:12 gpg-agent[23399] DBG: error calling pinentry: Operacja
anulowana 
2015-09-25 12:21:12 gpg-agent[23399] failed to unprotect the secret key:
Operacja anulowana
2015-09-25 12:21:12 gpg-agent[23399] failed to read the secret key
2015-09-25 12:21:12 gpg-agent[23399] ssh sign request failed: Operacja
anulowana 
2015-09-25 12:21:12 gpg-agent[23399] ssh request handler for sign_request
(13) ready

(Operacja anulowana is "operation cancelled" in english)

but when I kill the daemon and run it from X11's terminal and then try to
connect (after setting correct env of couse) I get pinentry correctly




-- 
Mariusz Gronczewski (XANi) 
GnuPG: 0xEA8ACE64


Bug#727013: Bug #727013: [gnupg2] gpg2 cannot connect to pinentry, although it is installed

2015-09-25 Thread Mariusz Gronczewski
Also I've noticed that my password for key doesn't work (tried to enter it
at least 5 times and failed everytime and I'm 100% sure it wasnt a typo),
and downgrading to 2.0.28 helped

-- 
Mariusz Gronczewski (XANi) 
GnuPG: 0xEA8ACE64


Bug#727013: Bug #727013: [gnupg2] gpg2 cannot connect to pinentry, although it is installed

2015-01-06 Thread Thomas Hackert
Hello Eric, *,
 Control: tags -1 unreproducible
 
 * Thomas Hackert (thack...@nexgo.de) wrote:
  Package: gnupg2
  Version: 2.0.20-1
  Severity: normal
  
  --- Please enter the report below this line. ---
  Hello @ll,
  when I create a test file via
  quote
  echo test  test
  /quote
  and then use
  quote
  gpg2 --sign test
  /quote
  to sign my test file, I get the following message
  quote
  You need a passphrase to unlock the secret key for
  user: Test User
  2048-bit RSA key, ID $secret, created 2013-10-21
  
  gpg: can't connect to the agent - trying fall back
  gpg-agent[4199]: enabled debug flags: assuan
  gpg: problem with the agent: No pinentry
  gpg: no default secret key: Operation cancelled
  gpg: signing failed: Operation cancelled
  /quote
 
 Odd. Could you try running your agent under strace to try to see where
 it's failing to find pinentry?

I have tried different things:
First on my netbook (an Asus eeepC 1000H with Debian Testing i686):
1. killall gpg-agent to kill the agent
2. strace /usr/bin/gpg-agent --daemon --sh
--write-env-file=~/.gnupg/gpg-agent-info-niobe
/usr/bin/dbus-launch --exit-with-session x-session-manager 2
~/gnupg_strace.log to restart the agent (or did you mean something
different here?)
3. switched to another tab in konsole and typed gpg2 --sign test (got
the same message as before)
4. switched back to the tab with the strace command
5. have waited for ca. 20 seconds, before an Xdialog window with KDE is
already running (or something like that) popped up
6. stopped strace with CRTL+C, after I confirmed this dialog
.

This resulted in an log file, which is 7.1 MB large. But as I am not a
dev, I cannot see, if my gpg2 --sign... leads to any error message,
sorry ... :(

The second try was done on the PC, which I use for my recreational
training with Debian Testing AMD64:
1. Moved my .gnupg directory to dotgnupg (though I have never used GPG
there ... ;) )
2. tried gpg2 --gen-key
3. entered all needed data like name, mail address, etc.
4. confirmed its correctness

There I got the message
quote
You need a Passphrase to protect your secret key.

gpg: problem with the agent: No pinentry
gpg: Key generation canceled.
/quote
... :( I have installed – as with my eeePC – pinentry-qt4 as well as
pinentry-curses, where the last one is entered in my gpg-agent.conf.

Third try (back at home):
1. Restarted my netbook
2. Did the gpg2 --sign test again

Got the message
quote
gpg: writing to `test.gpg'
gpg: signing failed: No pinentry
gpg: signing failed: No pinentry
/quote

Now I am at my wit's end ... :( If you know something easy to help you,
feel free to ask :)
Sorry for the inconvenience and have a nice afternoon
Thomas.

-- 
Everyone who comes in here wants three things:
(1) They want it quick.
(2) They want it good.
(3) They want it cheap.
I tell 'em to pick two and call me back.
-- sign on the back wall of a small printing company


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org