无法在厨师工作站上运行我的食谱

问题描述 投票:0回答:1

正在运行chef-client --local-mode --override-runlist first_cookbook我遇到以下错误

[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

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

我的食谱路径为C:\Windows\System32\first_cookbook,有人可以帮我解决这个问题,我对厨师是陌生的,而工作的Windows操作系统对我来说也是新的环境

chef cookbook chef-workstation
1个回答
0
投票

经过大量分析,我知道我们的食谱(在我的情况下,first_cookbook)应该位于名为cookbooks的文件夹内,这是一个很小的问题>

© www.soinside.com 2019 - 2024. All rights reserved.