# Capistrano Runtime Error

**URL:** <https://www.ruby-forum.com/t/capistrano-runtime-error/119014>\
**Category:** Deployment\
**Created:** [November 2, 2007, 5:25am UTC](https://www.ruby-forum.com/t/capistrano-runtime-error/119014 "2007-11-02T05:25:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@suja](https://www.ruby-forum.com/u/suja)\
**Post date:** [November 2, 2007, 5:25am UTC](https://www.ruby-forum.com/t/capistrano-runtime-error/119014/1 "2007-11-02T05:25:43Z")

</div>

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](http://cobbu.com)”]  
Password:  
\*\* [deploy:update\_code] exception while rolling back:  
Capistrano::ConnectionError, connection failed for: [cobbu.com](http://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.

---

<div class="post-metadata">

**Author:** ![suja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@suja](https://www.ruby-forum.com/u/suja)\
**Post date:** [November 2, 2007, 5:55am UTC](https://www.ruby-forum.com/t/capistrano-runtime-error/119014/2 "2007-11-02T05:55:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![suja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ba9def/32.png) [@suja](https://www.ruby-forum.com/u/suja)\
**Post date:** [November 2, 2007, 6:33am UTC](https://www.ruby-forum.com/t/capistrano-runtime-error/119014/3 "2007-11-02T06:33:49Z")

</div>

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
