对xmledit食谱中创建的配方执行chef-client -l debug
时,会收到一条消息No connection could be made because the target machine actively refusing it
。
在配方上执行chef-client --local-mode
后会收到No method error: Undefined method "xmledit"
。
实际结果:- URI::InvalidURIError: bad URI(is not URI?): https://api.chef.io/organizations/<orgname>
URI::InvalidURIError: bad URI(is not URI?): https://api.chef.io/organizations/
C:/opscode/chefdk/embedded/lib/ruby/2.5.0/uri/rfc3986_parser.rb:67:in split' C:/opscode/chefdk/embedded/lib/ruby/2.5.0/uri/rfc3986_parser.rb:73:in parse'
C:/opscode/chefdk/embedded/lib/ruby/2.5.0/uri/common.rb:237:in parse' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/http.rb:492:in chef_zero_uri?'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/server_api.rb:38:in initialize' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/api_client/registration.rb:158:in new'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/api_client/registration.rb:158:in http_api' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/api_client/registration.rb:104:in create'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/api_client/registration.rb:95:in create_or_update' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/api_client/registration.rb:59:in run'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/client.rb:671:in register' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/client.rb:264:in run'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/application.rb:303:in run_with_graceful_exit_option' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/application.rb:279:in block in run_chef_client'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/local_mode.rb:44:in with_server_connectivity' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/application.rb:261:in run_chef_client'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/application/client.rb:440:in run_application' C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/lib/chef/application.rb:66:in run'
C:/opscode/chefdk/embedded/lib/ruby/gems/2.5.0/gems/chef-14.7.17-universal-mingw32/bin/chef-client:25:in <top (required)>' C:/opscode/chefdk/modules/chef/../../bin/chef-client:312:in load'
C:/opscode/chefdk/modules/chef/../../bin/chef-client:312:in `