Could not find recipe default for cookbook compat_resource

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


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?

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.


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
Our values: Privacy, Liberty, Justice

ok Thanks #tas50. I will try it.