ok found a solution by setting
export GPG_TTY=`tty`
Thanks
-Vincent
On Dec 26, 2012, at 2:34 PM, Vincent Massol <vincent(a)massol.net> wrote:
Hi guys,
I'm failing to release 4.4RC1 because of some GPG issue on agent1:
echo "test" | gpg --no-use-agent -o /dev/null --local-user 6D84951A -as -
&& echo "Passphrase is correct"
generates:
You need a passphrase to unlock the secret key for
user: "Vincent Massol (Key to sign maven artifacts)
<vincent(a)massol.net>"
2048-bit RSA key, ID xxxxxxxx, created 2011-08-15
can't connect to `/home/hudsonagent/.gnupg/S.gpg-agent': Connection refused
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known -
assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE
known - assuming UTF-8
Any idea?
Thanks
-Vincent