This is now working. Although I had passwordless ssh working from each 
of the clients back to the svn server, I forgot that I also needed ssh 
working from the capistrano machine to the deployment server, and this 
was the password I was being asked for, not the password to the svn 
server..

navtis

navtis wrote:
> Hi,
> 
> I'm new to capistrano. I have an existing setup with an svn server and
> a small group of other machines which use this server. I want to use
> capistrano to manage a rails app on one of these machines, but without
> disturbing any of my existing setup (there are other, non-rails, apps
> on the client machine which use vanilla svn).
> 
> I have set up my authorized_keys on the svn server to allow for remote
> passwordless login:
> 
> echo 'command="svnserve -t --tunnel-user=navtis
> --root=/home/svn/repositories",
> no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ' |
> cat -
> ~navtis/.ssh/id_dsa.pub > authorized_keys
> 
> Then for each client which uses svn, I copy ~navtis/.ssh/id_dsa  to
> that client.
> 
> My capistrano manager is one of these client machines, and the
> production server is another (ie. the svn server is a different
> machine altogether). I regularly use svn on both, with no problems.
> 
> cap deploy:setup
> asks me for the production server password, then works fine.
> 
> If I log in to the production server and enter:
> 
> svn info svn+ssh://[EMAIL PROTECTED]/railsproject  -rHEAD
> 
> everything also works fine (no password needed).
> 
> But if I run cap deploy:cold, I get
> cap deploy:cold
> 
>   * executing `deploy:cold'
>   * executing `deploy:update'
>  ** transaction: start
>   * executing `deploy:update_code'
> Password:
> Password:
> Password:
> 
> I guess it's asking for the svn server password, but it will not
> accept it and fails with
> 
> /usr/lib/ruby/gems/1.8/gems/capistrano-2.2.0/lib/capistrano/recipes/
> deploy/scm/subversion.rb:58:in `query_revision': tried to run `svn
> info svn+ssh://[EMAIL PROTECTED]/railsproject  -rHEAD' and
> got unexpected result ""
> 
> Before I start try to dig through the code, is there any way round
> this? Looking through the FAQ all I found was a suggestion to put my
> password in clear text in deploy.rb, which I really prefer not to do
> (and which in any case won't work with my setup).
> 
> Thanks for any advice
> navtis
> 
> 
> 
> 
> 
> 
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
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