Re: 1) The first password requested would normally be the password for the SVN repository and the second one would be for the shh connection to whatever machine you're deploying to
Re: 2) the command to start the mongrels would be <cap start_mongrel_cluster> - you can find all the Capistrano default tasks by entering <cap -T> at the command prompt. This post is also worth reading: http://groups.google.com/group/capistrano/browse_thread/thread/7f82c5543f9d5db9 Hope that helps S On 21 Sep, 14:28, Rogelio <[EMAIL PROTECTED]> wrote: > Hi All, > > Newbie problems I'm sure. I've been trying for a couple of days to > deploy my first app > via Capistrano. Haven't run across a solution in the group archives > yet. > I've done cap deploy:check and I'm told all is well. > > Here is my setup: > > local machine: username=rogelio and this is where I'm trying to > deploy the application > as well (running Ubuntu Linux). > > svn repo: is on my.remotehost.org (I've changed the name for purpose > of this posting) > The repo is under an account "gca" on this remote host. > > When I enter "cap deploy:cold", I'm asked for my passphrase for ssh. > I enter that and then > I'm asked for a password. I enter my *local* password for the > "rogelio" account. Then I > get error messages as Capistrano tries to do its magic. Here is a > cut/paste from the > screen: > -------------------------------------------------------------------------- > [EMAIL PROTECTED]:~/workspace/MYAPP$ cap deploy:cold > * executing `deploy:cold' > * executing `deploy:update' > ** transaction: start > * executing `deploy:update_code' > Enter passphrase for key '/home/rogelio/.ssh/id_dsa': > * executing "svn checkout -q -r8 svn+ssh://[EMAIL PROTECTED]/ > home/gca/repos/MYAPP/trunk /opt/www/MYAPP/releases/20070921124921 && > (echo 8 > /opt/www/MYAPP/releases/20070921124921/REVISION)" > servers: ["localhost"] > Password: > [localhost] executing command > ** [out] Enter passphrase for key '/home/rogelio/.ssh/id_dsa': > ** [out] > ** [out] [EMAIL PROTECTED]'s password: > ** [out] > ** [out] Permission denied, please try again. > ** [out] [EMAIL PROTECTED]'s password: > ** [out] > ** [out] Permission denied, please try again. > ** [out] [EMAIL PROTECTED]'s password: > ** [out] > ** [out] Permission denied (publickey,password,keyboard-interactive). > ** [out] svn: Connection closed unexpectedly > command finished > *** [deploy:update_code] rolling back > * executing "rm -rf /opt/www/MYAPP/releases/20070921124921; true" > servers: ["localhost"] > [localhost] executing command > command finished > command "svn checkout -q -r8 svn+ssh://[EMAIL PROTECTED]/home/gca/ > repos/MYAPP/trunk /opt/www/MYAPP/releases/20070921124921 && (echo 8 > / > opt/www/MYAPP/releases/20070921124921/REVISION)" failed on localhost > ----------------------------------------------------------- > > I'm a little confused about the password error -- after I enter my ssh > pass PHRASE for > the public key, the next thing I see is a prompt that just says > "password:". > > What password is that referring to? > > If I enter the password for "gca" on the remote host, I get this > message: > > connection failed for: localhost (Net::SSH::AuthenticationFailed: > rogelio) > > which seems to indicate that maybe the password prompt was asking for > my > local password. If I cold deploy again and enter my local password > for rogelio, > then I get the errors and stuff shown above in the screen shot. > > HOWEVER: If I cut/paste the "svn checkout ..." command from the above > error session, > and run it manually, I'm asked for my public key passphrase and my > application is > checked out of the repo and placed in the releases/2007921124921 > folder perfectly. > (and I'm never asked for a password -- just the initial public key > passphrase). > > Questions: > > 1) any ideas what I can try to get cold:deploy to work? What password > is being > asked for up above? Does my local account and remote repo user > account need to > be the same and with same password? > > 2) Since I can apparently "deploy" the application manually, what is > the command to > start the mongrel cluster? I read that Capistrano starts the mongrel > cluster automatically > on successful deploy, but that's not happening. I've tried > "mongrel_cluster start" but > no success. "mongrel start" stars a server on port 3000, not 8000 > which I've configured > for the cluster. > > Sorry for the long posting. Thanks in advance for any help. > > Rogelio --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
