我正在尝试使用我安装的Ubuntu工作站来引导节点,Chef 10.12.0使用11.10尝试了它,但是同样的错误。节点是ubuntu。我可以ssh到它只是发现但在尝试使用刀引导时它会引发一些错误。
此错误消息“Exception:NameError:uninitialized constant Net :: SSH :: Compat”让我做了卸载和重新安装ssh,升级降级ruby,ssh但无用的事情。但我似乎已经在详细模式中找到了它的原因,这与ssh客户端不兼容?并不确定修复它们的最佳方法是什么。
vm@vm:~/chef-repo$ knife bootstrap 127.0.0.1 --sudo -x vagrant -P vagrant -p 2222 -N "vm1"
Bootstrapping Chef on 127.0.0.1
ERROR: knife encountered an unexpected error
This may be a bug in the 'bootstrap' knife command or plugin
Please collect the output of this command with the `-VV` option before filing a bug report.
Exception: NameError: uninitialized constant Net::SSH::Compat
vm@vm:~/chef-repo$ knife bootstrap 127.0.0.1 --sudo -x vagrant -P vagrant -p 2222 -N "vm1" -VV
DEBUG: Looking for bootstrap template in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.0/lib/chef/knife/bootstrap
Bootstrapping Chef on 127.0.0.1
DEBUG: Adding 127.0.0.1
DEBUG: establishing connection to 127.0.0.1:2222
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: remote is `SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1'
DEBUG: local is `SSH-2.0-Ruby/Net::SSH_2.8.0 x86_64-linux'
ERROR: knife encountered an unexpected error
This may be a bug in the 'bootstrap' knife command or plugin
Please collect the output of this command with the `-VV` option before filing a bug report.
Exception: NameError: uninitialized constant Net::SSH::Compat