So, I had this same problem the solution is two fold.
first off, as of Capistrano 2.1 (not 2.0) windows users need to add
the following line to their deploy script
default_run_options[:pty] = true
Otherwise the remote server is non interactive and it will just blow
by requests to enter passwords.
Also, to automate the process a little more you can use this svn
command
run "svn #{checkout} #{repository} #{release_path}" do |ch, stream,
out|
ch.send_data "#{password}\n" if out =~ /password:/
end
to have your password automatically entered.
On 10 Dec 2007, 01:55, Mike <[EMAIL PROTECTED]> wrote:
> A week ago I tried to deploy (using a deploy.rb script that's worked
> since upgrading to Cap 2.0) and I'm getting the following error.
> I've got my ssh keys all set up so that I'm able to ssh to the server
> without a username and password prompt, and I'd been deploying fine
> for a while using Cap 1.4 and even Cap 2.0 recently. Even though the
> deploy.rb uses my "rails" user for the purpose of deployments, I can't
> seem to authenticate to my svn server (svn+ssh on the same server as
> the web and db) at all. When I ssh onto this server, I have no
> problem issuing "svn co svn+ssh ..." and checking out code to a temp
> directory. But my cap deploy command fails everytime, whether I
> fiddle with the ssh_options, scm_username and scm_password or not.
> I'm truly stuck and I'm wondering if there's something different under
> Cap 2.1 that I'm not catching. Your help is greatly appreciated.
>
> mike-oristians-computer:~/Documents/Development/tagweb mosofoco$ cap
> deploy -S stage=production
> [DEPRECATION] Capistrano.configuration is deprecated. Use
> Capistrano::Configuration.instance instead
> * executing "ls -x /home/rails/production/releases"
> servers: ["telseygroup.com"]
> Password:
> [telseygroup.com] executing command
> command finished
> * executing `deploy'
> * executing `deploy:update'
> ** transaction: start
> * executing `deploy:update_code'
> * executing "svn export -q -r1126 svn+ssh://telseygroup.com/home/
> svn/repositories/dev.telseygroup.com/branches/tagweb /home/rails/
> production/releases/20071210064122 && (echo 1126 > /home/rails/
> production/releases/20071210064122/REVISION)"
> servers: ["telseygroup.com"]
> [telseygroup.com] executing command
> ** [err] Permission denied, please try again.
> ** [err] Permission denied, please try again.
> ** [err] Permission denied (publickey,password,keyboard-interactive).
> ** [err] svn: Connection closed unexpectedly
> command finished
> *** [deploy:update_code] rolling back
> * executing "rm -rf /home/rails/production/releases/20071210064122;
> true"
> servers: ["telseygroup.com"]
> [telseygroup.com] executing command
> command finished
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---