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


Chronological Thread 
  • From: Stephen Delano < >
  • To: " " < >
  • Subject: [chef] Re: Re: 403 "Forbidden" when uploading cookbooks with large files
  • Date: Tue, 22 Apr 2014 07:46:18 -0700

Hello there,

It appears that you haven't actually reset your s3_url_ttl value. 

Here's a bit of exploration into the expiry times:

irb(main):008:0> t1 = DateTime.parse("22/Apr/2014 09:51:17 +0000").to_time
=> 2014-04-22 02:51:17 -0700
irb(main):009:0> t2 = Time.at(1398159865)
=> 2014-04-22 02:44:25 -0700
irb(main):010:0> t1 < t2
=> false

The runtime of your upload is 22 mins, and the expiry is 7 prior to the failed request, which leaves the ttl at 900s, not the 1800 that you said intended to change it to.

Did you simply change it in the chef_server_running.json file? That won't fully do the trick, in fact, that's just a state dump of the running server once it's been configured, so manually changing values there won't help.

Follow the guide on this page (linked directly to the value to change - http://docs.opscode.com/config_rb_chef_server.html#erchef) for updating /etc/chef-server/chef-server.rb and reconfiguring your server.

HTH!


On Tue, Apr 22, 2014 at 5:14 AM, Tomasz Chmielewski < " target="_blank"> > wrote:
On 2014-04-22 11:04, Tomasz Chmielewski wrote:

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:

(...)

If I upload the cookbooks from a location with a faster link, it works fine.

So the problem basically is a combination of a file which is large enough and/or a link which is slow enough; it would be great if a task like cookbook uploading success or failure didn't depend on on these factors (at least, not so much, or give a clear explanation and a possible fix).



--
Tomasz Chmielewski
http://wpkg.org




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


Archive powered by MHonArc 2.6.16.

§