-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException while executing cap write_permissions task from tutorial #405
Comments
Thanks for the report! It is entirely possible that there is JRuby-Specific bug. One thing that would help narrow it down is if you could take Capistrano out of the picture and create an SSHKit script that reproduces the problem. Could you try something like this? #!/usr/bin/env ruby
require "sshkit"
include SSHKit::DSL
on "[email protected]" do
execute :date
end |
Hey @mattbrictson, I'll do that this in about 5 hours and report back. |
Maybe this: jruby/jruby-openssl#105 |
@robd this is what I thought as well, then I executed the test outlined in that issue, and the test succeeded. |
Hey @mattbrictson, here's the script and output $ bundle exec irb
jruby-9.1.12.0 :001 > require 'sshkit'
=> true
jruby-9.1.12.0 :002 > include SSHKit::DSL
=> Object
jruby-9.1.12.0 :003 > on "[email protected]" do
jruby-9.1.12.0 :004 > execute :date
jruby-9.1.12.0 :005?> end
INFO [f236774b] Running /usr/bin/env date as deployuser@demo.ourapp.com
SSHKit::Runner::ExecuteError: Exception while executing as deployuser@demo.ourapp.com:
from /Users/srdjan/.bundle/jruby/2.3.0/gems/sshkit-1.14.0/lib/sshkit/runners/parallel.rb:15:in `block in execute' |
Hey @batasrki. I should start by saying I've never used jruby and don't know anything about it, but I'm happy to try and help. When you say 'executed the test outlined in that issue' do you mean that you tried this workaround? : Net::SSH::Transport::Algorithms::ALGORITHMS.values.each { |algs| algs.reject! { |a| a =~ /^ecd(sa|h)-sha2/ } }
Net::SSH::KnownHosts::SUPPORTED_TYPE.reject! { |t| t =~ /^ecd(sa|h)-sha2/ } Do you have a Gemfile? If so could you post your Gemfile and Gemfile.lock |
Hey @robd, No worries, help is all welcome. What I meant was that the output of the command did not match the |
Gemfile.lock
|
Thanks for the info about the test, and for the Gemfile. Could you post the output of the commands in that test here:
Also, if possible do you know if you have the jruby-openssl gem installed, and if so what version? I guess you do, but it isn't in your Gemfile but is in your system. If you don't mind could you see if it's listed by calling Another way might be to evaluate Mainly just wondering if you have the latest version v0.9.20 of jruby-openssl which includes this commit: jruby/jruby-openssl@47c9f42 |
Here we go. jruby-9.1.12.0 :009 > Jopenssl::VERSION
=> "0.9.20"
jruby-9.1.12.0 :013 > Gem.loaded_specs['net-ssh'].version
=> #<Gem::Version "4.1.0">
jruby-9.1.12.0 :014 > RUBY_DESCRIPTION
=> "jruby 9.1.12.0 (2.3.3) 2017-06-15 33c6439 Java HotSpot(TM) 64-Bit Server VM 25.73-b02 on 1.8.0_73-b02 +jit [darwin-x86_64]"
jruby-9.1.12.0 :015 > Net::SSH.start("some-server.example.com", "some_username")
SocketError: getaddrinfo: name or service not known
from org/jruby/ext/socket/Addrinfo.java:305:in `getaddrinfo'
from /Users/srdjan/.rvm/rubies/jruby-9.1.12.0/lib/ruby/stdlib/socket.rb:231:in `foreach'
from /Users/srdjan/.rvm/rubies/jruby-9.1.12.0/lib/ruby/stdlib/socket.rb:327:in `tcp'
from /Users/srdjan/.bundle/jruby/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh/transport/session.rb:71:in `initialize'
from /Users/srdjan/.bundle/jruby/2.3.0/gems/net-ssh-4.1.0/lib/net/ssh.rb:233:in `start'
from (irb):15:in `<eval>'
from org/jruby/RubyKernel.java:1000:in `eval'
from org/jruby/RubyKernel.java:1298:in `loop'
from org/jruby/RubyKernel.java:1120:in `catch'
from org/jruby/RubyKernel.java:1120:in `catch'
from /Users/srdjan/.rvm/rubies/jruby-9.1.12.0/bin/irb:13:in `<main>'
from org/jruby/RubyKernel.java:979:in `load'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:1:in `(root)'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `block in start'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/exe/bundle:35:in `(root)'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `<main>'
from org/jruby/RubyKernel.java:979:in `load'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/gems/bundler-1.15.1/exe/bundle:27:in `<eval>'
from org/jruby/RubyKernel.java:1000:in `eval'
from /Users/srdjan/.rvm/gems/jruby-9.1.12.0/bin/jruby_executable_hooks:15:in `<main>' |
Great thanks. One final thing. Could you try replacing the server in the
test (some-server.example.com) with your server and username. Many thanks.
|
jruby-9.1.12.0 :016 > Net::SSH.start("demo.ourapp.com", "deployuser")
=> #<Net::SSH::Connection::Session:0x17ec5e2a @max_win_size=131072, @max_pkt_size=32768, @keepalive=#<Net::SSH::Connection::Keepalive:0x52290e63 @unresponded_keepalive_count=0, @last_keepalive_sent_at=nil, @session=#<Net::SSH::Connection::Session:0x17ec5e2a ...>, @logger=#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>>, @listeners={#<Socket:fd 24>=>nil}, @properties={}, @options={:auth_methods=>["none", "publickey", "password", "keyboard-interactive"], :logger=>#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, :password_prompt=>#<Net::SSH::Prompt:0x62359532>, :user=>"deployuser"}, @channels={}, @on_global_request={}, @channel_open_handlers={}, @channel_id_counter=-1, @logger=#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, @transport=#<Net::SSH::Transport::Session:0x11978f52 @socket=#<Socket:fd 24>, @host_as_string="demo.ourapp.com,209.15.211.114", @options={:auth_methods=>["none", "publickey", "password", "keyboard-interactive"], :logger=>#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, :password_prompt=>#<Net::SSH::Prompt:0x62359532>, :user=>"deployuser"}, @host_key_verifier=#<Net::SSH::Verifiers::Lenient:0x3e0855b0>, @bind_address=nil, @queue=[], @algorithms=#<Net::SSH::Transport::Algorithms:0x484b5a21 @kex="diffie-hellman-group-exchange-sha1", @language_client="", @initialized=true, @client_packet="\x14\x810m\x18\xF6J\xE2\x93\xE7\xE2\xB5\x8C\x87\xBATS\x00\x00\x00\xB7diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521\x00\x00\x00\x85ssh-rsa,ssh-dss,[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\x00\x00\x00\xCDaes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,[email protected],idea-cbc,none,arcfour128,arcfour256,arcfour,aes128-ctr,aes192-ctr,aes256-ctr,cast128-ctr,blowfish-ctr,3des-ctr\x00\x00\x00\xCDaes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,[email protected],idea-cbc,none,arcfour128,arcfour256,arcfour,aes128-ctr,aes192-ctr,aes256-ctr,cast128-ctr,blowfish-ctr,3des-ctr\x00\x00\x00\x98hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96,hmac-ripemd160,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha2-256-96,hmac-sha2-512-96,none\x00\x00\x00\x98hmac-sha1,hmac-md5,hmac-sha1-96,hmac-md5-96,hmac-ripemd160,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha2-256-96,hmac-sha2-512-96,none\x00\x00\x00\x1Anone,[email protected],zlib\x00\x00\x00\x1Anone,[email protected],zlib\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", @language_server="", @server_data={:raw=>"\x14{\xEC\xE1\xF5\x88\xA7x\x1C\e\xAD\x8F\xCC\xE2\x91\x81%\x00\x00\x00~diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\x00\x00\x00\x0Fssh-rsa,ssh-dss\x00\x00\x00\x9Daes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]\x00\x00\x00\x9Daes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]\x00\x00\x00\x85hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96\x00\x00\x00\x85hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96\x00\x00\x00\x15none,[email protected]\x00\x00\x00\x15none,[email protected]\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", :kex=>["diffie-hellman-group-exchange-sha256", "diffie-hellman-group-exchange-sha1", "diffie-hellman-group14-sha1", "diffie-hellman-group1-sha1"], :host_key=>["ssh-rsa", "ssh-dss"], :encryption_client=>["aes128-ctr", "aes192-ctr", "aes256-ctr", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "arcfour", "[email protected]"], :encryption_server=>["aes128-ctr", "aes192-ctr", "aes256-ctr", "arcfour256", "arcfour128", "aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "arcfour", "[email protected]"], :hmac_client=>["hmac-md5", "hmac-sha1", "[email protected]", "hmac-sha2-256", "hmac-sha2-512", "hmac-ripemd160", "[email protected]", "hmac-sha1-96", "hmac-md5-96"], :hmac_server=>["hmac-md5", "hmac-sha1", "[email protected]", "hmac-sha2-256", "hmac-sha2-512", "hmac-ripemd160", "[email protected]", "hmac-sha1-96", "hmac-md5-96"], :compression_client=>["none", "[email protected]"], :compression_server=>["none", "[email protected]"], :language_client=>[], :language_server=>[]}, @pending=false, @session=#<Net::SSH::Transport::Session:0x11978f52 ...>, @options={:auth_methods=>["none", "publickey", "password", "keyboard-interactive"], :logger=>#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, :password_prompt=>#<Net::SSH::Prompt:0x62359532>, :user=>"deployuser"}, @hmac_server="hmac-sha1", @encryption_server="aes128-cbc", @server_packet="\x14{\xEC\xE1\xF5\x88\xA7x\x1C\e\xAD\x8F\xCC\xE2\x91\x81%\x00\x00\x00~diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1\x00\x00\x00\x0Fssh-rsa,ssh-dss\x00\x00\x00\x9Daes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]\x00\x00\x00\x9Daes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]\x00\x00\x00\x85hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96\x00\x00\x00\x85hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96\x00\x00\x00\x15none,[email protected]\x00\x00\x00\x15none,[email protected]\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", @logger=#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, @algorithms={:host_key=>["ssh-rsa", "ssh-dss", "[email protected]", "[email protected]", "ecdsa-sha2-nistp256", "ecdsa-sha2-nistp384", "ecdsa-sha2-nistp521"], :kex=>["diffie-hellman-group-exchange-sha1", "diffie-hellman-group1-sha1", "diffie-hellman-group14-sha1", "diffie-hellman-group-exchange-sha256", "ecdh-sha2-nistp256", "ecdh-sha2-nistp384", "ecdh-sha2-nistp521"], :encryption=>["aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "[email protected]", "idea-cbc", "none", "arcfour128", "arcfour256", "arcfour", "aes128-ctr", "aes192-ctr", "aes256-ctr", "cast128-ctr", "blowfish-ctr", "3des-ctr"], :hmac=>["hmac-sha1", "hmac-md5", "hmac-sha1-96", "hmac-md5-96", "hmac-ripemd160", "[email protected]", "hmac-sha2-256", "hmac-sha2-512", "hmac-sha2-256-96", "hmac-sha2-512-96", "none"], :compression=>["none", "[email protected]", "zlib"], :language=>[], :encryption_server=>["aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "[email protected]", "idea-cbc", "none", "arcfour128", "arcfour256", "arcfour", "aes128-ctr", "aes192-ctr", "aes256-ctr", "cast128-ctr", "blowfish-ctr", "3des-ctr"], :encryption_client=>["aes128-cbc", "3des-cbc", "blowfish-cbc", "cast128-cbc", "aes192-cbc", "aes256-cbc", "[email protected]", "idea-cbc", "none", "arcfour128", "arcfour256", "arcfour", "aes128-ctr", "aes192-ctr", "aes256-ctr", "cast128-ctr", "blowfish-ctr", "3des-ctr"], :hmac_server=>["hmac-sha1", "hmac-md5", "hmac-sha1-96", "hmac-md5-96", "hmac-ripemd160", "[email protected]", "hmac-sha2-256", "hmac-sha2-512", "hmac-sha2-256-96", "hmac-sha2-512-96", "none"], :hmac_client=>["hmac-sha1", "hmac-md5", "hmac-sha1-96", "hmac-md5-96", "hmac-ripemd160", "[email protected]", "hmac-sha2-256", "hmac-sha2-512", "hmac-sha2-256-96", "hmac-sha2-512-96", "none"], :compression_server=>["none", "[email protected]", "zlib"], :compression_client=>["none", "[email protected]", "zlib"], :language_server=>[], :language_client=>[]}, @compression_client="none", @encryption_client="aes128-cbc", @host_key="ssh-rsa", @compression_server="none", @session_id="\xCB}:\\{\xC9\x81\xD43\xF8\x90\xA4\rFh\xB4\r\xDD\x00]", @hmac_client="hmac-sha1">, @logger=#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, @server_version=#<Net::SSH::Transport::ServerVersion:0x58a8ea6f @version="SSH-2.0-OpenSSH_5.3", @logger=#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, @header="">, @port=22, @host_keys=#<Net::SSH::HostKeys:0x2e6b379c @known_hosts=Net::SSH::KnownHosts, @host_keys=[#<OpenSSL::PKey::RSA:0x1ff81b0d @blob="\x00\x00\x00\assh-rsa\x00\x00\x00\x01#\x00\x00\x01\x01\x00\xDA\xC5\x19\x1C\x90\xD1R\x87\xFBI\x18\x9A\xD6\xBE\xAA\xE7\t\x89Q\xEE[8\n7\x9F\x11\xE7\xB8\xD8fp\xB8\x00\xB7\xD1\x019\xCCu\xF1*j\xCA\x1F\"\xFE\xAD\xCCO$Z\xC6Mc\x80\xF09\xBC%\xFFr\x9F\n\xEA/]\xF2~\xC0\xA3\xD5\xC1\xA5\xCF\x1Dl_x\xD8\x00&l\xB5\a\xFBC8t\xA8L\x84Y&\x90\xF3\f/\rb;\xD5\xA1R?hB\xE1$\x90\xBBg\xB8\x8B\x8A\xB2\xB1\xA0\xD4\xFAr\x17\xFD\x14S\xC3#\xF1^}\xB3\xE6FGvy\xB1\x1DF\x858>^t\n\xA3\x0F\x8EG\xC4\xC8\xAB\x9A\xF3\xAE\xAE\xD9<\xE5\xE8\x11D\x9C\x93\x1Fs\xE2o\xF0\xAB\xB7\xDDF\x1F@\x00yQ\x12O\xD4\x867&9N\xFB\x9C%\xA5\xBC\xAE\xBDRNd\x86\xB8\x8Fg\xFF\xC2\xDE\xD6\xF1\xE4\xF4\x10\f\xDD4\xB6\x99\xE5\x95.\x84\xC8\x1DLl\e\x16\x9A\xC8\xA6\xAF\xE4\xBAL\x93\b\xB0K]\xE8\xF4\xB7\xDCnr\xA2\x83\xAC\x82MM\xB5\xC7\xD6C\xFB\xA6\xD0\xF6$\xE1">], @host="demo.ourapp.com,209.15.211.114", @options={:auth_methods=>["none", "publickey", "password", "keyboard-interactive"], :logger=>#<Logger:0x233f52f8 @default_formatter=#<Logger::Formatter:0x6c2dd88b @datetime_format=nil>, @level=4, @progname=nil, @formatter=nil, @logdev=#<Logger::LogDevice:0x49d979c4 @shift_age=nil, @filename=nil, @dev=#<IO:<STDERR>>, @mon_mutex=#<Mutex:0x3cb173db>, @shift_size=nil, @mon_count=0, @mon_owner=nil>>, :password_prompt=>#<Net::SSH::Prompt:0x62359532>, :user=>"deployuser"}>, @host="demo.ourapp.com">, @pending_requests=[], @event_loop=#<Net::SSH::Connection::SingleSessionEventLoop:0x1c610f @sessions=[#<Net::SSH::Connection::Session:0x17ec5e2a ...>], @logger=nil>> |
Hi @batasrki, thanks a lot for the further debug info. I'm sort of out of ideas about this - from the investigations you've done it does seem to be something Capistrano / SSHKit specific. One thing I noticed is that the exception you see looks like it might be from the same point in the code in PKeyEC.java as that issue. It's Line 836 in the issue, and line 845 in your exception - If you did want to try it, I'm not exactly sure at what point you would need to apply that workaround - it might be worth enquiring on that thread. From my limited understanding, It looks like it is just telling the client not to try any elliptic curve algorithms when connecting because they don't work yet. I would start by trying this at the top of your Hope this helps. |
Hey @robd, so shoving those 2 lines at the top of the Thanks so much for your help! |
Hey all,
I've added all the details to this SO post, https://stackoverflow.com/questions/44961954/nullpointerexception-while-executing-cap-write-permissions-task-from-tutorial.
Basically, I get a NullPointerException out of SSHKit while trying to execute any
cap deploy
task. Any help is much appreciated.The text was updated successfully, but these errors were encountered: