[chef] RE: Re: Error uploading Cookbooks


Chronological Thread 
  • From: Baruch Shpirer < >
  • To: " " < >
  • Subject: [chef] RE: Re: Error uploading Cookbooks
  • Date: Wed, 6 Mar 2013 21:44:03 +0000
  • Accept-language: en-CA, en-US

Attaching some logs while trying to do cookbook upload

 

==> /var/log/chef-server/erchef/current <==

2013-03-06_21:13:49.98214          {webmachine_resource,do,3,

2013-03-06_21:13:49.98214              [{file,"src/webmachine_resource.erl"},{line,125}]},

2013-03-06_21:13:49.98215          {webmachine_decision_core,resource_call,1,

2013-03-06_21:13:49.98215              [{file,"src/webmachine_decision_core.erl"},{line,48}]},

2013-03-06_21:13:49.98215          {webmachine_decision_core,accept_helper,0,

2013-03-06_21:13:49.98216              [{file,"src/webmachine_decision_core.erl"},{line,583}]},

2013-03-06_21:13:49.98216          {webmachine_decision_core,decision,1,

2013-03-06_21:13:49.98216              [{file,"src/webmachine_decision_core.erl"},{line,489}]},

2013-03-06_21:13:49.98217          {webmachine_decision_core,handle_request,2,

2013-03-06_21:13:49.98218              [{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}

 

==> /var/log/chef-server/nginx/access.log <==

192.168.75.74 - - [06/Mar/2013:16:40:58 -0500]  "GET /cookbooks?num_versions=all HTTP/1.1" 200 "0.020" 979 "-" "Chef Knife/0.10.10 (ruby-1.9.2-p180; ohai-0.6.12; x86_64-linux; +http://opscode.com)" "127.0.0.1:8000" "200" "0.013" "0.10.10" "version=1.0" "baruchs" "2013-03-06T21:40:58Z" "2jmj7l5rSw0yVb/vlWAYkK/YBwk=" 940

192.168.75.74 - - [06/Mar/2013:16:40:58 -0500]  "POST /sandboxes HTTP/1.1" 201 "0.070" 752 "-" "Chef Knife/0.10.10 (ruby-1.9.2-p180; ohai-0.6.12; x86_64-linux; +http://opscode.com)" "127.0.0.1:8000" "201" "0.023" "0.10.10" "version=1.0" "baruchs" "2013-03-06T21:40:58Z" "17WVwc7QAnAtCnOlTAlgc5YUZM8=" 1232

192.168.75.74 - - [06/Mar/2013:16:40:58 -0500]  "PUT /bookshelf/organization-00000000000000000000000000000000/checksum-960131de20bb72d55d52df914d73a5e2?AWSAccessKeyId=e849c1918a22eabefc7e7832b27173ab5b93016d&Expires=1362606958&Signature=G5O2Ex3Gz7l0aWmmwyiHRPQFmI0%3D HTTP/1.1" 204 "0.014" 0 "-" "Ruby" "127.0.0.1:4321" "204" "0.007" "-" "version=1.0" "baruchs" "2013-03-06T21:40:58Z" "hZyLgj7RPtRg/pSvY7LOq2Fotrc=" 3573

 

==> /var/log/chef-server/erchef/erchef.log.1 <==

2013-03-06T21:40:58Z INFO req_id=rXyk1ks5Taz5qtOTGtPtuQ==; status=200; method=GET; path=/cookbooks?num_versions=all; user=baruchs; msg=[]; req_time=9; rdbms_time=3; rdbms_count=2

2013-03-06T21:40:58Z INFO req_id=2Qzog7D0fQQx3g3z1KUPZQ==; status=201; method=POST; path=/sandboxes; user=baruchs; msg=[]; req_time=20; rdbms_time=16; rdbms_count=3

 

==> /var/log/chef-server/erchef/current <==

2013-03-06_21:41:03.84624

2013-03-06_21:41:03.84638 =ERROR REPORT==== 6-Mar-2013::16:41:03 ===

2013-03-06_21:41:03.84639 Checking presence of checksum: <<"960131de20bb72d55d52df914d73a5e2">> for org <<"00000000000000000000000000000000">> from bucket "bookshelf" has taken longer than 5000 ms

 

==> /var/log/chef-server/nginx/access.log <==

192.168.75.74 - - [06/Mar/2013:16:41:03 -0500]  "PUT /sandboxes/000000000000be13430442db7a83ab5f HTTP/1.1" 500 "5.059" 36 "-" "Chef Knife/0.10.10 (ruby-1.9.2-p180; ohai-0.6.12; x86_64-linux; +http://opscode.com)" "127.0.0.1:8000" "500" "5.010" "0.10.10" "version=1.0" "baruchs" "2013-03-06T21:40:58Z" "oMRtV6loUDnbKJuGcW6nqBbF8ww=" 1029

 

==> /var/log/chef-server/erchef/current <==

2013-03-06_21:41:03.84851

2013-03-06_21:41:03.84854 =ERROR REPORT==== 6-Mar-2013::16:41:03 ===

2013-03-06_21:41:03.84854 webmachine error: path="/sandboxes/000000000000be13430442db7a83ab5f"

2013-03-06_21:41:03.84855 {error,

2013-03-06_21:41:03.84860     {throw,

2013-03-06_21:41:03.84861         {checksum_check_error,1},

2013-03-06_21:41:03.84862         [{chef_wm_named_sandbox,validate_checksums_uploaded,2,

2013-03-06_21:41:03.84862              [{file,"src/chef_wm_named_sandbox.erl"},{line,144}]},

2013-03-06_21:41:03.84864          {chef_wm_named_sandbox,from_json,2,

2013-03-06_21:41:03.84865              [{file,"src/chef_wm_named_sandbox.erl"},{line,99}]},

2013-03-06_21:41:03.84865          {webmachine_resource,resource_call,3,

2013-03-06_21:41:03.84866              [{file,"src/webmachine_resource.erl"},{line,166}]},

2013-03-06_21:41:03.84867          {webmachine_resource,do,3,

2013-03-06_21:41:03.84867              [{file,"src/webmachine_resource.erl"},{line,125}]},

2013-03-06_21:41:03.84868          {webmachine_decision_core,resource_call,1,

2013-03-06_21:41:03.84869              [{file,"src/webmachine_decision_core.erl"},{line,48}]},

2013-03-06_21:41:03.84869          {webmachine_decision_core,accept_helper,0,

2013-03-06_21:41:03.84870              [{file,"src/webmachine_decision_core.erl"},{line,583}]},

2013-03-06_21:41:03.84871          {webmachine_decision_core,decision,1,

2013-03-06_21:41:03.84871              [{file,"src/webmachine_decision_core.erl"},{line,489}]},

2013-03-06_21:41:03.84872          {webmachine_decision_core,handle_request,2,

2013-03-06_21:41:03.84874              [{file,"src/webmachine_decision_core.erl"},{line,33}]}]}}

 

==> /var/log/chef-server/erchef/erchef.log.1 <==

2013-03-06T21:41:03Z ERR req_id=FOOYERUCt/btbq9O/5AAkg==; status=500; method=PUT; path=/sandboxes/000000000000be13430442db7a83ab5f; user=baruchs; msg=[]; req_time=5007; rdbms_time=3; rdbms_count=2; s3_time=5000; s3_count=1

 

From: Daniel DeLeo [mailto: On Behalf Of Daniel DeLeo
Sent: Wednesday, March 06/03/2013 16:21
To:
Subject: [chef] Re: Error uploading Cookbooks

 

 

On Wednesday, March 6, 2013 at 1:12 PM, Mark Pimentel wrote:

I am trying to upload a cookbook to my Chef 11.0.2 server and I am getting an error.

 

DEBUG: ---- HTTP Status and Header Data: ----

DEBUG: HTTP 1.1 500 Internal Server Error

DEBUG: server: nginx/1.2.3

DEBUG: date: Wed, 06 Mar 2013 20:27:39 GMT

DEBUG: content-type: application/json

DEBUG: content-length: 36

DEBUG: connection: close

DEBUG: x-ops-api-info: flavor=osc;version=11.0.2;erchef=1.2.5

DEBUG: ---- End HTTP Status/Header Data ----

INFO: HTTP Request Returned 500 Internal Server Error: internal service error

ERROR: Server returned error for https://hq-tor-chef.quickplay.local/sandboxes/0000000000001c52a724fedde7f52add, retrying 1/5 in 3s

 

This only occurs on cookbooks, not roles, data_bags etc.

 

--
Thanks,

Mark

Can you get relevant logs with `chef-server-ctl tail` and share them?

 

-- 

Daniel DeLeo

 




Archive powered by MHonArc 2.6.16.

§