Capistrano "No such file or directory" error


#1

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:inlatest_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:incall’
    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:inmethod_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:inload’
    … 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:inload’
    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


#2

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/capistrano-on-windows-client.html
for a detailed solution.

Cheers…jon


#3

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-"No-such-file-or-directory"-error-tf4082046.html#a11843813
Sent from the RubyOnRails Users mailing list archive at Nabble.com.