Last Updated: February 25, 2016
· boris

Chef: EOFError - end of file reached

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.

1 Response
Add your response

Tried it, didn't work for me! Do you have any other idea to solve this?

over 1 year ago ·