[chef] Re: ERROR: No socketless chef-zero server


Chronological Thread 
  • From: Sushant Sonker < >
  • To: Christine Draper < >
  • Cc:
  • Subject: [chef] Re: ERROR: No socketless chef-zero server
  • Date: Sun, 3 May 2015 01:32:11 -0400

Can you paste your knife bootstrap command? and also your knife.rb? Some obvious things to check which you probably might have already verified...

Did you try running the chef-zero  run with log_level debug?

Are you using any other name for the host other than localhost?

Your /etc/hosts does have localhost bound to 127.0.0.1

This is unlikely, but is it possible you attempted too many runs of your chef-zero run?


On Sat, May 2, 2015 at 5:41 PM, Christine Draper < " target="_blank"> > wrote:
I'm getting the following using chef-client 12.3 with chef-zero 4.2.1:

ERROR: No socketless chef-zero server on given port 8889

I have a centos VM running under Vagrant, on a private network. I then run chef-zero on the same private network:

chef-zero -H 10.0.5.1

And use knife to bootstrap. The run fails when trying to create the client with the following stacktrace:

ChefZero::ServerNotFound: No socketless chef-zero server on given port 8889
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.2.1/lib/chef_zero/socketless_server_map.rb:78:in `request'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-zero-4.2.1/lib/chef_zero/socketless_server_map.rb:33:in `request'
/opt/chef/embedded/apps/chef/lib/chef/http/socketless_chef_zero_client.rb:153:in `request'
<snip>

I tried running chef-client with both --no-listen and --listen, but got the same error in both cases.

Any ideas?

Thanks,
Christine Draper




Archive powered by MHonArc 2.6.16.

§