Welcome Guest | Login

Connection closed during deployment

Hi,

I have a problem with the deployment of my rails app.

When I execute the cap deploy command I get the following error:


C:\rails\workspace\Paradisco_svn>cap deploy
 * executing `deploy'
 * executing `deploy:update'
** transaction: start
 * executing `deploy:update_code'
svn: Connection closed unexpectedly
*** [deploy:update_code] rolling back
 * executing "rm -rf /home/user/apps/paradisco
/releases/20080206182727; true
   servers: ["mydomain.com"]
Password:
   [mydomain.com] executing command
   command finished
C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes
/deploy/scm/subversion.rb:58:in `query_revision': tried to run `svn info svn+ssh
://user@mydomain.com/home/user/svn/paradisco/trunk  -rHEAD' and got unexpe
cted result "" (RuntimeError)
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/recipes/deploy/scm/base.rb:35:in `send'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/recipes/deploy/scm/base.rb:35:in `method_missing'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/recipes/deploy/scm/base.rb:63:in `local'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/recipes/deploy/scm/base.rb:35:in `method_missing'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/recipes/deploy.rb:37:in `load'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/configuration/variables.rb:87:in `call'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/configuration/variables.rb:87:in `fetch'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/configuration/variables.rb:110:in `protect'
        ... 35 levels...
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capis
trano/cli/execute.rb:14:in `execute'
       from C:/Programme/ruby/lib/ruby/gems/1.8/gems/capistrano-2.1.0/bin/cap:4

       from C:/Programme/ruby/bin/cap:16:in `load'
       from C:/Programme/ruby/bin/cap:16

Thanks for help!

2008-02-11 03:21 PM

Hi there - this looks like a problem with your svn repository.  Can you check out a copy onto the production server manually (just into a test folder)?      Can you run

svn info svn+ssh://user@mydomain.com/home/user/svn/paradisco/trunk  -rHEAD

yourself ?

2008-02-11 03:31 PM

hi William, i'm having the same issue.
instead of re-posting, can you help us both here?

on windows, i use tortoiseplink as an ssh+svn client.

same cap deploy error. i tried the svn info and got this:

S:\tmp>svn info svn+ssh://username@productionsite.com /home/username/svn/Project/trunk -rHEAD
svn: Can't create tunnel: The system cannot find the file specified.

thanks

2008-02-15 03:49 PM

http://www.remixtechnology.com
If would suggest downloading the putty suite and copy the
plink.exe program to the directory where svn.exe lives. Let me know if that doesn't help.

2008-02-15 04:34 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.