Note that 100% CPU consumption is a known issue with Net::SFTP, and is
not necessarily related to the upload hanging. Even when everything
works correctly, you will still see huge CPU usage by Net::SFTP.

- Jamis

On 7/11/07, Andrew Beacock <[EMAIL PROTECTED]> wrote:
>
> Just a little more information:
> If I comment out my :web and :db targets (leaving just :app) then 9
> out of 10 times the deploy works correctly.
>
> As soon as I add my :db target back in (a different hostname) it hangs
> in the same place as before.
>
> Andy.
> --
> Andrew Beacock
> Blog: http://blog.andrewbeacock.com
>
>
> On Jul 11, 10:25 am, Andrew Beacock <[EMAIL PROTECTED]> wrote:
> > Spoke too soon :(
> >
> > It worked once (after I added the require line) but not again still
> > hangs at the same place ("** uploading data to ...")  and I thought I
> > was using 1.8.6 but obviously not!
> >
> > I'm using:
> >
> > Ubuntu 6.10 (lsb_release -r -> 6.10)
> > Kernel 2.6.17 (uname -a -> Linux 2.6.17-11-386 #2 Fri May 18 23:37:00
> > UTC 2007 i686 GNU/Linux)
> > Ruby 1.8.4 (ruby -v -> ruby 1.8.4 (2005-12-24) [i486-linux])
> > capistrano (1.99.3)
> > fastthread (1.0)
> > highline (1.2.9)
> > net-sftp (1.1.0)
> > net-ssh (1.1.2)
> >
> > I have a different host listed for my :db than my :app (the :web is
> > the same as the :app).
> >
> > Andy.
> > --
> > Andrew Beacock
> > Blog:http://blog.andrewbeacock.com
> >
> > On Jul 11, 10:11 am, Andrew Beacock <[EMAIL PROTECTED]> wrote:
> >
> > > Ezra,
> > > Thank you so much!  I've only started with Capistrano this morning
> > > (gem'ing v2) and had this very issue (I'm using Ruby 1.8.6).  I've
> > > just added the require 'fastthread' to the top of my Capfile and now
> > > it all works fine to two different hosts.
> >
> > > Andy.
> > > --
> > > Blog:http://blog.andrewbeacock.com
> >
> > > On Jul 11, 12:32 am, Ezra Zygmuntowicz <[EMAIL PROTECTED]> wrote:
> >
> > > >         What version of RUby itself are all of you experiencing this 
> > > > problem
> > > > running? Is it perhaps ruby 1.8.6? I've been doing file transfers
> > > > with cap here of up to 25Mb without ever seeing this issue no matter
> > > > what i call before or after the put command. THis was with ruby 1.8.5
> >
> > > >         But I just tried it with ruby 1.8.6 and was able to get the same
> > > > deadlocking error.  Ruby 1.8.6 has a bug in the threading code that
> > > > causes deadlocks sometimes.
> >
> > > >         Can those of you having this issue please install the 
> > > > fastthread gem
> > > > and add require 'fastthread' to the top of your recipe files and
> > > > report back please?
> >
> > > > Thanks
> > > > -- Ezra Zygmuntowicz
> > > > -- Lead Rails Evangelist
> > > > -- [EMAIL PROTECTED]
> > > > -- Engine Yard, Serious Rails Hosting
> > > > -- (866) 518-YARD (9273)
>
>
> >
>

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