Forum: Ruby on Rails Capistrano error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ce14206b729afc6ac1d4c454eb434af0?d=identicon&s=25 CiriusMex (Guest)
on 2009-04-02 19:35
(Received via mailing list)
Hi guys, I got a problem with capistrano configuration.
Here comes my deploy.rb file:

set :application, "CondoWeb"
set :repository,  "svn+ssh://condow09@condow.com/home/condow09/svn/
CondoWeb"

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/home/condow09/etc/rails_apps/CondoWeb"

set :use_sudo, false

set :checkout, "export"


# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion

role :app, "www.condow.com"
role :web, "www.condow.com"
role :db,  "www.condow.com", :primary => true

# SSH and conection configuration
ssh_options[:port] = 7822
set :user, "condow09"

desc "Restart the app server"
task :restart, :roles => :app do
  send(run_method, "")
  #send(run_method, "cd #{current_path} && mongrel_rails restart")
end

desc "Stop the app server"
task :stop_app, :roles => :app do
  send(run_method, "")
  #send(run_method, "cd #{current_path} && mongrel_rails stop")
end

desc "Start the app server"
task :start_app, :roles => :app do
  send(run_method, "")
  #send(run_method, "cd #{current_path} && mongrel_rails start -d -p #
{app_port} -e #{app_env} < /dev/null >& /dev/null")
end

The repository works great as I configured and used successfully SVN.
But when I do a cap deploy of my website here is what I get:

C:\InstantRails-2.0\rails_apps\CondoWeb>cap deploy
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "svn info svn+ssh://condow09@condow.com/home/
condow09/svn
/CondoWeb  -rHEAD"
svn: Can't create tunnel: The system cannot find the file specified.
*** [deploy:update_code] rolling back
  * executing "rm -rf /home/condow09/etc/rails_apps/CondoWeb/releases/
2009040217
1940; true"
    servers: ["www.condow.com"]
Password:
    [www.condow.com] executing command
    command finished
C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/capistrano-2.5.5/lib/
capistrano/
recipes/deploy/scm/subversion.rb:58:in `query_revision': tried to run
`svn info
svn+ssh://condow09@condow.com/home/condow09/svn/CondoWeb  -rHEAD' and
got unexpe
cted result "" (RuntimeError)
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:35:in `send'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:63:in `local'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy/scm/base.rb:35:in `method_missing'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/recipes/deploy.rb:37:in `load'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/configuration/variables.rb:87:in `call'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/configuration/variables.rb:87:in `fetch'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/configuration/variables.rb:110:in `protect'
         ... 38 levels...
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/li
b/capistrano/cli/execute.rb:14:in `execute'
        from C:/InstantRails-2.0/ruby/lib/ruby/gems/1.8/gems/
capistrano-2.5.5/bi
n/cap:4
        from C:/InstantRails-2.0/ruby/bin/cap:19:in `load'
        from C:/InstantRails-2.0/ruby/bin/cap:19

Any idea??

Olivier.
8e101fbd63f7cdb2628119d908a8d1bc?d=identicon&s=25 Simon Simon (kentor)
on 2009-05-14 21:54
Same problem here, anybody any idea?

CiriusMex wrote:
> ...
> C:\InstantRails-2.0\rails_apps\CondoWeb>cap deploy
>   * executing `deploy:update_code'
>     executing locally: "svn info svn+ssh://condow09@condow.com/home/
> condow09/svn
> /CondoWeb  -rHEAD"
> svn: Can't create tunnel: The system cannot find the file specified.
> *** [deploy:update_code] rolling back
>   * executing "rm -rf /home/condow09/etc/rails_apps/CondoWeb/releases/
> ...
> Any idea??
>
> Olivier.
This topic is locked and can not be replied to.