当我执行vagrant up或vagrant provision时,它失败并出现以下错误。任何解决此问题的建议都是值得欢迎的。
中创建vagrant-7343223c
的位置
#<ChefZero::RestErrorResponse: 404: Object not found: hefzero://localhost:8889/nodes/vagrant-7343223c>
以上行取自下面给出的错误日志。
==> local: Running provisioner: chef_solo...
local: Installing Chef (latest)...
==> local: Generating chef JSON and uploading...
==> local: Running chef-solo...
==> local: stdin: is not a tty
==> local: [2016-05-19T02:12:50-07:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /tmp/vagrant-chef/695f45722c929d836cb98d5599d7becf
==> local: One version per cookbook
==> local: [2016-05-19T02:12:50-07:00] INFO: Forking chef instance to converge...
==> local: Starting Chef Client, version 12.11.1
==> local: [2016-05-19T02:12:50-07:00] INFO: *** Chef 12.11.1 ***
==> local: [2016-05-19T02:12:50-07:00] INFO: Platform: x86_64-linux
==> local: [2016-05-19T02:12:50-07:00] INFO: Chef-client pid: 2877
==> local: [2016-05-19T02:12:51-07:00] INFO: GET /organizations/chef/nodes/vagrant-7343223c
==> local: [2016-05-19T02:12:51-07:00] INFO: #<ChefZero::RestErrorResponse: 404: Object not found: chefzero://localhost:8889/nodes/vagrant-7343223c>
答案 0 :(得分:0)
在您的Vagrantfile中,只需提及要使用的厨师版
Vagrant.configure("2") do |config|
config.vm.provision "chef_solo" do |chef|
chef.version = "12.10.24"
end
end