1

Chef 10.12.0 がインストールされている Ubuntu ワークステーションを使用してノードをブートストラップしようとしていますが、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
4

0 に答える 0