Hi,
I have installed chef-server v12.2.0.
When I run chef-client for the first time on a new node to bootstrap it I
get following output:
Creating a new client identity for node01.something using the validator
key.[2015-09-16T12:01:15+02:00] INFO: Client key /etc/chef/client.pem is
not present - registering[2015-09-16T12:01:15+02:00] INFO: HTTP Request
Returned 401 Unauthorized:
error================================================================================Chef
encountered an error attempting to create the client
"node01.something"================================================================================Authentication
Error:---------------------Failed to authenticate to the chef server (http
401).Server Response:----------------Invalid signature for user or client
’ORG-validator’Relevant Config
Settings:-------------------------chef_server_url
"https://chef.something/organizations/ORG https://chef.something/organizations/ORG"validation_client_name
"ORG-validator"validation_key "/etc/chef/validation.pem"If these
settings are correct, your validation_key may be invalid.
validation client name is the name I got from when I created organization
ORG.
validation key is the from ORG-validator.
Hi,
I have installed chef-server v12.2.0.
When I run chef-client for the first time on a new node to bootstrap it I
get following output:
Creating a new client identity for node01.something using the validator
key.[2015-09-16T12:01:15+02:00] INFO: Client key /etc/chef/client.pem is
not present - registering[2015-09-16T12:01:15+02:00] INFO: HTTP Request
Returned 401 Unauthorized:
error================================================================================Chef
encountered an error attempting to create the client
"node01.something"================================================================================Authentication
Error:---------------------Failed to authenticate to the chef server (http
401).Server Response:----------------Invalid signature for user or client
'ORG-validator'Relevant Config
Settings:-------------------------chef_server_url
"https://chef.something/organizations/ORG https://chef.something/organizations/ORG"validation_client_name
"ORG-validator"validation_key "/etc/chef/validation.pem"If these
settings are correct, your validation_key may be invalid.
validation client name is the name I got from when I created organization
ORG.
validation key is the from ORG-validator.
Hi,
I have installed chef-server v12.2.0.
When I run chef-client for the first time on a new node to bootstrap it I
get following output:
Creating a new client identity for node01.something using the validator
key.[2015-09-16T12:01:15+02:00] INFO: Client key /etc/chef/client.pem is
not present - registering[2015-09-16T12:01:15+02:00] INFO: HTTP Request
Returned 401 Unauthorized:
error================================================================================Chef
encountered an error attempting to create the client
"node01.something"================================================================================Authentication
Error:---------------------Failed to authenticate to the chef server (http
401).Server Response:----------------Invalid signature for user or client
'ORG-validator'Relevant Config
Settings:-------------------------chef_server_url
"https://chef.something/organizations/ORG https://chef.something/organizations/ORG"validation_client_name
"ORG-validator"validation_key "/etc/chef/validation.pem"If these
settings are correct, your validation_key may be invalid.
validation client name is the name I got from when I created organization
ORG.
validation key is the from ORG-validator.
I have a similar issue and tried even creating a new organization and validator file but no luck. Can someone please help as to what else could be the issue. Knife is working fine and its only while trying to connect a client/node we are facing this issue.
One key thing I noticed is the org-validator.pem which is on server and the one I have on node has varied MD5 checksum. I am using the following command to find that:
openssl rsa -noout -modulus -in org-validator.pem | openssl md5
Although I am copying the same .pem file from server but when I check the checksum on client it shows a different one.
The logs anyways are:
PS H:.chef> chef-client -c .\client.rb
Starting Chef Client, version 12.16.42
[2017-06-19T19:13:07+10:00] INFO: *** Chef 12.16.42 ***
[2017-06-19T19:13:07+10:00] INFO: Platform: i386-mingw32
[2017-06-19T19:13:07+10:00] INFO: Chef-client pid: 118952
[2017-06-19T19:16:24+10:00] INFO: HTTP Request Returned 401 Unauthorized: error
================================================================================
Chef encountered an error attempting to load the node data for “chefpilottest”
Authentication Error:
Failed to authenticate to the chef server (http 401).
Server Response:
Failed to authenticate as ‘chefpilottest’. Ensure that your node_name and client key are correct.
Did u copied correct pem file? Also try to ping chef server url from the node. If it is not pinging add entry in /etc/hosts with chef server ip and hostname.