Capistrano Runtime Error

Hi,

I’m trying to use capistrano(capistrano-2.1.0) deployment on my
application.

Here is deploy.rb

set :application, “cook”
set :repository, “svn+ssh://192.168.0.204/home/suja/mysvn”

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}”

set :deploy_to, “/home/suja/test”

If you aren’t using Subversion to manage your source code, specify

your SCM below:

set :scm, :subversion

role :app, “192.168.0.204”
role :web, “192.168.0.204”
role :db, “192.168.0.204”, :primary => true

When doing “cap deploy”.I will get runtime error

=================================================================================
cap deploy

  • executing `deploy’
  • executing `deploy:update’
    ** transaction: start
  • executing `deploy:update_code’
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy
    .rb:37: warning: Insecure world writable dir
    /usr/local/jakarta-tomcat-5.0.28/bi n in PATH, mode 040777
    Subcommand ‘info’ doesn’t accept option ‘-r [–revision] arg’
    Type ‘svn help info’ for usage.
    *** [deploy:update_code] rolling back
  • executing “rm -rf /home/suja/test/cu/releases/20071102040230; true”
    servers: [“cobbu.com”]
    Password:
    ** [deploy:update_code] exception while rolling back:
    Capistrano::ConnectionError, connection failed for: cobbu.com
    (Net::SSH::AuthenticationFailed: suja)
    /usr/local/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
    ssh://cobbu.com/var/projects/svnhome/cobbu/trunk -rHEAD’ and got
    unexpected result “” (RuntimeError)
    from
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy/scm/base.rb:35:in
    send' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy/scm/base.rb:35:in method_missing’
    from
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy/scm/base.rb:63:in
    local' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy/scm/base.rb:35:in method_missing’
    from
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/recipes/deploy.rb:37:in
    load' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/configuration/variables.rb:87:in call’
    from
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/configuration/variables.rb:87:in
    fetch' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/configuration/variables.rb:110:in protect’
    … 35 levels…
    from
    /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/cli/execute.rb:14:in
    execute' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/bin/cap:4 from /usr/local/bin/cap:16:in load’
    from /usr/local/bin/cap:16
    ======================================================================================

Can somebody help me?

Thanks,
Suja.

Looks like you’ve got an older version of subversion installed. You
need a newer version, which understands the “-r” switch for the info
command; I don’t know precisely which version introduced that, but
you’ll be fine if you just upgrade subversion to the latest.

  • Jamis

Hi Jamis,

thanks for your reply

Jamis B. wrote:

Looks like you’ve got an older version of subversion installed. You
need a newer version, which understands the “-r” switch for the info
command; I don’t know precisely which version introduced that, but
you’ll be fine if you just upgrade subversion to the latest.

  • Jamis