Re: Fails to sign a message after gnupg2/gpgsm upgrade



Hi,

So, I tried to run the command from the console after installing 
pinentery-curses

(BTW I've pinentry-gtk2, -qt4 and -curses together on the sytem).

I used saehorse-agent (laaunched automatically by gnome). So I leaved 
gnome to see.

I've started gpg-agent as you told me.

The first time, I tried the gpg2 --sign -a command with only the gtk 
version of pinentry on the system.
The second time, I had the 3 versions.

(Who chosse the right binary?)

Attached the log files. (suffix -pinetry-gtk for the 1st case and -
pinentry-curses with the 3 versions installed).


Regards

Jean-Luc


Le 27/08/2009 19:32:54, Albrecht Dreß a écrit :
>Hi Jean-Luc & Peter:
>
>Am 26.08.09 22:35 schrieb(en) Jean-Luc Coulon (f5ibh):
>> [jean-luc tangerine] % gpg2 --sign -a
>> 
>> You need a passphrase to unlock the secret key for
>> user: "Jean-Luc Coulon (f5ibh) <jean-luc coulon wanadoo fr>"
>> 1024-bit DSA key, ID 3CC69CD0, created 2001-09-07
>> 
>> gpg: problem with the agent: No pinentry
>> gpg: no default secret key: General error
>> gpg: signing failed: General error
>
>There's something broken with gpg2, afaict...
>
>> I use seahorse normally.
>
>Please be sure that you use *either* gpg-agent *or* the agent coming  
>with seahorse (seahorse-agent?).  I prefer using gpg-agent; as iirc  
>seahorse-agent doesn't support the ncurses terminal if, and doesn't  
>support all stuff needed by gpgsm.
>
>What you could do for testing:
>
>(1) Terminate all running gpg-agent's (killall).  Run "ps auxw | grep  
>agent" to check they are *really* gone (on my Ubuntu box, 'killall  
>gpg-agent' left a Zombie, which didn't do any harm).
>
>(2) Run the command "gpg-agent --daemon --no-detach --debug-level guru 
>
>--log-file ./gpg-agent.log".  It will give you a line reading like  
>"GPG_AGENT_INFO=/tmp/gpg-ZnjGbt/S.gpg-agent:7049:1; export  
>GPG_AGENT_INFO;".  Enter this line.
>
>(3) Now run "gpg2 --sign -a".  If I give the agent a bad (non-
> existent)
> 
>pinentry, it will print out information about that both in the gpg2  
>session and in the file ./gpg-agent.log.  Maybe that gives some more  
>insight.
>
>You could also try to use a different pinentry (like the qt version) - 
>
>in the past, there were issues with suid-root Gtk+ applications.
>
>Hope this helps,
>Albrecht.
>

------texte cité en attachement------
>_______________________________________________
>balsa-list mailing list
>balsa-list gnome org
>http://mail.gnome.org/mailman/listinfo/balsa-list
>



2009-08-27 21:39:24 gpg-agent[7201] listening on socket `/tmp/gpg-iWOVBS/S.gpg-agent'
2009-08-27 21:39:24 gpg-agent[7202] gpg-agent (GnuPG) 2.0.12 started
2009-08-27 21:39:54 gpg-agent[7202] handler 0x1bc5130 for fd 8 started
gpg-agent[7202.8] DBG: -> OK Pleased to meet you
gpg-agent[7202.8] DBG: <- RESET
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttyname=/dev/tty1
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttytype=linux
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-ctype=fr_FR.UTF-8
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-messages=fr_FR.UTF-8
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION allow-pinentry-notify
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GETINFO cmd_has_option GET_PASSPHRASE repeat
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GET_PASSPHRASE --data --repeat=0 -- F97A5DC528BB6660EE14950B51D1865F3CC69CD0 X X Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+OpenPGP+certificate:%0A%22Jean-Luc+Coulon+(f5ibh)+<jean-luc coulon wanadoo fr>%22%0A1024-bit+DSA+key,+ID+3CC69CD0,%0Acreated+2001-09-07.%0A
2009-08-27 21:39:54 gpg-agent[7202] DBG: agent_get_cache `F97A5DC528BB6660EE14950B51D1865F3CC69CD0'...
2009-08-27 21:39:54 gpg-agent[7202] DBG: ... miss
2009-08-27 21:39:54 gpg-agent[7202] starting a new PIN Entry
gpg-agent[7202]: can't connect server: `ERR 67109133 can't exec `/usr/bin/pinentry-gtk': Aucun fichier ou dossier de ce type'
2009-08-27 21:39:54 gpg-agent[7202] can't connect to the PIN entry module: IPC connect call failed
2009-08-27 21:39:54 gpg-agent[7202] command get_passphrase failed: Pas de pinentry
gpg-agent[7202.8] DBG: -> ERR 67108949 Pas de pinentry <GPG Agent>
gpg-agent[7202.8] DBG: <- [EOF]
2009-08-27 21:39:54 gpg-agent[7202] handler 0x1bc5130 for fd 8 terminated
2009-08-27 21:40:11 gpg-agent[7202] handler 0x1bc6990 for fd 8 started
gpg-agent[7202.8] DBG: -> OK Pleased to meet you
gpg-agent[7202.8] DBG: <- RESET
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttyname=/dev/tty1
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttytype=linux
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-ctype=C
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-messages=C
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION allow-pinentry-notify
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GETINFO cmd_has_option GET_PASSPHRASE repeat
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GET_PASSPHRASE --data --repeat=0 -- F97A5DC528BB6660EE14950B51D1865F3CC69CD0 X X Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+OpenPGP+certificate:%0A%22Jean-Luc+Coulon+(f5ibh)+<jean-luc coulon wanadoo fr>%22%0A1024-bit+DSA+key,+ID+3CC69CD0,%0Acreated+2001-09-07.%0A
2009-08-27 21:40:11 gpg-agent[7202] DBG: agent_get_cache `F97A5DC528BB6660EE14950B51D1865F3CC69CD0'...
2009-08-27 21:40:11 gpg-agent[7202] DBG: ... miss
2009-08-27 21:40:11 gpg-agent[7202] starting a new PIN Entry
gpg-agent[7202]: can't connect server: `ERR 67109133 can't exec `/usr/bin/pinentry-gtk': Aucun fichier ou dossier de ce type'
2009-08-27 21:40:11 gpg-agent[7202] can't connect to the PIN entry module: IPC connect call failed
2009-08-27 21:40:11 gpg-agent[7202] command get_passphrase failed: Pas de pinentry
gpg-agent[7202.8] DBG: -> ERR 67108949 Pas de pinentry <GPG Agent>
gpg-agent[7202.8] DBG: <- [EOF]
2009-08-27 21:40:11 gpg-agent[7202] handler 0x1bc6990 for fd 8 terminated
2009-08-27 21:40:19 gpg-agent[7202] handler 0x1bc5130 for fd 8 started
gpg-agent[7202.8] DBG: -> OK Pleased to meet you
gpg-agent[7202.8] DBG: <- RESET
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttyname=/dev/tty1
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION ttytype=linux
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-ctype=C
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION lc-messages=C
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- OPTION allow-pinentry-notify
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GETINFO cmd_has_option GET_PASSPHRASE repeat
gpg-agent[7202.8] DBG: -> OK
gpg-agent[7202.8] DBG: <- GET_PASSPHRASE --data --repeat=0 -- F97A5DC528BB6660EE14950B51D1865F3CC69CD0 X X Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+OpenPGP+certificate:%0A%22Jean-Luc+Coulon+(f5ibh)+<jean-luc coulon wanadoo fr>%22%0A1024-bit+DSA+key,+ID+3CC69CD0,%0Acreated+2001-09-07.%0A
2009-08-27 21:40:19 gpg-agent[7202] DBG: agent_get_cache `F97A5DC528BB6660EE14950B51D1865F3CC69CD0'...
2009-08-27 21:40:19 gpg-agent[7202] DBG: ... miss
2009-08-27 21:40:19 gpg-agent[7202] starting a new PIN Entry
gpg-agent[7202]: can't connect server: `ERR 67109133 can't exec `/usr/bin/pinentry-gtk': Aucun fichier ou dossier de ce type'
2009-08-27 21:40:20 gpg-agent[7202] can't connect to the PIN entry module: IPC connect call failed
2009-08-27 21:40:20 gpg-agent[7202] command get_passphrase failed: Pas de pinentry
gpg-agent[7202.8] DBG: -> ERR 67108949 Pas de pinentry <GPG Agent>
gpg-agent[7202.8] DBG: <- [EOF]
2009-08-27 21:40:20 gpg-agent[7202] handler 0x1bc5130 for fd 8 terminated

2009-08-27 21:43:48 gpg-agent[12255] listening on socket `/tmp/gpg-7RJgFL/S.gpg-agent'
2009-08-27 21:43:48 gpg-agent[12256] gpg-agent (GnuPG) 2.0.12 started
2009-08-27 21:44:16 gpg-agent[12256] handler 0xcf8cb0 for fd 8 started
gpg-agent[12256.8] DBG: -> OK Pleased to meet you
gpg-agent[12256.8] DBG: <- RESET
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- OPTION ttyname=/dev/tty1
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- OPTION ttytype=linux
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- OPTION lc-ctype=C
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- OPTION lc-messages=C
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- OPTION allow-pinentry-notify
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- GETINFO cmd_has_option GET_PASSPHRASE repeat
gpg-agent[12256.8] DBG: -> OK
gpg-agent[12256.8] DBG: <- GET_PASSPHRASE --data --repeat=0 -- F97A5DC528BB6660EE14950B51D1865F3CC69CD0 X X Please+enter+the+passphrase+to+unlock+the+secret+key+for+the+OpenPGP+certificate:%0A%22Jean-Luc+Coulon+(f5ibh)+<jean-luc coulon wanadoo fr>%22%0A1024-bit+DSA+key,+ID+3CC69CD0,%0Acreated+2001-09-07.%0A
2009-08-27 21:44:16 gpg-agent[12256] DBG: agent_get_cache `F97A5DC528BB6660EE14950B51D1865F3CC69CD0'...
2009-08-27 21:44:16 gpg-agent[12256] DBG: ... miss
2009-08-27 21:44:16 gpg-agent[12256] starting a new PIN Entry
gpg-agent[12256]: can't connect server: `ERR 67109133 can't exec `/usr/bin/pinentry-gtk': No such file or directory'
2009-08-27 21:44:16 gpg-agent[12256] can't connect to the PIN entry module: IPC connect call failed
2009-08-27 21:44:16 gpg-agent[12256] command get_passphrase failed: No pinentry
gpg-agent[12256.8] DBG: -> ERR 67108949 No pinentry <GPG Agent>
gpg-agent[12256.8] DBG: <- [EOF]
2009-08-27 21:44:16 gpg-agent[12256] handler 0xcf8cb0 for fd 8 terminated



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]