Chef::Exceptions::ContentLengthMismatch‏


#1

Hi

in chef 11 when am running magento cookbook from workstation getting below
error. please help me to resolve this issue.

←[32m- create new file /var/chef/cache/magento.tar.gz←[0m←[0m

================================================================================←[0m
←[31mError executing action create on resource
’remote_file[/var/chef/cache/magento.tar.gz]'←[0m

================================================================================←[0m

[0m Chef::Exceptions::ContentLengthMismatch←[0m
---------------------------------------←[0m
Response body length 4042575 does not match HTTP Content-Length header
23019638.←[0m

[0m Resource Declaration:←[0m
---------------------←[0m

In /var/chef/cache/cookbooks/magento/recipes/default.rb

[0m
[0m 87: remote_file "#{Chef::Config[:file_cache_path]}/magento.tar.gz"
do
[0m 88: source node[:magento][:url]
[0m 89: mode 0644
[0m 90: end
[0m 91: execute ‘untar-magento’ do
[0m
[0m Compiled Resource:←[0m
------------------←[0m

Declared in /var/chef/cache/cookbooks/magento/recipes/default.rb:87:in

`from_file’
[0m
[0m remote_file("/var/chef/cache/magento.tar.gz") do
[0m provider Chef::Provider::RemoteFile
[0m action “create”
[0m retries 0
[0m retry_delay 2
[0m guard_interpreter :default
[0m path “/var/chef/cache/magento.tar.gz”
[0m backup 5
[0m atomic_update true
[0m source
[“http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz”]
[0m use_etag true
[0m use_last_modified true
[0m cookbook_name “magento”
[0m recipe_name “default”
[0m mode 420
[0m end
[0m


#2

What version of chef-client?

On Wed Oct 8 01:49:35 2014, pullareddi.y@hotmail.com wrote:

Hi

in chef 11 when am running magento cookbook from workstation getting below
error. please help me to resolve this issue.

←[32m- create new file /var/chef/cache/magento.tar.gz←[0m←[0m

================================================================================←[0m
←[31mError executing action create on resource
’remote_file[/var/chef/cache/magento.tar.gz]'←[0m

================================================================================←[0m

[0m Chef::Exceptions::ContentLengthMismatch←[0m
---------------------------------------←[0m
Response body length 4042575 does not match HTTP Content-Length header
23019638.←[0m

[0m Resource Declaration:←[0m
---------------------←[0m
# In /var/chef/cache/cookbooks/magento/recipes/default.rb
[0m
[0m 87: remote_file “#{Chef::Config[:file_cache_path]}/magento.tar.gz"
do
[0m 88: source node[:magento][:url]
[0m 89: mode 0644
[0m 90: end
[0m 91: execute ‘untar-magento’ do
[0m
[0m Compiled Resource:←[0m
------------------←[0m
# Declared in /var/chef/cache/cookbooks/magento/recipes/default.rb:87:in
`from_file’
[0m
[0m remote_file(”/var/chef/cache/magento.tar.gz") do
[0m provider Chef::Provider::RemoteFile
[0m action “create”
[0m retries 0
[0m retry_delay 2
[0m guard_interpreter :default
[0m path “/var/chef/cache/magento.tar.gz”
[0m backup 5
[0m atomic_update true
[0m source
[“http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz”]
[0m use_etag true
[0m use_last_modified true
[0m cookbook_name “magento”
[0m recipe_name “default”
[0m mode 420
[0m end
[0m