【问题标题】:vagrant-windows chef-solo provisioner fails with "failed to launch waiter thread:1455 (fatal)"vagrant-windows chef-solo provisioner 失败并显示“无法启动服务员线程:1455(致命)”
【发布时间】:2014-01-02 01:52:57
【问题描述】:

我遇到了 vagrant-windows chef-solo provisioner 失败并出现以下错误的问题。

solo.rb 和 dna.json 文件已成功写入客户机上的 c:/tmp/vagrant-chef-1,当我手动运行从 vagrant 发送到 windows 的 powershell 脚本时,chef 按预期执行。

关于可能发生的事情或我可以如何解决此问题的任何想法?

_


  • 主机:Mac OSX 10.8.4
  • 来宾:Windows Server 2012
  • 提供者:VirtualBox 4.2.14

这是我遇到的错误...

[default] Running provisioner: VagrantPlugins::Chef::Provisioner::ChefSolo...
Generating chef JSON and uploading...
Running chef-solo...
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_lock.rb:58:in `flock': failed to launch waiter thread:1455 (fatal)
    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/run_lock.rb:58:in `acquire'

    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:446:in `do_run'
    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/client.rb:200:in `run'

    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:190:in `run_chef_client'
    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:239:in `block in run_application'

    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `loop'
    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application/solo.rb:231:in `run_application'

    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/lib/chef/application.rb:73:in `run'
    from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.4.4/bin/chef-solo:25:in `<top (required)>'

    from C:/opscode/chef/bin/chef-solo:23:in `load'
    from C:/opscode/chef/bin/chef-solo:23:in `<main>'
ERROR warden: Error occurred: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
ERROR warden: Error occurred: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
ERROR warden: Error occurred: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
ERROR vagrant: Vagrant experienced an error! Details:
ERROR vagrant: #<VagrantPlugins::Chef::Provisioner::Base::ChefError: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.>
ERROR vagrant: Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
ERROR vagrant: /Users/David/.vagrant.d/gems/gems/vagrant-windows-1.0.3/lib/vagrant-windows/monkey_patches/chef_solo.rb:51:in `run_chef_solo_on_windows'
/Users/David/.vagrant.d/gems/gems/vagrant-windows-1.0.3/lib/vagrant-windows/monkey_patches/chef_solo.rb:12:in `block in <class:ChefSolo>'
/Applications/Vagrant/embedded/gems/gems/vagrant-1.1.5/plugins/provisioners/chef/provisioner/chef_solo.rb:53:in `provision'

【问题讨论】:

    标签: windows chef-infra vagrant chef-solo


    【解决方案1】:

    这可能是 Vagrant 或 Vagrant Windows 中的错误。我建议在 GitHub 上打开一个问题。

    【讨论】:

      猜你喜欢
      • 2015-11-06
      • 1970-01-01
      • 1970-01-01
      • 2018-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-08
      • 1970-01-01
      相关资源
      最近更新 更多