Package: gnupg-agent
Version: 2.0.9-3.1
Severity: important
File: /usr/bin/gpg-agent


I have the same bug as reported in #386107.

I think the bug is related to running through screen, i have a backup user
which should encrypt the backup files before sending them to a remote host.

The previously mentioned bug was closed because the original reporter did not
provide sufficient debugging output to pinpoint the problem, i would like to
report that now.

gpg-agent running with --daemon -vv --debug=all -write-env-file
~/.gnupg-agent-info

~/.gnupg-agent-info sourced using . ~/.gnupg-agent-info.

Environment variables defined:

sequanto-bac...@server1:~$ export
declare -x GPG_AGENT_INFO="/tmp/gpg-ttYniK/S.gpg-agent:21637:1"
declare -x GPG_TTY="/dev/pts/2"
declare -x HISTCONTROL="ignoreboth"
declare -x HOME="/home/sequanto-backup"
declare -x LANG="da_DK.UTF-8"
declare -x LOGNAME="sequanto-backup"
declare -x
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
declare -x MAIL="/var/mail/sequanto-backup"
declare -x OLDPWD
declare -x
PATH="/home/sequanto-backup/bin:/usr/local/bin:/usr/bin:/bin:/usr/games"
declare -x PWD="/home/sequanto-backup"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_AGENT_PID="20763"
declare -x SSH_AUTH_SOCK="/tmp/ssh-qvJTf20762/agent.20762"
declare -x TERM="screen"
declare -x USER="sequanto-backup"

Output of echo test | gpg --use-agent -s

sequanto-bac...@server1:~$ echo test | gpg --use-agent -s

You need a passphrase to unlock the secret key for
user: "Sequanto Backup (Backup user for signing backups)
<ras...@sequanto.com>"
1024-bit DSA key, ID F0B48961, created 2009-10-16

gpg-agent[21637]: handler 0x85eb30 for fd 6 started
gpg-agent[21637.6] DBG: -> OK Pleased to meet you
gpg-agent[21637.6] DBG: <- OPTION ttyname=/dev/pts/2
gpg-agent[21637.6] DBG: -> OK
gpg-agent[21637.6] DBG: <- OPTION ttytype=screen
gpg-agent[21637.6] DBG: -> OK
gpg-agent[21637.6] DBG: <- OPTION lc-ctype=da_DK.UTF-8
gpg-agent[21637.6] DBG: -> OK
gpg-agent[21637.6] DBG: <- OPTION lc-messages=da_DK.UTF-8
gpg-agent[21637.6] DBG: -> OK
gpg-agent[21637.6] DBG: <- GET_PASSPHRASE
49F8A7303F03E74AF2574D0911B16931F0B48961 X X
You+need+a+passphrase+to+unlock+the+secret+key+for+user:%0A"Sequanto+Backup+(Backup+user+for+signing+backups)+<ras...@sequanto.com>"%0A1024-bit+DSA+key,+ID+F0B48961,+created+2009-10-16%0A
gpg-agent[21637]: DBG: agent_get_cache
`49F8A7303F03E74AF2574D0911B16931F0B48961'...
gpg-agent[21637]: DBG: ... miss
gpg-agent[21637]: starting a new PIN Entry
gpg-agent[21637]: DBG: connection to PIN entry established
gpg-agent[21637]: command get_passphrase failed: Operation cancelled
gpg-agent[21637.6] DBG: -> ERR 83886179 Operation cancelled <Pinentry>
gpg: cancelled by user
gpg-agent[21637]: handler 0x89fad0 for fd 7 started
gpg-agent[21637.7] DBG: -> OK Pleased to meet you
gpg-agent[21637.6] DBG: <- BYE
gpg-agent[21637.6] DBG: -> OK closing connection
gpg-agent[21637]: handler 0x85eb30 for fd 6 terminated
gpg-agent[21637.7] DBG: <- OPTION ttyname=/dev/pts/2
gpg-agent[21637.7] DBG: -> OK
gpg-agent[21637.7] DBG: <- OPTION ttytype=screen
gpg-agent[21637.7] DBG: -> OK
gpg-agent[21637.7] DBG: <- OPTION lc-ctype=da_DK.UTF-8
gpg-agent[21637.7] DBG: -> OK
gpg-agent[21637.7] DBG: <- OPTION lc-messages=da_DK.UTF-8
gpg-agent[21637.7] DBG: -> OK
gpg-agent[21637.7] DBG: <- CLEAR_PASSPHRASE
49F8A7303F03E74AF2574D0911B16931F0B48961
gpg-agent[21637]: DBG: agent_put_cache
`49F8A7303F03E74AF2574D0911B16931F0B48961' requested ttl=0 mode=3
gpg-agent[21637.7] DBG: -> OK
gpg: no default secret key: dårlig kodesætning
gpg: signing failed: dårlig kodesætning
gpg-agent[21637.7] DBG: <- BYE
gpg-agent[21637.7] DBG: -> OK closing connection
gpg-agent[21637]: handler 0x89fad0 for fd 7 terminated

Hopefully someone can make some sense of this.

It works perfectly when running outside of screen.

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=da_DK.UTF-8, LC_CTYPE=da_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gnupg-agent depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libgcrypt11                   1.4.1-1    LGPL Crypto library - runtime libr
ii  libgpg-error0                 1.4-2      library for common error values an
ii  libpth20                      2.0.7-12   The GNU Portable Threads
ii  libreadline5                  5.2-3.1    GNU readline and history libraries
ii  pinentry-curses [pinentry]    0.7.5-2.1  curses-based PIN or pass-phrase en

Versions of packages gnupg-agent recommends:
ii  gnupg                     1.4.9-3+lenny1 GNU privacy guard - a free PGP rep
ii  gnupg2                    2.0.9-3.1      GNU privacy guard - a free PGP rep

gnupg-agent suggests no packages.

-- no debconf information



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

Reply via email to