Hi Onno, Are you sure your Capistrano user (set :user) is set correctly and have enough privileges? You might want to check this. I've run into many cases where permissions caused such headaches. I'm not saying it's surely a permission related thing though.
On a side note, I've always avoided key-based SSH authentication because certain reasons. One of them being that sometimes you cannot guarantee that you are the only one having access to the machines and accounts (Eg: in real world scenarios when you are forced to share root/admin credentials). So my suggestion is to investigate the issue on what you have before trying ti switch to key based authentication. It's your call. :) If you don't have security concerns I had, I don't see why you shouldn't as max said. On Sun, Nov 2, 2008 at 8:41 PM, max <[EMAIL PROTECTED]> wrote: > > 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 > > > -- Gaveen Prabhasara http://gaveen.owain.org http://www.prabhasara.com --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
