[chef] knife cookbook update is not working.


Chronological Thread 
  • From: dharmesh patel < >
  • To:
  • Subject: [chef] knife cookbook update is not working.
  • Date: Fri, 2 Jan 2015 16:33:30 -0700

I am keep getting below error while uploading cookbook.

ERROR: TypeError: can't convert nil into String


C:\Users\XXXXXXl\chef-repo\chef-repo\branches\chef-200>knife cookbook upload weblogic -VV
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dpatel
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: dpatel
DEBUG: X-OPS-TIMESTAMP: 2015-01-02T23:22:39Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: zK2O4E+dv2gdjxbk/itTjp3vxpF/ztkp1so51tZz/UF8IJJ+B5hzi95v+OIk
DEBUG: X-OPS-AUTHORIZATION-2: oANEO9azwNXO3EGXH4KgIVJJgyUxBsK+AdwIZxmGEUTC1RJ3p7xJ6zl2SkWd
DEBUG: X-OPS-AUTHORIZATION-3: ioAwinBH+/GFBoMvW1A0taMk6IeVpmoykXVSO2dJEzrQGJ7dTBMGrwNIm4Vb
DEBUG: X-OPS-AUTHORIZATION-4: ZsvKnpnLZELI8WoF/wYDX6xqSmXW1XKs9rthQLbyAMNNdftmeoTcx9Q1RPVZ
DEBUG: X-OPS-AUTHORIZATION-5: 9zC4Vl7KFFyr2VUgwRHq9x94G3A8ilfD8UB7OGE9aOUwN/xAUMazwyb5ExH2
DEBUG: X-OPS-AUTHORIZATION-6: lBopem5zyRrk8+UABclje/5I2l0vjFYMPvQTb1H5sQ==
DEBUG: X-REMOTE-REQUEST-ID: 9cdce2c7-52db-4aff-9e32-b19ac2970dbb
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: server: nginx/1.0.12
DEBUG: date: Fri, 02 Jan 2015 23:22:42 GMT
DEBUG: content-type: application/json; charset=utf-8
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: status: 200 OK
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: HTTP server did not include a Content-Length header in response, cannot identify truncated downloads.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Uploading weblogic       [0.5.7]
INFO: Validating ruby files
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:58:in `join': can't convert nil into String (TypeErro
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:58:in `include?'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:143:in `validated?'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:118:in `block in untested_ruby_files'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:117:in `reject'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:117:in `untested_ruby_files'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook/syntax_check.rb:151:in `validate_ruby_files'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook_uploader.rb:152:in `block in validate_cookbooks'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook_uploader.rb:149:in `each'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook_uploader.rb:149:in `validate_cookbooks'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/cookbook_uploader.rb:48:in `upload_cookbooks'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife/cookbook_upload.rb:243:in `upload'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife/cookbook_upload.rb:129:in `block in run'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife/cookbook_upload.rb:126:in `each'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife/cookbook_upload.rb:126:in `run'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife.rb:493:in `run_with_pretty_exceptions'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/knife.rb:174:in `run'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/lib/chef/application/knife.rb:139:in `run'
        from C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.16.4-x86-mingw32/bin/knife:25:in `<top (required)>'
        from C:/opscode/chef/bin/knife:23:in `load'
        from C:/opscode/chef/bin/knife:23:in `<main>'


--
Thanks & Regards

Dharmesh Patel




Archive powered by MHonArc 2.6.16.

§