Error Uploading Cookbooks

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: location:
https://hq-tor-chef.quickplay.local/sandboxes/e68100f1e27b46b689768f695bf03522
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:inprocess_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:instart’
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:inexecute’
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:input’
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:incall’
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:inloop’
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

On Thursday, December 13, 2012 at 7:42 AM, Mark Pimentel wrote:

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?

Can you post your server.rb? Do you have any custom setting for sandbox_path or checksum_path?

--
Daniel DeLeo

What ever the bootstrap created is what is there.
When I changed the ownership of the chef-server-api-10.16.2 gem dir to chef
user, it worked. But I am still concerned as to why it would want to write
there in the first place.

Chef Server Config File

Dynamically generated by Chef - local modifications will be replaced

log_level :info
log_location STDOUT
chef_server_url "http://localhost:4000"
file_cache_path "/var/cache/chef"
sandbox_path "/var/cache/chef/sandboxes"
checksum_path "/var/lib/chef/cookbook_index"
node_path "/var/lib/chef/node"
cookbook_tarball_path "/var/lib/chef/cookbook-tarballs"

validation_client_name "chef-validator"

web_ui_admin_user_name "admin"

supportdir = "/var/lib/chef"
solr_jetty_path File.join(supportdir, "solr", "jetty")
solr_data_path File.join(supportdir, "solr", "data")
solr_home_path File.join(supportdir, "solr", "home")
solr_heap_size "256M"

solr_url "http://localhost:8983"

umask 0022

signing_ca_cert "/etc/chef/certificates/cert.pem"
signing_ca_key "/etc/chef/certificates/key.pem"
signing_ca_user "chef"
signing_ca_group "chef"

On Thu, Dec 13, 2012 at 2:00 PM, Daniel DeLeo dan@kallistec.com wrote:

On Thursday, December 13, 2012 at 7:42 AM, Mark Pimentel wrote:

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?

Can you post your server.rb? Do you have any custom setting for
sandbox_path or checksum_path?

--
Daniel DeLeo

--
Thanks,

Mark