# Capistrano "No such file or directory" error

**URL:** <https://www.ruby-forum.com/t/capistrano-no-such-file-or-directory-error/109475>\
**Category:** Rails\
**Created:** [July 15, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/capistrano-no-such-file-or-directory-error/109475 "2007-07-15T14:42:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jseidel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jseidel](https://www.ruby-forum.com/u/jseidel)\
**Post date:** [July 15, 2007, 2:42pm UTC](https://www.ruby-forum.com/t/capistrano-no-such-file-or-directory-error/109475/1 "2007-07-15T14:42:39Z")

</div>

# For some reason, I can’t get my cap deploy to work… I keep getting the error:

C:\Dev\InstantRails\rails\_apps\4MyPasswords\>cap deploy

- executing task deploy

- executing task update  
\*\* transaction: start

- executing task update\_code

- querying latest revision…  
\*\*\* [update\_code] transaction: rollback

- [update\_code] rolling back

- executing “rm -rf /home/jseidel/railsapp/releases/20070715123241”  
servers: [“[4mypasswords.com](http://4mypasswords.com)”]  
Password: gt\*9facts

# My deploy.rb is:

# Capistrano deployment configuration

set :user, ‘jseidel’  
set :svn\_username, ‘jseidel’  
set :server, ‘[4mypasswords.com](http://4mypasswords.com)’  
set :svnserver, ‘[smartpay.svnrepository.com](http://smartpay.svnrepository.com)’  
set :application, ‘4mypasswords’  
set :applicationdir, ‘railsapp’

### ‘Standard’ approach

set :repository, “http://#{svnserver}/svn/#{application}/trunk”

### RapidSVC URL

#set :repository, “[https://secure.svnrepository.com/s\_jseidel/](https://secure.svnrepository.com/s_jseidel/)  
4mypasswords”

### Aptana URL

#set :repository, “[http://smartpay.svnrepository.com/svn/](http://smartpay.svnrepository.com/svn/)  
4mypasswords”

role :web, server  
role :app, server  
role :db, server, :primary =\> true

set :deploy\_to, “/home/#{user}/#{applicationdir}”

task :restart, :roles =\> :app do

end

task :after\_update\_code, :roles =\> [:web, :db, :app] do  
run “chmod 755 #{release\_path}/public -R”  
end

### Respoitory URL from RapidSVN

# [https://secure.svnrepository.com/s\_jseidel/4mypasswords](https://secure.svnrepository.com/s_jseidel/4mypasswords)

### Repository URL from Aptana SVN

# [http://smartpay.svnrepository.com/svn/4mypasswords](http://smartpay.svnrepository.com/svn/4mypasswords)

=====

I have two different URLs and I’ve tried both of them; one is the URL  
that I originally setup from RapidSVN and the 2nd is the one I used  
when I setup Aptana SVN.

When I originally setup svn, I did it withought the trunk/branches/  
tags subdirs and when I first ran into this problem, I created those 3  
subdirs, and re-imported my project into trunk.

One of the techs at railsplayground said he tried my deploy.rb file  
and it worked just great, but they can’t figure out why I can’t do the  
same thing.

Oh… and I’m running on Windows XP.

Any ideas as to what the heck is going on here…?

Thanks very much!

…jon

---

<div class="post-metadata">

**Author:** ![jseidel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jseidel](https://www.ruby-forum.com/u/jseidel)\
**Post date:** [July 28, 2007, 5:24pm UTC](https://www.ruby-forum.com/t/capistrano-no-such-file-or-directory-error/109475/2 "2007-07-28T17:24:25Z")

</div>

Fixed… In Windows, having a GUI svn client is not sufficient – you  
have to install the svn executables into a directory in your  
executable path.

See my post at

> **[Capistrano on Windows client...](http://www.nubyrubyrailstales.com/2007/07/capistrano-on-windows-client.html)**
>
> It was supposed to be easy: just read the Capistrano manual make a little magic with your deploy.rb file, and you're in business. Sounds wo...

for a detailed solution.

Cheers…jon

---

<div class="post-metadata">

**Author:** ![jseidel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jseidel](https://www.ruby-forum.com/u/jseidel)\
**Post date:** [July 28, 2007, 5:30pm UTC](https://www.ruby-forum.com/t/capistrano-no-such-file-or-directory-error/109475/3 "2007-07-28T17:30:26Z")

</div>

JSeidel wrote:

> - querying latest revision…  
> \*\*\* [update\_code] transaction: rollback
> - [update\_code] rolling back
> - executing “rm -rf /home/jseidel/railsapp/releases/20070715123241”  
> servers: [“[4mypasswords.com](http://4mypasswords.com)”]  
> Password: gt\*9facts

Umm…you might want to change your password…like immeadiately.

* * *

Ryan Carmelo Briones

–  
View this message in context:  
[http://www.nabble.com/Capistrano-"No-such-file-or-directory"-error-tf4082046.html#a11843813](http://www.nabble.com/Capistrano-%22No-such-file-or-directory%22-error-tf4082046.html#a11843813)  
Sent from the RubyOnRails Users mailing list archive at [Nabble.com](http://Nabble.com).
