Hi,

I'm trying to use Capistrano to deploy my Rails application.  The
production server can only be accessed through a gateway.

Here are the relevant parts of my configuration (server names
changed):

role :app, "projects.myservername.com"
role :web, "projects.myservername.com"
role :db,  "projects.myservername.com", :primary => true

set :gateway_user, proc { Capistrano::CLI.ui.ask( "Gateway username:
" ) } unless respond_to?(:gateway_user)
set :gateway, "[EMAIL PROTECTED]"

And here is the error I get:

% cap prod deploy -S gateway_user=atkinw -S
svn_user=atkinw                                               8:38PM
  * executing `prod'
ARE YOU SURE YOU WANT TO DEPLOY TO PRODUCTION? (type 'yes' to
continue) yes
    triggering start callbacks for `deploy'
  * executing `multistage:ensure'
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `before_update_code'
  * executing `deploy:update_code'
  * executing "svn checkout -q  -r1008
https://[EMAIL PROTECTED]/svn/repos/CEESPM/trunk/rails-server
/opt/rpicees/ceespm/releases/20071209013824 && (echo 1008 > /opt/
rpicees/ceespm/releases/20071209013824/REVISION)"
    servers: ["projects.myservername.com"]
  * establishing connection to gateway [EMAIL PROTECTED]'
    starting connection to gateway [EMAIL PROTECTED]'
    gateway connection established
  * establishing connection to `projects.myservername.com' via gateway
/usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/service/
forward/driver.rb:126:in `direct_channel': could not open direct
channel for 65535:projects.myservername.com:22 (2, Connection refused)
(Net::SSH::Exception)
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/channel.rb:496:in `call'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/channel.rb:496:in `callback'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/channel.rb:433:in `do_confirm_failed'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/driver.rb:286:in `do_channel_open_failure'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/driver.rb:158:in `call'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/driver.rb:158:in `process'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
connection/driver.rb:141:in `loop'
        from /usr/local/lib/ruby/gems/1.8/gems/net-ssh-1.1.2/lib/net/ssh/
session.rb:186:in `loop'
         ... 47 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
capistrano/cli/execute.rb:14:in `execute'
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/bin/cap:4
        from /usr/local/bin/cap:16:in `load'
        from /usr/local/bin/cap:16
*** [deploy:update_code] rolling back
  * executing "rm -rf /opt/rpicees/ceespm/releases/20071209013824;
true"
^C ** [deploy:update_code] exception while rolling back: Interrupt,

Anyone know what's going on?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to