Forum: Ruby on Rails Capistrano "No such file or directory" error

3da4ed7ea16825fead6120d70dc7da43?d=identicon&s=25 JSeidel (Guest)
on 2007-07-15 14:42
(Received via mailing list)
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"]
Password: gt*9facts

    [4mypasswords.com] executing command
    command finished
C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/
scm/subversion.rb:87:in ``': No such file or directory - svn log --no-
auth-cache
 --username jseidel  -q --limit 1
http://smartpay.svnrepository.com/svn/4mypassw
ords/trunk (Errno::ENOENT)
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/scm/subversion.rb:87:in `svn_log'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/scm/subversion.rb:23:in `latest_revision'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/configuration.rb:62:in `initialize'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/configuration.rb:89:in `call'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/configuration.rb:89:in `[]'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/configuration.rb:236:in `method_missing'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/scm/subversion.rb:63:in `checkout'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/recipes/standard.rb:80:in `load'
         ... 15 levels...
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/li
b/capistrano/cli.rb:12:in `execute!'
        from C:/Dev/InstantRails/ruby/lib/ruby/gems/1.8/gems/
capistrano-1.4.1/bi
n/cap:11
        from C:/Dev/InstantRails/ruby/bin/cap:16:in `load'
        from C:/Dev/InstantRails/ruby/bin/cap:16
=====

My deploy.rb is:
=====
# Capistrano deployment configuration

set   :user, 'jseidel'
set   :svn_username, 'jseidel'
set   :server, '4mypasswords.com'
set   :svnserver, '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/
4mypasswords"
### Aptana URL
#set   :repository, "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

### Repository URL from Aptana SVN
# 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
3da4ed7ea16825fead6120d70dc7da43?d=identicon&s=25 JSeidel (Guest)
on 2007-07-28 17:24
(Received via mailing list)
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
http://nubyrubyrailstales.blogspot.com/2007/07/cap...
for a detailed solution.

Cheers...jon
881b7dd91c0d9287aea5bc505c10a15a?d=identicon&s=25 Ryan Carmelo Briones (Guest)
on 2007-07-28 17:30
(Received via mailing list)
JSeidel wrote:
>   * querying latest revision...
> *** [update_code] transaction: rollback
>   * [update_code] rolling back
>   * executing "rm -rf /home/jseidel/railsapp/releases/20070715123241"
>     servers: ["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-%22No-such-file-o...
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.