I am completely new to chef and have been following step by step instructions from tryazuremarketplace.com for setting up and configuring a chef server and have hit a snag. I set up a chef server on Azure and everything seems fine however when trying to upload the chef cookbook according to the instructions I keep getting an error. ** I installed the client software on my Mac** and set up everything according to the instructions and the remote Chef Server is on Windows Azure and all looks fine, not sure if I have to do this from a windows machine or not. When I enter the command :
**knife cookbook upload learn_chef_iis **
I keep getting the following error
knife encountered an unexpected error
This may be a bug in the ‘cookbook upload’ knife command or plugin
Please collect the output of this command with the -VV
option before filing a bug report.
Exception: NoMethodError: undefined method `length’ for nil:NilClass
I even tried uploading a different cookbook and got the same thing, when I do the same command with the -VV options I get (knife cookbook upload learn_chef_iis -VV) I get
**INFO: Using configuration from /Users/adrienne1/chef-repo/.chef/knife.rb
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 adrienne1
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://abchefsrv.cloudapp.net/organizations/azurechef/cookbooks?num_versions=all
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: adrienne1
DEBUG: X-OPS-TIMESTAMP: 2016-01-18T18:36:07Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: EgKYXUzJfozh+gXwvMb2voV3fOzUFrdsF7ZXr61Au6EKgLHkXeBk4eiTD+AM
DEBUG: X-OPS-AUTHORIZATION-2: 95QpHxNcmqg/ghegedAzhAyyeCP+UMVSczJughBeegWQUNqwTYkezURM6+//
DEBUG: X-OPS-AUTHORIZATION-3: dvp32Ig9VcXOhEZ+TzdBggDmsL7uq7CoSts/EPVLJoZifIweGgMxVL/HvfKs
DEBUG: X-OPS-AUTHORIZATION-4: jhbum1ChvwW9hdbSlTPREPqwVzm9pwXZlV6Ord6A38IX3iGwr7Bh0O6NlZLv
DEBUG: X-OPS-AUTHORIZATION-5: rEIEBwhPtX7plPg31Ts4RjeCQocRlme1diQ4fT3mELKfSjGFgznOpvpnsmrW
DEBUG: X-OPS-AUTHORIZATION-6: bFyC7AdGK5yTGmNWwqnE1QikMWH1oITMgrzJTZSJZw==
DEBUG: HOST: abchefsrv.cloudapp.net:443
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-REMOTE-REQUEST-ID: acfed2e2-b4b3-4ab7-a69d-0ffa943178b0
DEBUG: ---- End HTTP Request Header Data ----
/opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:214:in verify_wildcard': undefined method
length’ for nil:NilClass (NoMethodError)
from /opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:196:in verify_hostname' from /opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:161:in
block in verify_certificate_identity’
from /opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:159:in each' from /opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:159:in
verify_certificate_identity’
from /opt/chef/embedded/lib/ruby/2.1.0/openssl/ssl.rb:231:in post_connection_check' from /opt/chef/embedded/lib/ruby/2.1.0/net/http.rb:925:in
connect’
from /opt/chef/embedded/lib/ruby/2.1.0/net/http.rb:863:in do_start' from /opt/chef/embedded/lib/ruby/2.1.0/net/http.rb:852:in
start’
from /opt/chef/embedded/lib/ruby/2.1.0/net/http.rb:1375:in request' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http/basic_client.rb:65:in
request’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:275:in block in send_http_request' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:307:in
block in retrying_http_errors’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:305:in loop' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:305:in
retrying_http_errors’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:269:in send_http_request' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/http.rb:144:in
request’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/rest.rb:120:in get' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/cookbook_version.rb:570:in
list_all_versions’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/knife/cookbook_upload.rb:103:in run' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/knife.rb:419:in
block in run_with_pretty_exceptions’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/local_mode.rb:44:in with_server_connectivity' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/knife.rb:418:in
run_with_pretty_exceptions’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/knife.rb:212:in run' from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/lib/chef/application/knife.rb:142:in
run’
from /opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.6.0/bin/knife:25:in <top (required)>' from /usr/local/bin/knife:54:in
load’
from /usr/local/bin/knife:54:in `’
**
I am uploading from Macintosh HD>Users>adrienne1>chef-repo in my terminal window and not sure if the reason for my problem is because I am doing this from a mac or not.
Because I am completely new to Chef I am not sure what this means or what I should do, been stuck for awhile and have not been able to find any answers.