Hi Jamis.

I've tried run method. It makes no difference.
Is there any way to get some kind of traces or other debug info?
So we can see what's the difference between the two cases.

  Dmitry

On 19 июн, 01:52, Jamis Buck <[EMAIL PROTECTED]> wrote:
> It shouldn't make any difference at all, but what if you use "run"
> instead of "invoke_command"? The "invoke_command" method is intended
> mostly for internal use, or for situations where you need to
> programmatically switch between run/sudo.
>
> - Jamis
>
> On Jun 18, 2007, at 3:44 PM, Dmitry Kurochkin wrote:
>
>
>
> > I've thought about this but sftp works.
> > Besides capistrano upload goes fine if I remove invoke_command before
> > put.
>
> >   Dmitry
>
> > On 18 июн, 18:30, DeRailed <[EMAIL PROTECTED]> wrote:
> >> Dmitry - I had a similar issue. In my case sftp was not enabled on
> >> the
> >> server, hence the call just hung. Make sure you can issue the
> >> sftp call from the command line...
>
> >> On 18 Jun, 06:59, Jamis Buck <[EMAIL PROTECTED]> wrote:
>
> >>> Dmitry,
>
> >>> Can you tell me what OS you are running locally? Also, what Ruby
> >>> version do you have installed locally? What versions of Net::SSH and
> >>> Net::SFTP do you have installed? And how large is mapscript.so?
>
> >>> - Jamis
>
> >>> On Jun 18, 2007, at 12:46 AM, Dmitry Kurochkin wrote:
>
> >>>> Hi Capistrano devs.
>
> >>>> Thanks for your work! Capistrano is a great tool.
>
> >>>> I experience a problem with upload. I created a simple task to
> >>>> upload
> >>>> a library:
>
> >>>> namespace :mapscript do
> >>>>   task :default, :roles => :app do
> >>>>     invoke_command "mkdir -p #{shared_path}/lib"
> >>>>     put File.read("lib/mapscript.so"), "#{shared_path}/lib/
> >>>> mapscript.so"
> >>>>   end
> >>>> end
>
> >>>> Cap hangs after upload is started (deploying to a single server):
>
> >>>>   * executing `mapscript'
> >>>>   * executing "mkdir -p /home/roziv/shared/lib"
> >>>>     servers: ["..."]
> >>>> Password:
> >>>>     [...] executing command
> >>>>     command finished
> >>>>     servers: ["..."]
> >>>>   * uploading /home/roziv/shared/lib/mapscript.so
> >>>>  ** uploading data to ...:/home/roziv/shared/lib/mapscript.so
>
> >>>> Directory is successfully created and I see mapscript.so with 0
> >>>> size.
>
> >>>> If I comment the first command (i.e. invoke_command) upload goes
> >>>> fine.
>
> >>>> I did strace on ruby process and it seems to be running in infinite
> >>>> loop.
>
> >>>> Please ask if you need more info or help.
>
> >>>> Regards,
> >>>>   Dmitry


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