some background info first:
I use capistrano-ext (1.2.0) to  set up staging and production
environments.  SSH runs on a non-standard port 2000.

I upgraded from 2.0.0 to 2.1.0 today.  Sadly, my deployment script is
broken.


First, I can't run capistrano as a non-root user any more.
cap help
/usr/bin/cap:16:in `load': no such file to load -- cap (LoadError)
from /usr/bin/cap:16


When I run it as root user:
"cap staging deploy" complained about

connection failed for: localhost (Errno::ENOENT: No such file or
directory - /root/.ssh/id_rsa.pub)

I looked at 
http://gemtacular.com/gemdocs/capistrano-2.1.0/doc/classes/Capistrano/SSH.html
and found out about ssh_options[:auth_methods]

so I added the following to deploy.rb:
ssh_options[:auth_methods] = %w(password keyboard-interactive)

the public key error is gone.

But I got the following error:
 ** [deploy:update_code] exception while rolling back:
Capistrano::ConnectionError, connection failed for: localhost
(Net::SSH::AuthenticationFailed: deployuser)
connection failed for: localhost (Net::SSH::AuthenticationFailed:
deployuser)


No SSH password prompt.

I poked around and found out the default_run_options[:pty]=true
option. I enabled it, no luck.  the I put "default_run_options[:shell]
= false", no luck.
Same error.

I am not sure if something has been changed so that
ssh_options[:port]  is not picked up.

here's the relevant part from my deploy.rb file:
ssh_options[:port] = 2000
#ssh_options[:verbose] = :debug
default_run_options[:pty] = true
default_run_options[:shell] = false


Please help.

Please consider that they are lots of people depending on
Capistrano.   Breaking working deployment scripts will cause a lot of
grieves.
I'd much prefer to have my existing working deployment scripts work
with no problem when I do any kind of upgrade.  Late, when I have
time, I will explore new options/features coming with the upgrade.



Thanks for your help.
Ron


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to