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