[chef] Re: Re: Re: Trouble working with chef-solo


Chronological Thread 
  • From: George Miranda < >
  • To: " " < >
  • Subject: [chef] Re: Re: Re: Trouble working with chef-solo
  • Date: Thu, 9 Jan 2014 10:01:53 -0800

Re-posting


On Jan 9, 2014, at 9:43 AM, George Miranda < "> > wrote:

Hi Peeyush,

I think the problem might be that you are trying to use chef-solo and the bootstrap procedure together.  The purpose of ‘knife bootstrap’ is to take a node currently not managed by chef and make it manageable by a chef server.  It appears the setting knife is passing to the node you’re bootstrapping is an invalid URL where there is no chef server.

For chef-solo, there is no native bootstrap method shipped with Chef.  However, you may want to check out matschaffer's 'knife-solo’ plugin[1] which provides a way to bootstrap machines via chef-solo.


-g




On Thu, Jan 9, 2014 at 3:38 AM, Peeyush Gupta < " target="_blank"> > wrote:
HI laradji,

I tried with changing http to https, it's still giving me the same error.

 
~Peeyush Gupta


On Thursday, 9 January 2014 5:04 PM, laradji nacer < " target="_blank"> > wrote:
Le 9 janv. 2014 à 11:43, Peeyush Gupta < " target="_blank"> > a écrit :

Hi all,
Hi,

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:

You seem to use http:// and port 443 in the same url, that don’t seem right. it should be https://


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






--



Archive powered by MHonArc 2.6.16.

§