Chef infra 无法在厨师工作站上运行我的烹饪书

Chef infra 无法在厨师工作站上运行我的烹饪书,chef-infra,cookbook,chef-workstation,Chef Infra,Cookbook,Chef Workstation,运行chef-client--本地模式--override runlist first\u cookbook时,我遇到以下错误 [2020-04-07T16:31:24+05:30]致命:Net::HTTPServerException:412“前置条件失败” 我的烹饪书路径是C:\Windows\System32\first\u cookbook有人能帮我吗?我是厨师长的新手,Windows操作系统也是我的新环境 经过大量的分析,我知道我们的食谱(在我的例子中是第一本)应该放在名为cookbo

运行
chef-client--本地模式--override runlist first\u cookbook
时,我遇到以下错误

[2020-04-07T16:31:24+05:30]致命:Net::HTTPServerException:412“前置条件失败”

我的烹饪书路径是C:\Windows\System32\first\u cookbook有人能帮我吗?我是厨师长的新手,Windows操作系统也是我的新环境

经过大量的分析,我知道我们的食谱(在我的例子中是第一本)应该放在名为
cookbooks


您是否有
C:\Windows\System32\first\u cookbook\metadata.rb
,其中将烹饪书的名称声明为“first\u cookbook”?Draco谢谢您的时间我已经解决了这个问题
[2020-04-07T16:31:06+05:30] WARN: No config file found or specified on command line. Using command line options instead.
[2020-04-07T16:31:06+05:30] WARN: No cookbooks directory found at or above current directory.  Assuming C:/Windows/System32.
Starting Chef Infra Client, version 15.8.23

[2020-04-07T16:31:24+05:30] WARN: Run List override has been provided.
[2020-04-07T16:31:24+05:30] WARN: Original Run List: []
[2020-04-07T16:31:24+05:30] WARN: Overridden Run List: [recipe[first_cookbook]]
resolving cookbooks for run list: ["first_cookbook"]

================================================================================
Error Resolving Cookbooks for Run List:
================================================================================

Missing Cookbooks:
------------------
No such cookbook: first_cookbook

Expanded Run List:
------------------
* first_cookbook

System Info:
------------
chef_version=15.8.23
platform=windows
platform_version=10.0.18363
ruby=ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
program_name=C:/opscode/chef-workstation/modules/chef/../../bin/chef-client
executable=C:/opscode/chef-workstation/bin/chef-client


Running handlers:

[2020-04-07T16:31:24+05:30] ERROR: Running exception handlers
Running handlers complete
[2020-04-07T16:31:24+05:30] ERROR: Exception handlers complete
Chef Infra Client failed. 0 resources updated in 18 seconds
[2020-04-07T16:31:24+05:30] FATAL: Stacktrace dumped to C:/Users/sneha/.chef/local-mode-cache/cache/chef-stacktrace.out
[2020-04-07T16:31:24+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report