[chef] Large cookbook uploads fail with "unauthorized" after data upload


Chronological Thread 
  • From: "Jason J. W. Williams" < >
  • To:
  • Subject: [chef] Large cookbook uploads fail with "unauthorized" after data upload
  • Date: Fri, 23 Mar 2012 18:54:41 -0600

Is there a way to get a cookbook with several very large files to
upload via knife without this happening:

Uploading testcookbook             [0.5.0]
<-----Pauses here for about 30 mins while the cookbook uploads 90MB
ERROR: Failed to upload #<Chef::CookbookVersion:0x10178fdf0> : 401 
Unauthorized
{"error":["Failed to authenticate. Please synchronize the clock on
your client"]}
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:48:in
`return!': 401 Unauthorized (RestClient::Request::Unauthorized)
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:220:in
`process_result'
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:169:in
`transmit'
        from 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:543:in
`start'
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in
`transmit'
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in
`execute'
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in
`execute'
        from 
/Library/Ruby/Gems/1.8/gems/rest-client-1.6.1/lib/restclient/resource.rb:72:in
`put'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:134:in
`uploader_function_for'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:25:in
`call'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:25:in
`setup_worker_threads'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:24:in
`loop'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:24:in
`setup_worker_threads'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:23:in
`initialize'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:23:in
`new'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:23:in
`setup_worker_threads'
        from 
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
`map'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:22:in
`each'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:22:in
`map'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:22:in
`setup_worker_threads'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/cookbook_uploader.rb:69:in
`upload_cookbook'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife/cookbook_upload.rb:170:in
`upload'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife/cookbook_upload.rb:103:in
`run'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife/cookbook_upload.rb:94:in
`each'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife/cookbook_upload.rb:94:in
`run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife.rb:391:in
`run_with_pretty_exceptions'
        from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/knife.rb:166:in 
`run'
        from 
/Library/Ruby/Gems/1.8/gems/chef-0.10.8/lib/chef/application/knife.rb:128:in
`run'
        from /Library/Ruby/Gems/1.8/gems/chef-0.10.8/bin/knife:25
        from /usr/bin/knife:19:in `load'
        from /usr/bin/knife:19



Archive powered by MHonArc 2.6.16.

§