[chef] Re: Re: Re: 403 "Forbidden" when uploading cookbooks with large files


Chronological Thread 
  • From: Tomasz Chmielewski < >
  • To:
  • Subject: [chef] Re: Re: Re: 403 "Forbidden" when uploading cookbooks with large files
  • Date: Tue, 22 Apr 2014 02:31:28 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=wpkg.org; h=date:from:to :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=wkm W4TxUAjU4XpW+DBkMAMD9jFrjeQyzODLgPnmTnkjiA+PTjU97gJtPnZdrjulPwxw s8eW/E4QgQJhDFzgaLIcmel4/Tm/7knUeGIzjCPMqwWtU/Q0Hz60g0BQqW940C+q BG1OFqK/sRMrWqb2Bx38Pfd5WXwa1DIaLZODKzks=

On Tue, 22 Apr 2014 02:00:08 +0100
Tomasz Chmielewski 
< >
 wrote:

> The file I'm uploading is a static file and is unlikely to change in
> the future.

Or this:

$ time knife cookbook upload mmaww-staging
Uploading mmaww-staging  [1.0.0]
ERROR: Chef::Exceptions::ContentLengthMismatch: Response body length 0
does not match HTTP Content-Length header 206.

real    21m23.216s
user    0m6.249s
sys     0m3.728s


The error seems to be coming from nginx now - I can see the following
in /var/log/chef-server/nginx/error.log:

2014/04/22 01:22:31 [error] 22184#0: *13 readv() failed (104:
Connection reset by peer) while reading upstream, client:
188.37.253.127, server: chef01.sys, request:
"PUT 
/bookshelf/organization-00000000000000000000000000000000/checksum-95d55edf3a75d5358a424d843c3e8463?AWSAccessKeyId=...&Expires=1398129373&Signature=.../%2B1V2w%3D
HTTP/1.1", upstream:
"http://127.0.0.1:4321/bookshelf/organization-00000000000000000000000000000000/checksum-95d55edf3a75d5358a424d843c3e8463?AWSAccessKeyId=...&Expires=1398129373&Signature=.../%2B1V2w%3D";,
host: "chef01.sys.timedoctor.com:443"


What do I need to change so that Chef accepts files which are 100-200
MB in size?

-- 
Tomasz Chmielewski
http://wpkg.org




Archive powered by MHonArc 2.6.16.

§