最終更新日:2020.08.26
VirtualBoxをアップデートしてから調子の悪いvagrantさん。
いつものようにvagrant up
したら見慣れないエラーが!
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
output above. Please fix your recipes so that they properly complete.
調べるとchefのライセンスが無償化された為、vagrantfileに一言つかいますよ〜と宣言しないとだめらしい。
vagrantfileにライセンス宣言してみる
コピー
config.vm.provision :chef_solo do |chef|
chef.arguments = "--chef-license accept"
end
早速チェックすると…
==> default: /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/mixlib-cli-1.4.0/lib/mixlib/cli.rb:229:in `parse_options’
==> default: :
==> default: invalid option: –chef-license
==> default: (
==> default: OptionParser::InvalidOption
==> default: )
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:71:in `configure_chef’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:58:in `reconfigure’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application/solo.rb:175:in `reconfigure’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:64:in `run’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/bin/chef-solo:25:in `‘
==> default: from /usr/bin/chef-solo:23:in `load’
==> default: from /usr/bin/chef-solo:23:in `‘
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
==> default: :
==> default: invalid option: –chef-license
==> default: (
==> default: OptionParser::InvalidOption
==> default: )
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:71:in `configure_chef’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:58:in `reconfigure’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application/solo.rb:175:in `reconfigure’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/lib/chef/application.rb:64:in `run’
==> default: from /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.10.4/bin/chef-solo:25:in `
==> default: from /usr/bin/chef-solo:23:in `load’
==> default: from /usr/bin/chef-solo:23:in `
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
あかんやん!エラー悪化。
invalid option: --chef-license
でそんなオプション指定しらないぜって言ってる模様。
しかたないからバージョンを固定してみることに。
vagrantfileでバージョンを固定してみる
コピー
config.vm.provision :chef_solo do |chef|
chef.version = "14.12.3"
end
無事vagrant up
することが出来ました!良かった。