Skip to content

Instantly share code, notes, and snippets.

@mattconnolly
Last active January 1, 2016 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattconnolly/8213718 to your computer and use it in GitHub Desktop.
Save mattconnolly/8213718 to your computer and use it in GitHub Desktop.
sshkit errors running rake..
MattbookPro:sshkit matt$ ruby -v
ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-darwin13.0.0]
MattbookPro:sshkit matt$ rake --version
rake, version 10.1.1
MattbookPro:sshkit matt$ vagrant --version
Vagrant 1.4.2
MattbookPro:sshkit matt$ uname -a
Darwin MattbookPro.local 13.0.2 Darwin Kernel Version 13.0.2: Sun Sep 29 19:38:57 PDT 2013; root:xnu-2422.75.4~1/RELEASE_X86_64 x86_64
MattbookPro:sshkit matt$ vagrant status
WARN: Unresolved specs during Gem::Specification.reset:
ffi (>= 1.0.11, ~> 1.0)
net-ssh (< 2.8.0, >= 2.6.5, >= 2.6.6)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Current machine states:
one running (virtualbox)
two running (virtualbox)
three running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
MattbookPro:sshkit matt$ rake
Loaded Suite test/functional/backends,test/functional,test/unit/backends,test/unit/core_ext,test/unit/formatters,test/unit,test,test/support
Started at 2014-01-02 11:32:10 +1000 w/ seed 27419.
SSHKit::Backend::TestConnectionPool
PASS (0:00:00.000) test_closed_connection_is_not_reused
PASS (0:00:00.000) test_connection_factory_receives_args
PASS (0:00:00.001) test_connections_are_reused
PASS (0:00:00.001) test_default_idle_timeout
PASS (0:00:00.001) test_zero_idle_timeout_disables_reuse
PASS (0:00:00.102) test_expired_connection_is_not_reused
PASS (0:00:00.102) test_connections_with_different_args_are_not_reused
SSHKit::Backend::TestNetssh
PASS (0:00:00.103) test_net_ssh_configuration_options
PASS (0:00:00.104) test_transfer_summarizer
PASS (0:00:00.105) test_netssh_ext
SSHKit::Backend::TestPrinter
PASS (0:00:00.105) test_printer_any_params_config
PASS (0:00:00.105) test_printer_respond_to_configure
PASS (0:00:00.106) test_simple_printing
SSHKit::TestCommand
PASS (0:00:00.106) test_including_the_env_with_multiple_keys
PASS (0:00:00.106) test_including_the_env
PASS (0:00:00.106) test_umask
PASS (0:00:00.106) test_maps_a_command
PASS (0:00:00.107) test_backgrounding_a_task_as_a_given_user_with_env
PASS (0:00:00.107) test_working_in_a_given_directory
PASS (0:00:00.107) test_overriding_verbosity_level_with_a_constant
PASS (0:00:00.107) test_verbosity_defaults_to_logger_info
PASS (0:00:00.107) test_default_env_is_overwritten_with_locally_defined
PASS (0:00:00.107) test_command_has_a_guid
PASS (0:00:00.107) test_not_mapping_a_builtin
PASS (0:00:00.107) test_failure?
PASS (0:00:00.107) test_backgrounding_a_task
PASS (0:00:00.107) test_overriding_verbosity_level_with_a_symbol
PASS (0:00:00.107) test_appending_stdout
PASS (0:00:00.108) test_setting_exit_status
PASS (0:00:00.108) test_wont_take_no_args
PASS (0:00:00.108) test_working_in_a_given_directory_not_mapped
PASS (0:00:00.108) test_appending_stderr
PASS (0:00:00.108) test_including_the_env_doesnt_addressively_escape
PASS (0:00:00.108) test_using_a_heredoc
PASS (0:00:00.108) test_complete?
PASS (0:00:00.108) test_global_env
PASS (0:00:00.108) test_umask_with_working_directory
PASS (0:00:00.109) test_working_as_a_given_user_and_group
PASS (0:00:00.109) test_command_raises_command_failed_error_when_non_zero_exit
PASS (0:00:00.109) test_umask_with_working_directory_and_user
PASS (0:00:00.109) test_successful?
PASS (0:00:00.109) test_umask_with_env_and_working_directory_and_user
PASS (0:00:00.109) test_working_in_a_given_directory_with_env
PASS (0:00:00.110) test_working_as_a_given_user
PASS (0:00:00.110) test_backgrounding_a_task_as_a_given_user
PASS (0:00:00.110) test_working_as_a_given_group
PASS (0:00:00.110) test_having_a_host_passed
SSHKit::TestCommandMap
PASS (0:00:00.110) test_defaults
PASS (0:00:00.110) test_setter
PASS (0:00:00.110) test_prefix
PASS (0:00:00.111) test_prefix_unshift
SSHKit::TestConfiguration
PASS (0:00:00.111) test_backend
PASS (0:00:00.111) test_setting_formatter_to_dot
PASS (0:00:00.111) test_output_verbosity
PASS (0:00:00.111) test_umask
PASS (0:00:00.111) test_default_env
PASS (0:00:00.111) test_setting_formatter_to_blackhole
PASS (0:00:00.111) test_command_map
PASS (0:00:00.111) test_output
SSHKit::TestCoordinator
PASS (0:00:00.112) test_the_connection_manager_yields_the_host_to_each_connection_instance
PASS (0:00:20.115) test_the_connection_manager_can_run_things_in_sequence_with_wait
PASS (0:00:26.123) test_the_connection_manager_can_run_things_in_groups
PASS (0:00:26.123) test_the_connection_manaager_runs_things_in_parallel_by_default
PASS (0:00:26.124) test_connection_manager_handles_a_single_argument
PASS (0:00:26.124) test_connection_manager_resolves_hosts
PASS (0:00:30.127) test_the_connection_manager_can_run_things_in_sequence
SSHKit::TestDot
PASS (0:00:30.128) test_logging_debug
PASS (0:00:30.128) test_logging_info
PASS (0:00:30.128) test_command_failure
PASS (0:00:30.128) test_logging_error
PASS (0:00:30.128) test_logging_fatal
PASS (0:00:30.128) test_command_success
PASS (0:00:30.129) test_logging_warn
SSHKit::TestHost
PASS (0:00:30.129) test_host_ssh_options_are_simply_missing_when_they_have_no_value
PASS (0:00:30.129) test_host_with_port
PASS (0:00:30.129) test_regular_hosts
PASS (0:00:30.129) test_host_with_username_and_port
PASS (0:00:30.130) test_assert_hosts_compare_equal
PASS (0:00:30.130) test_turning_a_host_into_ssh_options
PASS (0:00:30.130) test_raises_on_unparsable_string
PASS (0:00:30.130) test_arbitrary_host_properties
PASS (0:00:30.130) testing_host_casting_to_a_string
PASS (0:00:30.130) test_assert_hosts_hash_equally
PASS (0:00:30.131) test_turning_a_host_into_ssh_options_when_extra_options_are_set
PASS (0:00:30.131) test_does_not_confuse_ipv6_hosts_with_port_specification
PASS (0:00:30.131) test_host_with_username
PASS (0:00:30.131) test_ipv4_with_username_and_port
PASS (0:00:30.131) test_setting_up_a_host_with_a_hash_raises_on_unknown_keys
PASS (0:00:30.131) test_setting_up_a_host_with_a_hash
SSHKit::TestLogger
PASS (0:00:30.131) test_logger_severity_constants
SSHKit::TestPretty
PASS (0:00:30.132) test_logging_info
PASS (0:00:30.132) test_logging_debug
PASS (0:00:30.132) test_logging_warn
PASS (0:00:30.132) test_logging_error
PASS (0:00:30.132) test_logging_fatal
Finished in 30.133037 seconds.
95 tests, 95 passed, 0 failures, 0 errors, 0 skips, 179 assertions
Loaded Suite test/functional/backends,test/functional,test/unit/backends,test/unit/core_ext,test/unit/formatters,test/unit,test,test/support
Started at 2014-01-02 11:32:40 +1000 w/ seed 61360.
SSHKit::Backend::TestLocal
PASS (0:00:00.004) test_capture
PASS (0:00:00.010) test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr
PASS (0:00:00.017) test_test
SSHKit::Backend::TestNetssh
WARN: Unresolved specs during Gem::Specification.reset:
ffi (>= 1.0.11, ~> 1.0)
net-ssh (< 2.8.0, >= 2.6.5, >= 2.6.6)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
ERROR (0:00:01.183) test_upload_large_file
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:81:in `upload!'
test/functional/backends/test_netssh.rb:130:in `block in test_upload_large_file'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:132:in `test_upload_large_file'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
ERROR (0:00:01.242) test_backgrounding_a_process
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:126:in `block in _execute'
lib/sshkit/backends/netssh.rb:123:in `tap'
lib/sshkit/backends/netssh.rb:123:in `_execute'
lib/sshkit/backends/netssh.rb:71:in `background'
test/functional/backends/test_netssh.rb:88:in `block (2 levels) in test_backgrounding_a_process'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:89:in `block in test_backgrounding_a_process'
/Users/matt/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/benchmark.rb:281:in `measure'
test/functional/backends/test_netssh.rb:86:in `test_backgrounding_a_process'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
FAIL (0:00:01.284) test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr
[SSHKit::Command::Failed] exception expected, not
Class: <Net::SSH::AuthenticationFailed>
Message: <"vagrant">
---Backtrace---
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
/Users/matt/ruby/sshkit/lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:173:in `ssh'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:126:in `block in _execute'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:123:in `tap'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:123:in `_execute'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:66:in `execute'
/Users/matt/ruby/sshkit/test/functional/backends/test_netssh.rb:71:in `block (2 levels) in test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:54:in `instance_exec'
/Users/matt/ruby/sshkit/lib/sshkit/backends/netssh.rb:54:in `run'
/Users/matt/ruby/sshkit/test/functional/backends/test_netssh.rb:72:in `block in test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr'
---------------
@ test/functional/backends/test_netssh.rb:69:in `test_execute_raises_on_non_zero_exit_status_and_captures_stdout_and_stderr'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
ERROR (0:00:01.326) test_test_does_not_raise_on_non_zero_exit_status
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:126:in `block in _execute'
lib/sshkit/backends/netssh.rb:123:in `tap'
lib/sshkit/backends/netssh.rb:123:in `_execute'
lib/sshkit/backends/netssh.rb:62:in `test'
test/functional/backends/test_netssh.rb:79:in `block in test_test_does_not_raise_on_non_zero_exit_status'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:80:in `test_test_does_not_raise_on_non_zero_exit_status'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
ERROR (0:00:01.372) test_upload_file
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:81:in `upload!'
test/functional/backends/test_netssh.rb:105:in `block in test_upload_file'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:107:in `test_upload_file'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
ERROR (0:00:01.417) test_capture
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:126:in `block in _execute'
lib/sshkit/backends/netssh.rb:123:in `tap'
lib/sshkit/backends/netssh.rb:123:in `_execute'
lib/sshkit/backends/netssh.rb:76:in `capture'
test/functional/backends/test_netssh.rb:59:in `block (3 levels) in test_capture'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:60:in `block (2 levels) in test_capture'
lib/sshkit.rb:13:in `capture_output'
test/functional/backends/test_netssh.rb:56:in `block in test_capture'
test/functional/backends/test_netssh.rb:55:in `open'
test/functional/backends/test_netssh.rb:55:in `test_capture'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
ERROR (0:00:01.460) test_upload_string_io
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
lib/sshkit/backends/connection_pool.rb:25:in `create_or_reuse_connection'
lib/sshkit/backends/netssh.rb:173:in `ssh'
lib/sshkit/backends/netssh.rb:81:in `upload!'
test/functional/backends/test_netssh.rb:115:in `block in test_upload_string_io'
lib/sshkit/backends/netssh.rb:54:in `instance_exec'
lib/sshkit/backends/netssh.rb:54:in `run'
test/functional/backends/test_netssh.rb:117:in `test_upload_string_io'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
SSHKit::TestCoordinator
PASS (0:00:01.461) test_running_commands_on_real_hosts
SSHKit::TestHost
PASS (0:00:01.461) test_that_it_works
ERROR (0:00:01.503) test_creating_a_user_gives_us_back_his_private_key_as_a_string
vagrant
@ /Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start'
test/helper.rb:39:in `block in create_user_with_key'
test/helper.rb:38:in `each'
test/helper.rb:38:in `collect'
test/helper.rb:38:in `create_user_with_key'
test/functional/test_ssh_server_comes_up_for_functional_tests.rb:17:in `test_creating_a_user_gives_us_back_his_private_key_as_a_string'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/mocha-0.14.0/lib/mocha/integration/mini_test/version_2112_to_320.rb:40:in `run'
Finished in 1.503954 seconds.
13 tests, 5 passed, 1 failures, 7 errors, 0 skips, 7 assertions
rake aborted!
Command failed with status (1): [ruby -I"lib:test" -I"/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.1/lib" "/Users/matt/.rvm/gems/ruby-2.0.0-p353/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/functional/backends/test_local.rb" "test/functional/backends/test_netssh.rb" "test/functional/test_coordinator.rb" "test/functional/test_ssh_server_comes_up_for_functional_tests.rb" ]
/Users/matt/ruby/sshkit/Rakefile:20:in `block (2 levels) in <top (required)>'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/bin/ruby_noexec_wrapper:14:in `eval'
/Users/matt/.rvm/gems/ruby-2.0.0-p353/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => test:default => test:test
(See full trace by running task with --trace)
MattbookPro:sshkit matt$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment