On 24 Feb, 02:53, Valerio Schiavoni <[EMAIL PROTECTED]>
wrote:
> Hello Jamis,
> thanks for your kind support !
>
> On Feb 23, 3:39 pm, Jamis Buck <[EMAIL PROTECTED]> wrote:> Ah, put() does not 
> accept a source file name
>
> that's a shame..
>
> >    put "~/#{jar}", File.read("target/#{jar}")
>
> things got slightly better. the file is read, but there are the
> following 2 problems:
>
> 1) the upload somehow hangs, without any sign of activity. ctrl+c
> shows this:
>
> *v\M3???]g???oNOTICEPK??p
> ^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?
> 1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?
> 1;2c^[[?1;2c^[[?1;2c^C/opt/local/lib/ruby/gems/1.8/gems/
> capistrano-2.1.0/lib/capistrano/upload.rb:73:in `sleep': Interrupt
>         from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> capistrano/upload.rb:73:in `process!'
>         from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> capistrano/upload.rb:32:in `process'
>         from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> capistrano/configuration/actions/file_transfer.rb:14:in `put'
>         from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> capistrano/configuration/connections.rb:135:in `execute_on_servers'
>         from /opt/local/lib/ruby/gems/1.8/gems/capistrano-2.1.0/lib/
> capistrano/configuration/actions/file_transfer.rb:12:in `put'
>         from ./Capfile:16:in `load'
>
> 2) i see the binary content of the file redirected to stdout..is it
> intended??
>
> (the last thing i see before the hang-up:
> * &??cYnet/sf/cglib/util/SorterTemplate.classPK
>   *v\M3??3??(???_net/sf/cglib/util/StringSwitcher$1.classPK
>   *v\M3?e???0???bnet/sf/cglib/util/StringSwitcher$Generator.classPK
>   *v\M3?^???-8???inet/sf/cglib/util/StringSwitcher
> $StringSwitcherKey.classPK
>   *v\M3??Odj-
>   * &???jnet/sf/cglib/util/StringSwitcher.classPK
>   *v\M3???]g???oNOTICEPK??p
> ^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?
> 1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?1;2c^[[?
> 1;2c^[[?1;2c^[[?1;2c^C/opt/local/lib/ruby/gems/1.8/gems/
> capistrano-2.1.0/lib/capistrano/upload.rb:73:in `sleep': Interrupt
>
> but it's a very long output)

Hi Valerio !
Did you try to use the "put" command with only "small" files like
configuration files, or with only ascii files?
Jamis was saying that :

>Uploading using the 'put' helper is pretty hit-and-miss at the moment.
>Some people have no problems at all with it. Other's can't even upload
>small files.

So Capistrano seems not to like big data files. I guess you should try
to upload the java source instaed of the jar, because I don't see the
source of the "upload.rb",
but I'm gessing it uses sftp. And as far as I had seen from sftp : it
can give such kind of error outputs when
trying to send/receive files with some "uncommon" characters like : "v
\M3??3??(???_net/".

Let see known if you can upload a whole folder with "put" command :-)
--~--~---------~--~----~------------~-------~--~----~
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