When I run Chef Client, the following exception is thrown:
Starting Chef Client, version 12.17.44
resolving cookbooks for run list: [“compat_resource”, “tomcat”]
Synchronizing Cookbooks:
compat_resource (12.16.3)
tomcat (2.3.4)
Installing Cookbook Gems:
Compiling Cookbooks…
================================================================================
Recipe Compile Error
Chef::Exceptions::RecipeNotFound
could not find recipe default for cookbook compat_resource
…
Chef run process exited unsuccessfully (exit code 1)
What does this message mean and how can I fix it?
tas50
January 15, 2017, 12:21am
#2
Tomcat depends on compat_resource for backwards compatibility with previous versions of chef. It looks like your runlist actually contains compat_resource, which isn’t necessary. The cookbook contains libraries only and doesn’t have a default recipe. Just remove it from your run_list and things should be fine.
-Tim
kkeane
January 15, 2017, 12:40am
#3
Remove compat_resource from your runlist. That cookbook is not meant to be run stand-alone.
Kevin Keane
Whom the IT Pros Call
The NetTech
http://www.4nettech.com
Our values: Privacy, Liberty, Justice
See https://www.4nettech.com/corp/the-nettech-values.html
ok Thanks #tas50 . I will try it.