'Error in running the recipe created in cookbook
I was running chef-client -zr "recipe[test-cookbook::test-recipe]" for running my recipe but got the following error
[2022-02-23T14:32:06+00:00] WARN: No config file found or specified on command line. Using command line options instead.
Error Resolving Cookbooks for Run List:
Missing Cookbooks:
No such cookbook: test-cookbook
Expanded Run List:
* test-cookbook::test-recipe
System Info:
chef_version=17.9.52
platform=amazon
platform_version=2
ruby=ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]
program_name=/bin/chef-client
executable=/opt/chef-workstation/bin/chef-client
Running handlers:
[2022-02-23T14:32:09+00:00] ERROR: Running exception handlers
Running handlers complete
[2022-02-23T14:32:09+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 02 seconds
[2022-02-23T14:32:09+00:00] FATAL: Stacktrace dumped to /root/.chef/local-mode-
cache/cache/chef-stacktrace.out
[2022-02-23T14:32:09+00:00] FATAL: ---------------------------------------------------
------------------------------------
[2022-02-23T14:32:09+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out
FILE (above) IF YOU FILE A BUG REPORT
[2022-02-23T14:32:09+00:00] FATAL: --------------------------------------------------
-------------------------------------
[2022-02-23T14:32:09+00:00] FATAL: Net::HTTPServerException: 412 "Precondition
Failed"
Please can someone help me with this
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
