我有一个流浪盒Wndows 2008 R2做一些Chef基本设置。如果我使用vagrant destroy + vagrant,它每次都有效。然而,即使我在我的存储库(食谱/食谱/属性/任何东西)上没有做任何改变,流浪汉提供有时显示我错误,而有时它能够通过..任何人都可以给我如何调试这个?
以下是失败时的日志:
Matthew-Tings-MacBook-Pro-2:base mting923$ vagrant provision
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
[Berkshelf] installing cookbooks...
[Berkshelf] Using windows (1.7.0)
[Berkshelf] Using ohai (1.0.3) at path: '/Users/mting923/Documents/workspace/Schneider/chef-repo/cookbooks/ohai'
[Berkshelf] Installing pingdom (0.0.3) from github: 'cwjohnston/chef-pingdom' with branch: '0.0.3' over protocol: 'https'
[Berkshelf] Using powershell (1.0.8)
[Berkshelf] Using base (0.1.0) at path: '/Users/mting923/Documents/workspace/Schneider/chef-repo/cookbooks/base'
[Berkshelf] Using chef_handler (1.1.2)
[Berkshelf] Using chef-client (2.1.2)
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
C:\opscode\chef\bin\chef-solo.bat
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
[2013-01-09T23:09:02+00:00] INFO: *** Chef 10.16.2 ***
[2013-01-09T23:09:25+00:00] INFO: Setting the run_list to ["recipe[base::default]"] from JSON
[2013-01-09T23:09:25+00:00] INFO: Run List is [recipe[base::default]]
[2013-01-09T23:09:25+00:00] INFO: Run List expands to [base::default]
[2013-01-09T23:09:25+00:00] INFO: Starting Chef Run for vagrant-2008R2.nam.gad.schneider- electric.com
[2013-01-09T23:09:25+00:00] INFO: Running start handlers
[2013-01-09T23:09:25+00:00] INFO: Start handlers complete.
[2013-01-09T23:09:25+00:00] ERROR: Running exception handlers
[2013-01-09T23:09:25+00:00] ERROR: Exception handlers complete
[2013-01-09T23:09:25+00:00] FATAL: Stacktrace dumped to C:/tmp/vagrant-chef-1/chef-stacktrace.out
[2013-01-09T23:09:25+00:00] FATAL: Chef::Exceptions::CookbookNotFound: Cookbook base not found. If you're loading base from another cookbook, make sure you configure the dependency in your metadata
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
这种情况并非一直发生..就像这一刻我输入: 流浪者提供 它工作,而另一分钟我键入相同的东西..它失败了上面..这是我从流浪汉VM得到的chef-stacktrace.out:
Generated at 2013-01-09 23:09:25 +0000
Chef::Exceptions::CookbookNotFound: Cookbook base not found. If you're loading base from another cookbook, make sure you configure the dependency in your metadata
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook/cookbook_collection.rb:38:in `block in initialize'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in `yield'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in `default'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/ohai-6.14.0/lib/ohai/mash.rb:77:in `default'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:94:in `[]'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:94:in `resolve_recipe'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:84:in `rescue in block in load'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:76:in `block in load'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:75:in `each'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/run_context.rb:75:in `load'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:198:in `setup_run_context'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:418:in `do_run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/client.rb:176:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application.rb:140:in `run_chef_client'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/solo.rb:224:in `block in run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/solo.rb:216:in `loop'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/solo.rb:216:in `run_application'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application.rb:72:in `run'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/chef-solo:25:in `<top (required)>'
C:/opscode/chef/bin/chef-solo:19:in `load'
C:/opscode/chef/bin/chef-solo:19:in `<main>'