Thanks for the help - I was convinced it was on the remote host and didn't
think about the local host :-( Yes, the problem is on my local host.  I had
been testing svn under cygwin shell on my local host and things were fine,
but I was running cap under the cmd prompt in windows.  I do have svn
installed (version 1.4.4) and it is in my path, but the problem was that I
was running the remote sshd under a different port.  Once I set up the
SVN_SSH environment variable to the correct port, things started working.

Thanks!

-j

On 10/11/07, Jamis Buck <[EMAIL PROTECTED]> wrote:
>
> I'm pretty sure the error is occuring when svn is being invoked on
> the local host, and not the remote host. Thus, no output showing the
> command being executed.
>
> Do you have svn installed locally? Is it in your PATH? What version
> of svn do you have installed?
>
> - Jamis
>
> On Oct 11, 2007, at 1:08 PM, jaikumar wrote:
>
> >
> >
> > I downloaded the capistrano sources and am still at a loss as to why
> > there is no debugging output before "svn: Connection closed
> > unexpectedly".  Since I'm using the verbose options, by my read of the
> > sources it seems that I should see the actual command that cap is
> > trying to execute on the remote host?  Would it help if I configure
> > the logger to debug in deploy.rb?  I also tried:
> >
> > C:\dev\workspace\proj1>cap invoke COMMAND="svn co svn+ssh://<user>@
> > <host>/home/svn/repositories/proj1"
> >
> > and this works fine - the sources get checked out on the remote host
> > and the output of the cap command includes the remote commands being
> > executed.  If need be, I can build the sources but would need
> > instructions on how to proceed in that direction...  Any help would be
> > much appreciated!
> >
> > Thanks!
> >
> > -j
> >
> > On Oct 10, 6:01 pm, jaikumar <[EMAIL PROTECTED]> wrote:
> >> I'm trying to debug a problem in deploy:cold, but I don't see the
> >> actual commands being run on the remote host to connect to the svn
> >> repository.  If I login to the remote machine as the user in
> >> deploy.rb, I'm able to access the subversion path fine.  Is it
> >> possible to see a log of the commands that are being run by cap i.e.
> >> what is the checkout command being issued? This will help me debug
> >> the
> >> problem... Here is the output that I see:
> >> ------------------------------
> >> C:\dev\workspace\proj1>cap -vvv deploy:cold
> >>   * executing `deploy:cold'
> >>   * executing `deploy:update'
> >>  ** transaction: start
> >>   * executing `deploy:update_code'
> >> svn: Connection closed unexpectedly
> >> *** [deploy:update_code] rolling back
> >> .....
> >> ------------------------------
> >>
> >> Here is my deploy.rb file:
> >> ---------------------------------
> >> set :application, "proj1"
> >> set :domain, "XXXXX"
> >> set :user, "jaikumar"
> >> set :repository,  "svn+ssh://[EMAIL PROTECTED]/home/svn/repositories/
> >> proj1"
> >> # set :use_sudo, false
> >> set :deploy_to, "/home/users/#{user}/apps/#{application}"          #
> >> Where on the server your app will be deployed
> >> set :deploy_via, :checkout                # svn checkout will be the
> >> deployment method
> >> set :chmod755, "app config db lib public vendor script script/*
> >> public/
> >> disp*"   # Some files that will need proper permissions
> >> set :mongrel_port, "4444"
> >>
> >> # If you aren't deploying to /u/apps/#{application} on the target
> >> # servers (which is the default), you can specify the actual location
> >> # via the :deploy_to variable:
> >> # set :deploy_to, "/var/www/#{application}"
> >>
> >> # If you aren't using Subversion to manage your source code, specify
> >> # your SCM below:
> >> # set :scm, :subversion
> >>
> >> role :app, domain
> >> role :web, domain
> >> role :db,  domain, :primary => true
> >>
> >> ssh_options[:port] = 7983
> >> # ssh_options[:verbose] = :debug
> >> ----------------
> >>
> >> Thanks,
> >>
> >> -j
> >
> >
> > > >
>
>
>

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