Yesterday got this error on Chef server. As this is a quick pro-tip, let's take a look at the solution:
- Delete all cookbooks with the problem:
# knife cookbook delete --purge <cookbook> # knife cookbook bulk delete --purge '.+'
- Once deleted, add them again:
# knife cookbook upload -a
Go to have a cup of tea. It will take some time depending on the amount of cookbooks you have.