On Saturday 07 July 2007 23:43:46 Jamis Buck wrote:
> So, I suppose my question is: for those of you having problems, what
> is your connection configuration like? Are you using a gateway? Are
> you connecting to multiple hosts?

No gateway and no multiple hosts. 

Here is the configuration i use:
<snip>
set :application, :website

role :server, 'DOMAIN.TOPLEVEL'

set :deploy_to, 'PATH'
set :current_path, 'PATH/www'

set :deploy_via, 'copy'
set :copy_strategy, :export

set :user, 'USERNAME'
set :use_sudo, false
</snap>

Authentication is done via shared keys.

kind of regards, Holger

>
> I'm beginning to think that, sadly, Net::SFTP is not ready for this
> use-case. I may need to pull the :copy strategy from cap2 until I have
> a chance to completely scrap and rewrite both Net::SSH and Net::SFTP.
>
> - Jamis
>
> On 7/7/07, Holger Kohnen <[EMAIL PROTECTED]> wrote:
> > On Monday 02 July 2007 23:20:34 [EMAIL PROTECTED] wrote:
> > > I am having a similiar problem using cap deploy with copy_strategy =
> > > export and deploy_via = copy, I did the above and the log file ends
> > > with
> > >
> > > [DEBUG] Fri Jun 15 22:31:58 -0500 2007 -- transport.session: sending
> > > message >>"<some_random_stuff_here>"<<
> > > [DEBUG] Fri Jun 15 22:31:58 -0500 2007 -- sftp.operations.write:
> > > received request id 1
> > >
> > > and then it just stops and never does anything else. the file is
> > > created on the server with size 0.
> >
> > Same issue here. I have tried any sftp version but no success.
> > About one month ago everything worked fine. Something must
> > have changed, but don't know what.
> > I have monkey patched the Upload class in my Capfile to use scp,
> > surely it is not really elegant, but it is a solution ;-)
> >
> > <snip>
> > $configuration = self
> > module ::Capistrano
> >   class Upload
> >     def self.process(sessions, filename, options)
> >       options[:logger].info 'Monkey patched Upload.process - Uses scp
> > now' # don't know how to access configuration here without a global user
> > = $configuration.fetch(:user)
> >       sessions.each do |session|
> >         server = session.xserver.host
> >         command = "scp #{filename} [EMAIL PROTECTED]:#{filename}"
> >         options[:logger].info command
> >         options[:logger].info `#{command}`
> >       end
> >     end
> >   end
> > end
> > </snap>
> >
> > kind of regards, holger
>
> 


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