# Switchtower deploy error

**URL:** <https://www.ruby-forum.com/t/switchtower-deploy-error/53184>\
**Category:** Rails\
**Created:** [January 27, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/switchtower-deploy-error/53184 "2006-01-27T20:50:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [January 27, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/switchtower-deploy-error/53184/1 "2006-01-27T20:50:04Z")

</div>

I’m trying to deploy a rails app with no success.

I can execute: ‘rake remote\_exec ACTION=setup’

but when I try to execute : ‘rake deploy’

I got this error:  
loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0  
/lib/switchtower/recipes/standard.rb  
loading configuration ./config/deploy.rb  
executing task deploy  
transaction: start  
executing task update\_code  
querying latest revision…  
[update\_code] transaction: rollback  
[update\_code] rolling back  
executing “rm -rf /home/[my\_user]/apps/[my\_app]/releases/20060127192840”  
servers: [“www.[my\_server].com”]  
Password: \*\*\*\*\*\*\*

processing command  
[www.[my\_server].com] executing command  
command finished  
rake aborted!  
No such file or directory - svn log -q -rhead  
file:///home/[my\_user]/repo/[my\_app]/trunk

* * *

But if I connect to my server with the same user I can execute the  
command:

svn log -q -rhead file:///home/[my\_user]/repo/[my\_app]/trunk

I can use tortoiseSVN no access my repo via svn+ssh

I change my shell to bash, with not success

Any clue?

Thx

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [January 27, 2006, 8:59pm UTC](https://www.ruby-forum.com/t/switchtower-deploy-error/53184/2 "2006-01-27T20:59:09Z")

</div>

Edgar,

SwitchTower won’t work with file:// repositories. The repository must  
be accessible to both the local host, and the remote host.

Also, in your case, the error is due to the ‘svn’ executable not  
being found on the remote host. Is svn installed on the remote host?  
If so, is it in the path?

- Jamis

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [January 27, 2006, 9:08pm UTC](https://www.ruby-forum.com/t/switchtower-deploy-error/53184/3 "2006-01-27T21:08:13Z")

</div>

Jamis,

The subversion is installed in the same server.

In the server (using the same user as I configure in deploy.rb) I can  
execute:

svn log -q -rhead file:///home/[my\_user]/repo/[my\_app]/trunk

In the server the svn is in the PATH, also I added to the deploy.rb:

set :svn, “/usr/bin/svn”

with the same error

BTW, you said that “SwitchTower won’t work with file:// repositories”,  
so I  
have to change the url for some like svn+ssh?

Thx

---

<div class="post-metadata">

**Author:** ![eagoweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9de0a6/32.png) [@eagoweb](https://www.ruby-forum.com/u/eagoweb)\
**Post date:** [January 27, 2006, 9:11pm UTC](https://www.ruby-forum.com/t/switchtower-deploy-error/53184/4 "2006-01-27T21:11:17Z")

</div>

Jamis,

I changed my repo to:

set :repository, “svn+ssh://[my\_user]@[my\_server]/[my\_app]/trunk/”

This url is what I use in tortoiseSVN and works fine

but the error is the same:

No such file or directory - svn log -q -rhead  
svn+ssh://[my\_user]@[my\_server]/[my\_app]/trunk/

maybe the error is not related to SVN?

thx again
