Frage

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.
War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top