[chef] Error Uploading Cookbooks


Chronological Thread 
  • From: Mark Pimentel < >
  • To:
  • Subject: [chef] Error Uploading Cookbooks
  • Date: Thu, 13 Dec 2012 10:42:44 -0500

I am getting an error uploading cookbooks to a freshly installed chef-server 10.16.2 to an centos 6.3 box.  Not so sure why it is trying to write to the gem directory.  Would that have something to do with the fact it cannot write to that location?

Any idea?

DEBUG: Using configuration from /root/.chef/knife.rb
DEBUG: No chefignore file found at /root/chef-repo/cookbooks/chefignore no files will be ignored
DEBUG: Signing the request as markp
DEBUG: Sending HTTP Request via GET to hq-tor-chef.quickplay.local:443/cookbooks
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.0.15
DEBUG: date: Thu, 13 Dec 2012 15:19:50 GMT
DEBUG: content-type: application/json; charset=utf-8
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: ---- End HTTP Status/Header Data ----
Uploading site         [0.1.0]
INFO: Validating ruby files
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/attributes/default.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/metadata.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/recipes/nfs.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/.chef/../chef-repo/cookbooks/site/recipes/default.rb is unchanged, skipping syntax check
INFO: Validating templates
INFO: Syntax OK
INFO: Saving site
DEBUG: Signing the request as markp
DEBUG: Sending HTTP Request via POST to hq-tor-chef.quickplay.local:443/sandboxes
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: server: nginx/1.0.15
DEBUG: date: Thu, 13 Dec 2012 15:19:50 GMT
DEBUG: content-type: application/json; charset=utf-8
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: ---- End HTTP Status/Header Data ----
INFO: Uploading files
INFO: Uploading /root/chef-repo/cookbooks/site/recipes/nfs.rb (checksum hex = 8ed03d6cab76d23d9a287cdf85ba99ac) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/8ed03d6cab76d23d9a287cdf85ba99ac
INFO: Uploading /root/chef-repo/cookbooks/site/recipes/default.rb (checksum hex = 40319a324ba808cf84b192b14126efb0) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/40319a324ba808cf84b192b14126efb0
INFO: Uploading /root/chef-repo/cookbooks/site/attributes/default.rb (checksum hex = 53e43bdeca8ac48ecb5540663cb657ca) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/53e43bdeca8ac48ecb5540663cb657ca
INFO: Uploading /root/chef-repo/cookbooks/site/metadata.rb (checksum hex = 868ce5688c78fbae0c460380132927c5) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/868ce5688c78fbae0c460380132927c5
INFO: Uploading /root/chef-repo/cookbooks/site/README.md (checksum hex = f3ea896f400a1e1d9fd93473e59fd5d2) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/f3ea896f400a1e1d9fd93473e59fd5d2
INFO: Uploading /root/chef-repo/cookbooks/site/metadata.json (checksum hex = 44fa6e9bc46b13182d346bdc7965ed00) to https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522/44fa6e9bc46b13182d346bdc7965ed00
ERROR: Failed to upload  : 500 Internal Server Error
{"error":["No such file or directory - /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121213-1682-gaapdy.lock"]}ERROR: Failed to upload  : 500 Internal Server Error
{"error":["No such file or directory - /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121213-1682-d1fbej.lock"]}ERROR: Failed to upload  : 500 Internal Server Error
{"error":["No such file or directory - /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121213-1682-11cwthf.lock"]}

ERROR: Failed to upload  : 500 Internal Server Error
{"error":["No such file or directory - /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-server-api-10.16.2/sandbox20121213-1682-1fpa2me.lock"]}

/opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!': 500 Internal Server Error (RestClient::InternalServerError)
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
from /opt/ruby/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:in `put'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:142:in `block in uploader_function_for'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:25:in `call'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:25:in `block (3 levels) in setup_worker_threads'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:24:in `loop'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:24:in `block (2 levels) in setup_worker_threads'

--
Thanks,

Mark



Archive powered by MHonArc 2.6.16.

§