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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jul 15, 5:41 am, JSeidel <jsei...-SqBBwp4wwK4AvxtiuMwx3w@public.gmane.org> wrote:> For some reason, I can''t get my capdeployto work... I keep getting > the error: > ====> C:\Dev\InstantRails\rails_apps\4MyPasswords>capdeploy > * executing taskdeploy > * 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 1http://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 > ====> > Mydeploy.rb is: > ====> #Capistranodeployment 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 mydeploy.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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ryan Carmelo Briones
2007-Jul-28 15:30 UTC
Re: Capistrano "No such file or directory" error
JSeidel wrote:> > > 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 >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-or-directory%22-error-tf4082046.html#a11843813 Sent from the RubyOnRails Users mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---