keychain sometimes mistakenly thinks it has found an existing ssh-agent process and then fails when it tries to use it. It has actually found a dbus process.
Steps to Reproduce:
1.Login to xfce
2.open a login terminal, I use zsh
3.start keychain in ~/.zlogin
% keychain --agents ssh ~/.ssh/id_dsa ~/.ssh/id_rsa
* keychain 2.7.1 ~ http://www.funtoo.org
* Found existing ssh-agent: 3312
* Adding 2 ssh key(s): /home/qa4437/.ssh/id_dsa /home/qa4437/.ssh/id_rsa
* Error: Problem adding; giving up
should start a ssh-agent and use it.
qa4437@shadow ~ % ps -fwp 3312
UID PID PPID C STIME TTY TIME CMD
qa4437 3312 1 0 08:33 ? 00:00:00 /usr/bin/dbus-launch --exit-with-session /usr/bin/ssh-agent -- startxfce4
My thought it that for starters, keychain should use pgrep (since it matches the exact command) if it is present instead of slogging through 'ps x|awk' output as it does.
is this a problem with 2.8.2?
My gentoo system is now headless, so I can't check the exact thing that happened before, but trying to fake it seems to show that the issue would no longer occur with 2.8.x
Thanks for the follow up Mark. Going to mark this as fixed since the current versions in the tree solve this.