Ok thanks,

It isn't a show stopper as the workaround is to simply add the
following to your .ssh/config and then tell your capfile that the
server is at
localhost:2222

# .ssh/config
Host gw
LocalForward 2222 l_app1:22


You just have to make sure to ssh into the gateway first.

On Oct 24, 3:26 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:
> No fixes yet, I'm afraid. I'm still struggling to find time to finish
> the rewrite of Net::SFTP, which I'm hopeful will fix the problem. In
> the meantime, I really do apologize for this glitch. I know it is a
> showstopper for several people. :(
>
> - Jamis
>
> On Oct 24, 2007, at 4:00 PM, wolfmanjm wrote:
>
>
>
> > Ok ignore point 1 and 2 above, I can login to the l_app2 server as it
> > does have a public key, and I can manually setup ssh as a gateway on
> > my machine using .ssh/config to getway through without a password.
>
> > So the hang is the only problem and I think this is the well
> > documented gateway problem, so are there any fixes? Can I beta test
> > the new ssh you are working on?
>
> > Thanks
> > Jim
>
> > On Oct 24, 2:50 pm, wolfmanjm <[EMAIL PROTECTED]> wrote:
> >> Hi,
>
> >> I think this is the documented gateway problem...
> >> I get a hang after l_app2:momserver-0.0.1.jar.20071024214003 I ctrlc
> >> and yu can see where it is hung.
>
> >> But a couple things confuse me...
>
> >> 1. Why doesn't it ask for the password for the app2 server? I don't
> >> have a public key for that, it usually prompts for a password if I do
> >> ssh l_app2 on the gateway server.
>
> >> 2. The file I am uploading actually appears on l_app2 as an empty
> >> file... very odd
>
> >> Thanks for any hints.
>
> >> capfile...
>
> >> set :synchronous_connect, true
>
> >> set :jarfile, "momserver-0.0.1.jar"
>
> >> set :gateway, "gw:11326"
> >> set :staging_host, "l_app2:22"
> >> role :app, "#{staging_host}"
>
> >> desc "Upload middleware to server"
> >> task :upload_mw, :roles => :app do
> >>     set :now, "#{Time.now.utc.strftime("%Y%m%d%H%M%S")}"
> >>     put(File.read("target/#{jarfile}"), "#{jarfile}.#{now}")
> >> end
>
> >> desc "Deploy middleware"
> >> task :deploy_mw, :roles => :app do
>
> >>     run <<-CMD
> >>         mv middleware/apps/#{jarfile} #{jarfile}.old.#{now} &&
> >>         mv #{jarfile}.#{now} middleware/apps/#{jarfile} &&
> >>     CMD
> >> end
>
> >> desc "Deploy"
> >> task :deploy do
> >>   upload_mw
> >>   deploy_mw
> >> end
>
> >> When I execute I get...
>
> >>  * executing `deploy'
> >>   * executing `upload_mw'
> >>     servers: ["l_app2"]
> >>     synchronous_connect: true
> >>   * establishing connection to gateway `gw:11326'
> >>     starting connection to gateway `gw:11326'
> >>     gateway connection established
> >>   * establishing connection to `l_app2' via gateway
> >>     connected: `l_app2' (via gateway)
> >>   * uploading momserver-0.0.1.jar.20071024214003
> >>  ** uploading data to l_app2:momserver-0.0.1.jar.20071024214003
> >> /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/capistrano/
> >> upload.rb:
> >> 73:in `sleep': Interrupt
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/upload.rb:73:in `process!'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/upload.rb:32:in `process'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/configuration/actions/file_transfer.rb:14:in `put'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/configuration/connections.rb:135:in `execute_on_servers'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/configuration/actions/file_transfer.rb:12:in `put'
> >>         from ./capfile:27:in `load'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/configuration/execution.rb:80:in `instance_eval'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/configuration/execution.rb:80:in
> >> `execute_task_without_callbacks'
> >>          ... 12 levels...
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> >> capistrano/cli/execute.rb:14:in `execute'
> >>         from /usr/lib/ruby/gems/1.8/gems/capistrano-2.1.0/bin/cap:4
> >>         from /usr/bin/cap:16:in `load'
> >>         from /usr/bin/cap:16
>
> > >
>
>
>  smime.p7s
> 3KDownload


--~--~---------~--~----~------------~-------~--~----~
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