[RESOLVED] Linux server bootstrap fails


#1

Can any one help me to resolve below problem, I am trying to figure our how i can fix this ssl communication problem.
but when i execute node list and other chef command it works . this error come only at the time of chef upload and bootstrap. Need clue how i can troubleshoot such problem.

Error :-
Creating new client for test
Creating new node for test
Connecting to xx.xx.xx.xx
root@xx.xx.xx.xx's password:
xx.xx.xx.xx -----> Existing Chef installation detected
xx.xx.xx.xx Starting the first Chef Client run...
xx.xx.xx.xx Starting Chef Client, version 14.5.27
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] ERROR: SSL Validation failure connecting to host: chef_server.test.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
xx.xx.xx.xx
xx.xx.xx.xx ================================================================================
xx.xx.xx.xx Chef encountered an error attempting to load the node data for "test.test.com"
xx.xx.xx.xx ================================================================================
xx.xx.xx.xx
xx.xx.xx.xx Unexpected Error:
xx.xx.xx.xx -----------------
xx.xx.xx.xx OpenSSL::SSL::SSLError: SSL Error connecting to https://chef_server.test.com/organizations/testorg/nodes/test.test.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)
xx.xx.xx.xx
xx.xx.xx.xx System Info:
xx.xx.xx.xx ------------
xx.xx.xx.xx chef_version=14.5.27
xx.xx.xx.xx ruby=ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux]
xx.xx.xx.xx program_name=/usr/bin/chef-client
xx.xx.xx.xx executable=/opt/chef/bin/chef-client
xx.xx.xx.xx
xx.xx.xx.xx
xx.xx.xx.xx Running handlers:
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] ERROR: Running exception handlers
xx.xx.xx.xx Running handlers complete
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] ERROR: Exception handlers complete
xx.xx.xx.xx Chef Client failed. 0 resources updated in 02 seconds
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
xx.xx.xx.xx [2018-09-24T01:22:34-04:00] FATAL: OpenSSL::SSL::SSLError: SSL Error connecting to https://chef_server.test.com/organizations/testorg/nodes/test.test.com - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)


#2

I resolved by myself by using option ssl check none, all set now.