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 26, 2018 in Chef by Atul
• 5,530 points
234 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 26, 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
• 37,320 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,490 points
35 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,240 points
22 views
0 votes
1 answer

Long running chef-client executions

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

answered Jun 20, 2018 in Chef by shubham
• 6,870 points
29 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
252 views
+3 votes
4 answers

Chef vs puppet

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

answered Aug 13, 2018 in Chef by Sahil
245 views
+13 votes
2 answers
0 votes
1 answer