Hi all,
I am trying to learn about chef-solo. I have successfully run a recipe using it. Now, I am moving further and learning my way with knife. I have an Ubuntu 12.04 machine. I am trying to bootstrap the same node (on which chef is installed). I am completely newbie in this area, and couldn't find much help on internet. I want to run some cookbooks that need to add a role to a node.
As it's an experimental setup, I want to assign the role to the same node. I understand I need to bootstrap the node first. But when I try to run "knife bootstrap node", I get the following error:
peeyush-virtual-machine Starting Chef Client, version
11.8.2
peeyush-virtual-machine Creating a new client identity for peeyush-virtual-machine using the validator key.
peeyush-virtual-machine [2014-01-09T15:01:25+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 1/5
peeyush-virtual-machine [2014-01-09T15:01:30+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 2/5
peeyush-virtual-machine [2014-01-09T15:01:35+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 3/5
peeyush-virtual-machine [2014-01-09T15:01:40+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 4/5
peeyush-virtual-machine
[2014-01-09T15:01:45+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 5/5
peeyush-virtual-machine
peeyush-virtual-machine ================================================================================
peeyush-virtual-machine Chef encountered an error attempting to create the client "peeyush-virtual-machine"
peeyush-virtual-machine ================================================================================
peeyush-virtual-machine
peeyush-virtual-machine
peeyush-virtual-machine Network Error:
peeyush-virtual-machine --------------
peeyush-virtual-machine There was a network error connecting to the Chef Server:
peeyush-virtual-machine Connection refused - Connection refused connecting to http://peeyush-virtual-machine:443/clients, giving up
peeyush-virtual-machine
peeyush-virtual-machine
peeyush-virtual-machine
peeyush-virtual-machine Relevant Config Settings:
peeyush-virtual-machine -------------------------
peeyush-virtual-machine chef_server_url "http://peeyush-virtual-machine:443"
peeyush-virtual-machine
peeyush-virtual-machine If your chef_server_url is correct, your network could be
down.
peeyush-virtual-machine
peeyush-virtual-machine
peeyush-virtual-machine
peeyush-virtual-machine [2014-01-09T15:01:50+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
peeyush-virtual-machine Chef Client failed. 0 resources updated
peeyush-virtual-machine [2014-01-09T15:01:50+05:30] ERROR: Connection refused - Connection refused connecting to http://peeyush-virtual-machine:443/clients, giving up
peeyush-virtual-machine [2014-01-09T15:01:50+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Can anyone please help me resolve this
error?
Thanks,
Peeyush Gupta