Unable To Create a Chef Node ChefNode2

+1 vote

I am able to ssh and ping ChefNode2 I am stuck with bootstraping node using the below command:

Knife bootstrap chefnodeipaddress -x root -N ChefNode2 

Error looks like this:

Failed to authenticate to the chef server (http 401). Server Response: Failed to authenticate as 'chef-validator'. Ensure that your node_name and client key are correct. Running handlers: [2018-02-15T10:20:25+00:00] ERROR: Running exception handlers Running handlers complete [2018-02-15T10:20:25+00:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 01 seconds [2018-02-15T10:20:25+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2018-02-15T10:20:25+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2018-02-15T10:20:25+00:00] ERROR: 401 "Unauthorized" [2018-02-15T10:20:25+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Mar 27, 2018 in Chef by ffdfd
• 5,550 points
1,573 views

2 answers to this question.

0 votes

I think there is only one problem, you need to provide the password of the Chef Client while bootstraping the node. Kindly use the below command:

knife bootstrap chefnodeipaddress -x root -P PASSWORD --node-name ChefNode2
answered Mar 27, 2018 by Atul
• 10,240 points

edited Oct 16, 2018 by Kalgi
0 votes

Try giving the password to access your node, something like this

$ knife bootstrap chefnodeipaddress -x root -P PASSWORD --node-name ChefNode2
answered Oct 16, 2018 by Kalgi
• 52,350 points

Related Questions In Chef

0 votes
1 answer

How do I Force push a recipe to the end of run_list Iin Chef?

Here is a concept which you can ...READ MORE

answered Aug 7, 2018 in Chef by Damon Salvatore
• 5,980 points
1,161 views
+5 votes
2 answers
0 votes
1 answer

How do I run chef client?

You've kinda answered your own question there. ...READ MORE

answered Jun 14, 2018 in Chef by ajs3033
• 7,300 points
709 views
0 votes
1 answer

Long running chef-client executions

You can try the following steps. Chef Server ...READ MORE

answered Jun 21, 2018 in Chef by shubham
• 7,340 points
684 views
+2 votes
3 answers

Using attributes in Chef

There are 6 different types of attributes: default: A default attribute ...READ MORE

answered Oct 23, 2018 in Chef by Aditya
3,342 views
+3 votes
4 answers

Chef vs puppet

Both chef and puppet have their own ...READ MORE

answered Aug 14, 2018 in Chef by Sahil
1,402 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,034 views
+2 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP