[chef] Help with HTTP Content-Length header issue?


Chronological Thread 
  • From: "Fouts, Chris" < >
  • To: " " < >
  • Subject: [chef] Help with HTTP Content-Length header issue?
  • Date: Fri, 15 May 2015 22:52:51 +0000
  • Accept-language: en-US

I have a cookbook that uses a remote file resource to get a file from an nginx file server, like this. The server is NOT configured for gzip-like compression.

 

remote_file "/tmp/vcredist_x64-1.0.2013.exe" do

   source " http://nginx-server/path/ vcredist_x64-1.0.2013.exe "

end

 

When I run it I get…

 

================================================================================

Error executing action `create` on resource 'remote_file[c:\windows\temp\chef-client\vcredist_x64-1.0.2013.exe]'

================================================================================

Chef::Exceptions::ContentLengthMismatch

---------------------------------------

Response body length 1592008 does not match HTTP Content-Length header 2155670.

 

What’s strange is this has been working, and my cookbook has NOT changed in months. I did upgrade to chef-client 12.3.0, so I tried 12.2.1, but that gives the same error.

 

Any clues?




Archive powered by MHonArc 2.6.16.

§