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


Chronological Thread 
  • From: Tomasz Chmielewski < >
  • To: Stephen Delano < >
  • Cc: Lamont Granquist < >,
  • Subject: [chef] Re: Re: Re: Re: 403 "Forbidden" when uploading cookbooks with large files
  • Date: Tue, 22 Apr 2014 21:48:07 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=wpkg.org; h=to:subject :mime-version:content-type:date:from:cc:in-reply-to:references :message-id:content-transfer-encoding; q=dns; s=default; b=BXNwe bkNZhDUJQAvSv91btk0rnjtaivTsq6Nk6L2S4higgq9zMd30Wgokd+VE1Z/9kyT2 bnMxSAMwF1C5OGt5ynqx+VH8Pu3g0ZMWIQ5Mks1+wxek4iV1sc2uM/L2ETzByhuc urwIFpMw9FVIT8PVaVaO+ElEKNe5Fa5IMx5Vds=

I've uploaded from a faster location, and I hope I won't be needing to do large uploads again :) (and if I need to, I'll follow your advices and use an external server to store the files).


--
Tomasz Chmielewski
http://wpkg.org


On 2014-04-22 20:05, Stephen Delano wrote:
Did the configuration changes help?

On Tue, Apr 22, 2014 at 11:50 AM, Lamont Granquist
< >
 wrote:

On 4/22/14, 3:04 AM, Tomasz Chmielewski wrote:
On Mon, 21 Apr 2014 21:00:54 -0700
Lamont Granquist 
< >
 wrote:

On 4/21/14, 6:00 PM, Tomasz Chmielewski wrote:
ERROR: Chef::Exceptions::ContentLengthMismatch: Response body
length 0 does not match HTTP Content-Length header 206.

try updating chef on your desktop.  if you're running 11.12.2 and
seeing this, then you'd need to cut a bug report, but we'd need
more
information like output of knife cookbook upload -V and as much
context as you can give.
 Hi,

 I'm running 11.12.2 already:

 $ dpkg -l|grep chef
 ii  chef                                        
         11.12.2-1                              
            amd64        The full stack of chef

 Here is the output with -V:

 $ time knife cookbook upload mmaww-staging -V
 Uploading mmaww-staging  [1.0.0]
 INFO: Validating ruby files
 INFO: Validating templates
 INFO: Syntax OK
 INFO: Saving mmaww-staging
 INFO: Uploading files
 INFO: Uploading
/home/tch/Desktop/.../chef-repo/cookbooks/mmaww-staging/files/default/mysql-setup.sh
(checksum hex = 4160124bf8a905a0e5dc1aa419135909) to
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-4160124bf8a905a0e5dc1aa419135909?AWSAccessKeyId=...&Expires=1398159865&Signature=YNVBVPwN82OPwmiOgy41VmQB1jw%3D
[1]
 INFO: Uploading
/home/tch/Desktop/.../chef-repo/cookbooks/mmaww-staging/files/default/mongo-setup.sh
(checksum hex = 8abcd332a3bb0d3d284dbe0d83322fde) to
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-8abcd332a3bb0d3d284dbe0d83322fde?AWSAccessKeyId...&Expires=1398159865&Signature=DBHn7Bp8fo16o9CQ%2Bg8gDdIQhH0%3D
[2]
 INFO: Uploading
/home/tch/Desktop/.../chef-repo/cookbooks/mmaww-staging/files/default/mongo-td_stage.tar.xz
(checksum hex = 95d55edf3a75d5358a424d843c3e8463) to
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-95d55edf3a75d5358a424d843c3e8463?AWSAccessKeyId=...&Expires=1398159865&Signature=kXJpijoKemcQZA96ZVJydQG1JVc%3D
[3]
 INFO: Uploading
/home/tch/Desktop/.../chef-repo/cookbooks/mmaww-staging/recipes/default.rb
(checksum hex = 9cb5ef6dbb6db3811a1108ac5f990efc) to
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-9cb5ef6dbb6db3811a1108ac5f990efc?AWSAccessKeyId=...&Expires=1398159865&Signature=GgeSQKQ373PW1lWTpWOE%2BC3RfkU%3D
[4]
 INFO: HTTP Request Returned 403 Forbidden:
 ERROR: Chef::Exceptions::ContentLengthMismatch: Response body length
0 does not match HTTP Content-Length header 206.

 Can you try 'knife --version' and see if you're picking up knife from
a different location than your omnibus chef install?

--
Stephen Delano
Software Development Engineer
Opscode, Inc.
1008 Western Avenue
Suite 601
Seattle, WA 98104

Links:
------
[1]
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-4160124bf8a905a0e5dc1aa419135909?AWSAccessKeyId=...&amp;Expires=1398159865&amp;Signature=YNVBVPwN82OPwmiOgy41VmQB1jw%3D
[2]
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-8abcd332a3bb0d3d284dbe0d83322fde?AWSAccessKeyId...&amp;Expires=1398159865&amp;Signature=DBHn7Bp8fo16o9CQ%2Bg8gDdIQhH0%3D
[3]
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-95d55edf3a75d5358a424d843c3e8463?AWSAccessKeyId=...&amp;Expires=1398159865&amp;Signature=kXJpijoKemcQZA96ZVJydQG1JVc%3D
[4]
https://chef01.sys:443/bookshelf/organization-00000000000000000000000000000000/checksum-9cb5ef6dbb6db3811a1108ac5f990efc?AWSAccessKeyId=...&amp;Expires=1398159865&amp;Signature=GgeSQKQ373PW1lWTpWOE%2BC3RfkU%3D


--
Tomasz Chmielewski




Archive powered by MHonArc 2.6.16.

§