Support Questions
Find answers, ask questions, and share your expertise

ambari-agent won't start

New Contributor

INFO 2018-04-26 12:37:00,590 NetUtil.py:62 - Connecting to https://ABC:8440/connection_info INFO 2018-04-26 12:37:00,642 security.py:100 - SSL Connect being called.. connecting to the server ERROR 2018-04-26 12:37:00,645 Controller.py:212 - Unable to connect to: https://ABC:8441/agent/v1/register/ABC Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 165, in registerWithServer ret = self.sendRequest(self.registerUrl, data) File "/usr/lib/python2.6/site-packages/ambari_agent/Controller.py", line 496, in sendRequest raise IOError('Request to {0} failed due to {1}'.format(url, str(exception))) IOError: Request to https://ABC:8441/agent/v1/register/ABC failed due to [Errno 0] Error ERROR 2018-04-26 12:37:00,645 Controller.py:213 - Error:Request to https://ABC:8441/agent/v1/register/ABC failed due to [Errno 0] Error WARNING 2018-04-26 12:37:00,645 Controller.py:214 - Sleeping for 8 seconds and then trying again

4 REPLIES 4

Re: ambari-agent won't start

Mentor

@anil vure
Can you add this option to security section in ambari-agent.ini in all the hosts in the cluster,then restart the agents

[security] 
force_https_protocol=PROTOCOL_TLSv1_2

On the Ambari Server host, open /etc/ambari-server/conf/ambari.properties with a text editor. Add the following property:

security.server.two_way_ssl = true

Please revert

Re: ambari-agent won't start

New Contributor

it looks like openssl bug

~> openssl s_client -connect ABC:8441 depth=0 C = AU, ST = Some-State, O = Internet Widgits Pty Ltd verify error:num=18:self signed certificate verify return:1 depth=0 C = AU, ST = Some-State, O = Internet Widgits Pty Ltd verify return:1 139814322067088:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:184:

Re: ambari-agent won't start

Mentor

@anil vure

Do the below for Ambari not to verify the SSL

echo -e "[https]\nverify=disable" > /etc/python/cert-verification.cfg

Change file permission

chmod 644 /etc/python/cert-verification.cfg 

Start the Ambari service

Re: ambari-agent won't start

New Contributor

using SLES 12 SP1 there is no cert-verification.cfg... downgraded to python 2.7.9 and that solved the problem