The Pageant interaction relies on the Ruby/DL library (bundled with Ruby) to call into native C routines and communicate with pageant via the windows interprocess API. I didn't write it (it was contributed), and I don't have any way to test it--can anyone else confirm that these errors are happening to them?

I wonder what would happen, Andrew, if you upgraded your Ruby to the latest 1.8.6.

- Jamis

On Mar 27, 2008, at 8:13 AM, Andrew Watts wrote:

We have several servers in production which we're managing with
Capistrano.  We do not use public key authentication to connect to
them.  I do use public key authentication to connect to other
machines, so I have Pageant running to hold my key for them.  When I
try to connect to our production servers, I get random errors when
Net::SSH tries to talk to Pageant.  If I try over and over again,
eventually it will work.  If I kill Pageant, the errors go away as
well.  Here is the transcript of a particularly bad session.  I'm
running our "grep_production_log" task to search the log files.
Ultimately, it doesn't find anything.

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: elvis.reverbnation.com
(Net::SSH::UserAuth::AgentError: bad authentication reply: 2)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: miles.reverbnation.com
(Net::SSH::UserAuth::AgentError: bad authentication reply: 1)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: snoop.reverbnation.com
(Net::SSH::UserAuth::AgentError: could not get identity count)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: snoop.reverbnation.com
(Net::SSH::UserAuth::AgentError: could not get identity count)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: miles.reverbnation.com
(Net::SSH::UserAuth::AgentError: could not get identity count)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: bootsy.reverbnation.com
(Net::SSH::UserAuth::AgentError: could not get identity count),
waylon.reverbnation.com (NoMethodError: undefined method `>' for
#<DL::PtrData:0x043545D0 ptr=0x06DD0000 size=0 free=0x00000000>)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: patsy.reverbnation.com
(Net::SSH::UserAuth::AgentError: could not get identity count)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: miles.reverbnation.com
(Net::SSH::UserAuth::AgentError: bad authentication reply: 2),
ozzy.reverbnation.com (Net::SSH::UserAuth::AgentError: bad
authentication reply: 1)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
connection failed for: snoop.reverbnation.com (NoMethodError:
undefined method `null?' for true:TrueClass)

C:\rubydev\workspace\reverbnation>cap production grep_production_log
REGEX=fan_reach_id=.2436554.
 * executing `production'
 * executing `aretha'
 * executing `bootsy'
 * executing `elvis'
 * executing `miles'
 * executing `ozzy'
 * executing `patsy'
 * executing `snoop'
 * executing `waylon'
 * executing `willie'
 * executing `grep_production_log'
regex = "fan_reach_id=.2436554."
count = 0
days_ago = 0
before_lines = 0
after_lines = 0
 * executing "grep  \"fan_reach_id=.2436554.\" /u/apps/reverbnation/
production/shared/log/production.log || :"
   servers: ["aretha.reverbnation.com", "bootsy.reverbnation.com",
"elvis.reverbnation.com", "miles.reverbnation.com",
"patsy.reverbnation.com", "snoop.reverbnation.com",
"waylon.reverbnation.com", "willie.reverbnation.com",
"ozzy.reverbnation.com"]
Password:
   [aretha.reverbnation.com] executing command
   [bootsy.reverbnation.com] executing command
   [elvis.reverbnation.com] executing command
   [miles.reverbnation.com] executing command
   [patsy.reverbnation.com] executing command
   [snoop.reverbnation.com] executing command
   [waylon.reverbnation.com] executing command
   [willie.reverbnation.com] executing command
   [ozzy.reverbnation.com] executing command
   command finished

Here are my versions of relevant pieces of software:

Ruby: ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]
Capistrano: capistrano (2.2.0, 1.4.1)
Net::SSH: net-ssh (1.1.2)
Net::SFTP: net-sftp (1.1.1, 1.1.0)
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to