[Pkg-gnupg-maint] Bug#551184: /usr/bin/gpg-agent: gpg-agent does not work in screen

Eric Dorland eric at debian.org
Sun Jan 4 23:53:25 UTC 2015


Control: tags -1 unreproducible

* Rasmus Toftdahl Olesen (rasmus at sequanto.com) wrote:
> 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-backup at server1:~$ export
> declare -x GPG_AGENT_INFO="/tmp/gpg-ttYniK/S.gpg-agent:21637:1"
> declare -x GPG_TTY="/dev/pts/2"

Is /dev/pts/2 the tty you expect? Ie is it the tty you get when you
run the 'tty' command?

> 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-backup at 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)
> <rasmus at 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)+<rasmus at 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.

-- 
Eric Dorland <eric at kuroneko.ca>
43CF 1228 F726 FD5B 474C  E962 C256 FBD5 0022 1E93
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20150104/64ffc389/attachment-0001.sig>


More information about the Pkg-gnupg-maint mailing list