3

After I upgraded my chef client on mac to version 11.10.4, I couldn't use knife command to download cookbooks. I have latest knife version and latest xcode 5.1 for Mac. Does anyone know what seem to be the issue?

$ knife cookbook site list
ERROR: Chef::Exceptions::ContentLengthMismatch: Response body length 2219 does not match HTTP Content-Length header 659.

$ knife cookbook site download apt
ERROR: Chef::Exceptions::ContentLengthMismatch: Response body length 2830 does not match HTTP Content-Length header 439.
Nam Nguyen
  • 5,668
  • 14
  • 56
  • 70

1 Answers1

3

This was a reported bug in the latest release of Chef Client https://tickets.opscode.com/browse/CHEF-5100. You can downgrade your Chef installation and the problem will go away.


As pointed out in the comments, this has been fixed in 11.12.0.

sethvargo
  • 26,739
  • 10
  • 86
  • 156