Details
Description
Using net-ssh or net-scp causing the following error:
Buildr aborted!
padding error, need 249417156 block 16
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:195:in `poll_next_packet'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:85:in `next_packet'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:84:in `loop'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/packet_stream.rb:84:in `next_packet'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:169:in `poll_message'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:164:in `loop'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:164:in `poll_message'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/transport/session.rb:149:in `next_message'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:82:in `next_message'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:81:in `loop'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:81:in `next_message'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/methods/publickey.rb:53:in `authenticate_with'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/methods/publickey.rb:20:in `authenticate'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/key_manager.rb:97:in `each_identity'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/key_manager.rb:95:in `each'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/key_manager.rb:95:in `each_identity'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:68:in `authenticate'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:61:in `each'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh/authentication/session.rb:61:in `authenticate'
/home/thilko/.gem/jruby/1.8/gems/net-ssh-2.0.11/lib/net/ssh.rb:183:in `start'
/home/thilko/.gem/jruby/1.8/gems/net-scp-1.0.2/lib/net/scp.rb:196:in `start'
/home/thilko/Aptana Studio Workspace/chief/../Ivy/buildr/lib/blau_deploy.rb:23:in `blau_deploy'
/home/thilko/Aptana Studio Workspace/chief/../Ivy/buildr/lib/blau_deploy.rb:17:in `after_define'
/home/thilko/.gem/jruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
/home/thilko/.gem/jruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `execute'
/home/thilko/.gem/jruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
After some research we found the following issue: http://jira.codehaus.org/browse/JRUBY-3385 which indicates that the problem has something to do with the required version of the jruby-openssl - which is 0.3 for 1.3.4. We changed the version to 0.5.2 and everything work fine.