Capistrano fails for multiple host deployments?

Run a simple invoke command from the directory with the Capfile which should try to execute on every server listed. Does it successfully connect? Cap invoke COMMAND="echo ' World If that won't run then likely your user is not the same as your ssh passwordless agent.

You could also look in the SSH logs on the server and see if you can tell what agent is actually trying to connect unsuccessfully.

Run a simple invoke command from the directory with the Capfile which should try to execute on every server listed. Does it successfully connect? Cap invoke COMMAND="echo ' World'" If that won't run then likely your user is not the same as your ssh passwordless agent.

You could also look in the SSH logs on the server and see if you can tell what agent is actually trying to connect unsuccessfully.

I have multiple stages so I'd call: cap production invoke ... This fails since it asks form the passphrase for each server simultaneously (ie: I get asked the passphrase for times at once, but I'm not given the chance to enter it in 4 times). Running this for individual servers works fine, ex: cap prod1 invoke ... Since I can invoke successfully on any individual server, I hesitate to think its the user variable. I do have to connect via vpn, I wonder if that has something to do with it.

– morris082 Jun 26 '10 at 17:57.

I've actually experienced the same problem and have corrected it (patched it, really) by supplying the "default_run_options:max_hosts = 1" and using ssh-agent to cache my passphrase. NOT an ideal solution, to be sure, and the core issue remains hidden under the surface.

Ongoing discussion taking place here: groups.google. Com/group/capistrano/browse_thread/thread/… – jeyroz Sep 29 '10 at 19:41 1 When I give that a whirl I have to provide by ssh key for every command that is fired off for each server (adds up to about 30 total). I do have ssh-agent going, but cap still asks for it.(With ssh-agent off it asks twice) – morris082 Sep 30 '10 at 13:53.

Maybe not direct response but you can install msysgit and select msysgit to be added fully to PATH, also select to use putty-agent for authentication.

Thanks for reminding me of this post! I heard recently that capistrano on windows only supports Putty-agent and tried it out but to no avail. I need to experiment a bit more with it and will update here.

– morris082 Nov 16 '10 at 13:18 just added information about msysgit for ssh authorization configuration – mpapis Nov 16 '10 at 13:22.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions