0

当我执行 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>
4

1 回答 1

0

自昨天以来报告了一些问题- 解决方案似乎将 chef 降级到 12.10.24

在您的 Vagrantfile 中,只需提及要使用的厨师版本

Vagrant.configure("2") do |config|
  config.vm.provision "chef_solo" do |chef|
    chef.version = "12.10.24"
  end
end
于 2016-05-19T09:41:55.160 回答