Hi Onno Have you tried to connect to your svn server through ssh keys ?
It may fix your problem and simplify your deployment, since you have no password to enter. Here is a quick tuto : # I assume that : # - your svn server has an "admin" user (replace by the user you use to checkout : svn+ssh://[EMAIL PROTECTED]/svn/...) # - "admin" user has reading access to svn repository. # On your deployment machine (where you run your capistrano recipes), # logged as your deployment user : $ cd # go to your home directory $ ssh-keygen -t dsa # generate ssh keys $ scp ~/.ssh/id_dsa.pub [EMAIL PROTECTED]: # copy the public key on your svn server in /home/admin directory # connect to your svn server $ ssh [EMAIL PROTECTED] # add the key to authorized_keys of "admin" user on your svn server [EMAIL PROTECTED] cd # go to admin home directory [EMAIL PROTECTED] mkdir .ssh # if not existing already [EMAIL PROTECTED] cat id_dsa.pub >> .ssh/authorized_keys [EMAIL PROTECTED] rm id_dsa.pub # remove uploaded file Now you can connect to your svn server without capistrano prompting you a password. More info on ssh keys here : http://pkeck.myweb.uga.edu/ssh/ http://sial.org/howto/openssh/publickey-auth/ (or with a quick search on google ;-) ) Hope that helped to fix your connection problem. ++ On 29 Oct, 15:11, Onno <[EMAIL PROTECTED]> wrote: > Hi all, > I'm experiencing a problem with Capistrano that I am unable to fix. > > I'm deploying to server while the Subversion sources are on another > server. Maybe this will turn out to be not such a wise decision but at > some point it seem to make sense to me to have a central separate > Subversion server. > > What I don't understand is the permission errors I get on cap deploy. > > Preparing to execute command: "svn checkout -q -r59 svn+ssh:// > [EMAIL PROTECTED]/home/user/svn/svn/myapp/trunk/ /home/user/myapp/ > releases/20081029140649 && (echo 59 > /home/user/myapp/releases/ > 20081029140649/REVISION)" > Execute ([Yes], No, Abort) ? |y| > servers: ["epf.eclipse.org"] > Password: > [epf.eclipse.org] executing command > ** [epf.eclipse.org :: err] Permission denied, please try again. > ** [epf.eclipse.org :: err] Permission denied, please try again. > > The strange thing is that I can execute the command successfully > manually by first ssh to the machine and then execute the command: > svn checkout -q -r59 svn+ssh://[EMAIL PROTECTED]/home/user/svn/svn/ > myapp/trunk/ /home/user/myapp/releases/20081029140649 && (echo 59 > / > home/user/myapp/releases/20081029140649/REVISION) > > Why does capistrano fail the command when I can execute the command > successfully? > Thanks and Regards, > Onno --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
