[chef] Error uploading cookbooks


Chronological Thread 
  • From: Mark Pimentel < >
  • To:
  • Subject: [chef] Error uploading cookbooks
  • Date: Wed, 12 Dec 2012 09:09:49 -0500

Just deployed the latest bootstrap chef-server onto a redhat 6.3 node and I get this error when uploading a cookbook:

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 localhost:80/cookbooks
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 301 Moved Permanently
DEBUG: server: nginx/1.0.15
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
DEBUG: content-type: text/html
DEBUG: content-length: 185
DEBUG: connection: close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Following redirect 1/10
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: Wed, 12 Dec 2012 14:07:40 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-repo/cookbooks/site/attributes/default.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/chef-repo/cookbooks/site/metadata.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/chef-repo/cookbooks/site/recipes/nfs.rb is unchanged, skipping syntax check
DEBUG: Ruby file /root/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 localhost:80/sandboxes
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 301 Moved Permanently
DEBUG: server: nginx/1.0.15
DEBUG: date: Wed, 12 Dec 2012 14:07:40 GMT
DEBUG: content-type: text/html
DEBUG: content-length: 185
DEBUG: connection: close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Following redirect 1/10
DEBUG: Signing the request as markp
DEBUG: Sending HTTP Request via GET to hq-tor-chef.quickplay.local:443/sandboxes
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.0.15
DEBUG: date: Wed, 12 Dec 2012 14:07:40 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
/opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/cookbook_uploader.rb:80:in `upload_cookbooks': undefined method `each' for nil:NilClass (NoMethodError)
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:231:in `upload'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:122:in `block in run'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in `each'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/cookbook_upload.rb:119:in `run'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:408:in `run_with_pretty_exceptions'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife.rb:168:in `run'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/application/knife.rb:123:in `run'
from /opt/ruby/lib/ruby/gems/1.9.1/gems/chef-10.16.2/bin/knife:25:in `<top (required)>'
from /opt/ruby/bin/knife:23:in `load'
from /opt/ruby/bin/knife:23:in `<main>'

The install was done over a ruby-1.9.3 compiled from source.

--
Thanks,

Mark



Archive powered by MHonArc 2.6.16.

§