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


Chronological Thread 
  • From: Peeyush Gupta < >
  • To: " " < >
  • Subject: [chef] Re: Re: Trouble working with chef-solo
  • Date: Thu, 9 Jan 2014 19:38:16 +0800 (SGT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Ym4fk2wiL2j1CxfxMCTwgNZ9/n4KDl1HPJ5UOSIwUc1U7T+xcZicGrqYNQu+pzwILfvQPQqj9MTm4kSUaFyDx3UYkB7fTmKiBgexwFyUz0Vz7Yjm0RzX9Ks6Pg4HPX2ZPcRchPk3qnEi1zH1MBk3W/I1ddmnMkcX4Rn9GNxeBqA=;

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 < > wrote:
Le 9 janv. 2014 à 11:43, Peeyush Gupta < " target="_blank" href="mailto: "> > 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.

§