# Capistrano 2 error with DB server

**URL:** <https://www.ruby-forum.com/t/capistrano-2-error-with-db-server/117078>\
**Category:** Rails\
**Created:** [October 12, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/capistrano-2-error-with-db-server/117078 "2007-10-12T18:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![whitewolfaustria](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/bbce88/32.png) [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Post date:** [October 12, 2007, 6:52pm UTC](https://www.ruby-forum.com/t/capistrano-2-error-with-db-server/117078/1 "2007-10-12T18:52:08Z")

</div>

# Hi all I am trying to set up capistrano and it is failing when it tries to call an svn command on the db server, where svn is not installed. Here is the error message.

============================================================================  
[192.168.1.22] executing command  
[[myserver.com](http://myserver.com)] executing command  
\*\* [out] sh: svn: command not found  
command finished  
\*\*\* [deploy:update\_code] rolling back

- executing “rm -rf /onetruth/releases/20071012164314; true”  
servers: [“192.168.1.22”, “[myserver.com](http://myserver.com)”]  
[192.168.1.22] executing command  
[[myserver.com](http://myserver.com)] executing command  
command finished  
command “svn checkout -q -r7 svn://192.168.1.22 /onetruth/releases/  
20071012164314 && (echo 7 \> /onetruth/releases/20071012164314/  
REVISION)” failed on [myserver.com](http://myserver.com)  
=========================================================================  
=========================================================================

and my deploy.rb looks like this

# ============================================================================

set :application, “onetruth”  
set :repository, “svn://192.168.1.22”

# 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

# set :user,“administrator” set :use\_sudo, true role :app, “192.168.1.22” role :web, “192.168.1.22” role :db, “[myserver.com](http://myserver.com)”, :primary =\> true set :deploy\_to, “/onetruth”

===============================================================================

I do not know why capistrano is looking for svn on [myserver.com](http://myserver.com) but id  
anyone can help I would really appreciate it

White W.

---

<div class="post-metadata">

**Author:** ![whitewolfaustria](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/bbce88/32.png) [@whitewolfaustria](https://www.ruby-forum.com/u/whitewolfaustria)\
**Post date:** [October 13, 2007, 7:10pm UTC](https://www.ruby-forum.com/t/capistrano-2-error-with-db-server/117078/2 "2007-10-13T19:10:30Z")

</div>

White W. wrote:

> \*\*\* [deploy:update\_code] rolling back
> 
> # via the :deploy\_to variable:
> 
> ===============================================================================

I got caught by this one. If you add :no\_release =\> true to those roles  
you don’t want capistrano to attempt to deploy to. So:

role :db, “[myserver.com](http://myserver.com)”, :primary =\> true, :no\_release =\> true

Hope this helps

Chris

## –

Autopendium :: Stuff about old cars  
[http://autopendium.com](http://autopendium.com)
