You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Assaf Arkin <as...@apache.org> on 2009/09/10 09:22:18 UTC

A brief introduction to Rake

Blog post by John Barnette, short and to the point:
http://www.jbarnette.com/2009/08/27/on-rake.html

Assaf

Re: error calling net ssh

Posted by peter schröder <ps...@blau.de>.
a first draw to a workaround:

edit gemspec:

~/jruby/lib/ruby/gems/1.8/specifications$ joe buildr-1.3.4-java.gemspec

use a new version of openssl:

s.add_dependency(%q<jruby-openssl>, ["= 0.5.2"])

its in there 3-times!

Am 10.09.2009 um 12:21 schrieb peter schröder:

> Executing this in a buildfile via buildr:
>
> Net::SSH::start("titanic", "deploy",:verbose=>:debug) { |ssh|
>   ssh.exec("touch bla.txt")
> }
>
> brings an error (whole stack at the end):
>
> padding error, need 1735268700 block 16
>
> this command works fine calling the file directly:
>
> jruby -rubygems buildfile
>
> I played around a bit with the dependencies of buildr and found out
> that these are the trouble-makers
>
> jruby-openssl (0.5.2, 0.3)
> net-ssh (2.0.15, 2.0.11)
>
> the call works fine with open-ssl 0.5.2 and ssh 2.0.15. is there any
> way to force buildr to use these?!
>
> if i set them via the build.yaml i get:
>
> can't activate net-ssh (= 2.0.15, runtime) for [], already activated
> net-ssh-2.0.11 for ["buildr-1.3.4-java"]
>
>
> Buildr aborted!
> padding error, need 1735268700 block 16
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/packet_stream.rb:195:in `poll_next_packet'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/packet_stream.rb:85:in `next_packet'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/packet_stream.rb:84:in `loop'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/packet_stream.rb:84:in `next_packet'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/session.rb:169:in `poll_message'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/session.rb:164:in `loop'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/session.rb:164:in `poll_message'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/transport/session.rb:149:in `next_message'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:82:in `next_message'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:81:in `loop'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:81:in `next_message'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/methods/publickey.rb:53:in `authenticate_with'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/methods/publickey.rb:20:in `authenticate'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/key_manager.rb:97:in `each_identity'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/key_manager.rb:95:in `each'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/key_manager.rb:95:in `each_identity'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/methods/publickey.rb:19:in `authenticate'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:68:in `authenticate'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:61:in `each'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh/authentication/session.rb:61:in `authenticate'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/
> ssh.rb:183:in `start'
> /home/phoet/workspace/chief/buildfile:10
> /home/phoet/workspace/chief/buildfile:398:in `load'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:398:in `raw_load_buildfile'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:218:in `load_buildfile'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:499:in `standard_exception_handling'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:213:in `load_buildfile'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:137:in `run'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:499:in `standard_exception_handling'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/
> buildr/core/application.rb:135:in `run'
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/bin/
> buildr:19
> /home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/bin/
> buildr:19:in `load'
>

_________________________________
Peter Schröder
IT

blau: +49 (0) 178 139 1035
fax: +49 (0) 40 288 071 - 71
mail: ps@blau.de

blau Mobilfunk GmbH
Schulterblatt 124
D-20357 Hamburg

Sitz: Hamburg
HRB 80531 Amtsgericht Hamburg
Geschäftsführer: Dirk Freise, Martin Ostermayer, Thorsten Rehling


error calling net ssh

Posted by peter schröder <ps...@blau.de>.
Executing this in a buildfile via buildr:

Net::SSH::start("titanic", "deploy",:verbose=>:debug) { |ssh|
   ssh.exec("touch bla.txt")
}

brings an error (whole stack at the end):

padding error, need 1735268700 block 16

this command works fine calling the file directly:

jruby -rubygems buildfile

I played around a bit with the dependencies of buildr and found out  
that these are the trouble-makers

jruby-openssl (0.5.2, 0.3)
net-ssh (2.0.15, 2.0.11)

the call works fine with open-ssl 0.5.2 and ssh 2.0.15. is there any  
way to force buildr to use these?!

if i set them via the build.yaml i get:

can't activate net-ssh (= 2.0.15, runtime) for [], already activated  
net-ssh-2.0.11 for ["buildr-1.3.4-java"]


Buildr aborted!
padding error, need 1735268700 block 16
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/packet_stream.rb:195:in `poll_next_packet'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/packet_stream.rb:85:in `next_packet'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/packet_stream.rb:84:in `loop'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/packet_stream.rb:84:in `next_packet'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/session.rb:169:in `poll_message'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/session.rb:164:in `loop'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/session.rb:164:in `poll_message'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/transport/session.rb:149:in `next_message'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:82:in `next_message'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:81:in `loop'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:81:in `next_message'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/methods/publickey.rb:53:in `authenticate_with'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/methods/publickey.rb:20:in `authenticate'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/key_manager.rb:97:in `each_identity'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/key_manager.rb:95:in `each'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/key_manager.rb:95:in `each_identity'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/methods/publickey.rb:19:in `authenticate'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:68:in `authenticate'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:61:in `each'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh/authentication/session.rb:61:in `authenticate'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/net-ssh-2.0.11/lib/net/ 
ssh.rb:183:in `start'
/home/phoet/workspace/chief/buildfile:10
/home/phoet/workspace/chief/buildfile:398:in `load'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:398:in `raw_load_buildfile'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:218:in `load_buildfile'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:499:in `standard_exception_handling'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:213:in `load_buildfile'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:137:in `run'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:499:in `standard_exception_handling'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/lib/ 
buildr/core/application.rb:135:in `run'
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/bin/ 
buildr:19
/home/phoet/jruby-1.3.1/lib/ruby/gems/1.8/gems/buildr-1.3.4-java/bin/ 
buildr:19:in `load'