[chef] Knife Zero Bad URI Error


Chronological Thread 
  • From: Andy Theuninck < >
  • To:
  • Subject: [chef] Knife Zero Bad URI Error
  • Date: Thu, 16 Apr 2015 13:01:31 -0500

I'm trying to follow the chef-zero tutorial posted here:
https://www.chef.io/blog/2013/10/31/chef-client-z-from-zero-to-chef-in-8-5-seconds/

I'm running chef 12.0.3 on windows via the chefdk installer.

The various chef-client -z commands all work exactly as described in
the document. Running chef-client -z seems to automatically create a
"nodes" directory in the current working directory with a
<hostname>.json file describing the host. The "knife node list -z"
command returns the computer's hostname. But the knife run_list add
command errors out like this:

PS> knife node run_list add -z recipe[helloworld]
WARNING: No knife configuration file found
ERROR: URI::InvalidURIError: bad URI(is not URI?):
http://localhost:8889/nodes/recipe[helloworld]

The article seems to be missing some basic information about how how
chef-client -z and knife -z interact. It appears I need to someone
make chef-client run its built-in server in the background, but I
can't tell how to do that. chef-zero has a start_background option,
but chef-client -z does not (or at least its not documented here
https://docs.chef.io/ctl_chef_client.html). The relationship between
chef-zero and chef-client -z is also unclear.

I'm having no luck googling any of this stuff. Any hints on what basic
architectural pieces I'm not understanding would be helpful.



Archive powered by MHonArc 2.6.16.

§