Skip to content

Instantly share code, notes, and snippets.

@marcy-terui
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcy-terui/cc11558561a88afd40c9 to your computer and use it in GitHub Desktop.
Save marcy-terui/cc11558561a88afd40c9 to your computer and use it in GitHub Desktop.
Chef::Exceptions::ContentLengthMismatch
  • ~/.ssh/config
Host target
  Hostname xxx.xxx.xxx.xxx
  Port 22
  User root
  ProxyCommand ssh -W %h:%p basion
Host basion
  Hostname xxx.xxx.xxx.xxx
  Port 22
  User foo
  IdentityFile /home/foo/.ssh/basion.pem
  • command
$ bundle exec knife zero chef_client 'name:target' --ssh-user root --attribute machinename
example.com Synchronizing Cookbooks:
example.com - my-python
example.com - hostsfile
example.com - yum
example.com - yum-ius
example.com - yum-pgdg
example.com - python
example.com - build-essential
example.com - my-postgresql <-- Multibyte
example.com - yum-epel <-- Singlebyte
example.com
example.com ================================================================================
example.com Error Syncing Cookbooks:
example.com ================================================================================
example.com
example.com Unexpected Error:
example.com -----------------
example.com Chef::Exceptions::ContentLengthMismatch: Response body length 2096964 does not match HTTP Content-Length header 3417363.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment