Hi,Hi all,
You seem to use http:// and port 443 in the same url, that don’t seem right. it should be https://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.2peeyush-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/5peeyush-virtual-machine [2014-01-09T15:01:30+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 2/5peeyush-virtual-machine [2014-01-09T15:01:35+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 3/5peeyush-virtual-machine [2014-01-09T15:01:40+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 4/5peeyush-virtual-machine [2014-01-09T15:01:45+05:30] ERROR: Connection refused connecting to http://peeyush-virtual-machine:443/clients, retry 5/5peeyush-virtual-machinepeeyush-virtual-machine ================================================================================peeyush-virtual-machine Chef encountered an error attempting to create the client "peeyush-virtual-machine"peeyush-virtual-machine ================================================================================peeyush-virtual-machinepeeyush-virtual-machinepeeyush-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 uppeeyush-virtual-machinepeeyush-virtual-machinepeeyush-virtual-machinepeeyush-virtual-machine Relevant Config Settings:peeyush-virtual-machine -------------------------peeyush-virtual-machine chef_server_url "http://peeyush-virtual-machine:443"peeyush-virtual-machinepeeyush-virtual-machine If your chef_server_url is correct, your network could be down.peeyush-virtual-machinepeeyush-virtual-machinepeeyush-virtual-machinepeeyush-virtual-machine [2014-01-09T15:01:50+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.outpeeyush-virtual-machine Chef Client failed. 0 resources updatedpeeyush-virtual-machine [2014-01-09T15:01:50+05:30] ERROR: Connection refused - Connection refused connecting to http://peeyush-virtual-machine:443/clients, giving uppeeyush-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
Archive powered by MHonArc 2.6.16.