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

Registration with the server failed without any error!

Registration with the server failed without any error!

Explorer

Hello Everyone,

We setup ambari server on a main node and agents on 3 server.

We are trying to install hortonworks using ambari but host can not be regeistered. There is no error on status on confirm host phase.

We set iptables as off. Reverse IP/hostname settings are done. Hostname is correct. We can do passwordless ssh. We tried to register only 1 server but still same things happened. And all the other minimum system requirements, which is in the ambari installation document, are succesfully done. Hostname is correct in ambari-agent.ini files. There is no error or something relevant with this issue in ambari logs.

Do you have any suggestions?

Here is the status details:

==========================
Creating target directory...
==========================


Command start time 2016-11-30 10:53:33


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Copying ambari sudo script...
==========================


Command start time 2016-11-30 10:53:33


scp /var/lib/ambari-server/ambari-sudo.sh
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Copying common functions script...
==========================


Command start time 2016-11-30 10:53:33


scp /usr/lib/python2.6/site-packages/ambari_commons
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Copying OS type check script...
==========================


Command start time 2016-11-30 10:53:33


scp /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Running OS type check...
==========================


Command start time 2016-11-30 10:53:33
Cluster primary/cluster OS family is redhat6 and local/current OS family is redhat6


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Checking 'sudo' package on remote host...
==========================


Command start time 2016-11-30 10:53:33


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Copying repo file to 'tmp' folder...
==========================


Command start time 2016-11-30 10:53:33


scp /etc/yum.repos.d/ambari.repo
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Moving file to repo dir...
==========================


Command start time 2016-11-30 10:53:33


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Changing permissions for ambari.repo...
==========================


Command start time 2016-11-30 10:53:33


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Copying setup script file...
==========================


Command start time 2016-11-30 10:53:33


scp /usr/lib/python2.6/site-packages/ambari_server/setupAgent.py
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:53:33


==========================
Running setup agent script...
==========================


Command start time 2016-11-30 10:53:33
('INFO 2016-11-30 10:45:52,794 DataCleaner.py:120 - Data cleanup started
INFO 2016-11-30 10:45:52,794 DataCleaner.py:122 - Data cleanup finished
INFO 2016-11-30 10:45:52,910 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-11-30 10:45:52,912 main.py:349 - Connecting to Ambari server at https://xxxx.thynet.thy.com:8440 (192.168.246.144)
INFO 2016-11-30 10:45:52,913 NetUtil.py:62 - Connecting to https://xxxx.thynet.thy.com:8440/ca
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,551 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
INFO 2016-11-30 10:54:06,649 main.py:226 - Agent not going to die gracefully, going to execute kill -9
INFO 2016-11-30 10:54:06,657 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,068 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-11-30 10:54:07,069 DataCleaner.py:120 - Data cleanup started
INFO 2016-11-30 10:54:07,070 DataCleaner.py:122 - Data cleanup finished
INFO 2016-11-30 10:54:07,189 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-11-30 10:54:07,191 main.py:349 - Connecting to Ambari server at https://xxxx.thynet.thy.com:8440 (192.168.246.144)
INFO 2016-11-30 10:54:07,191 NetUtil.py:62 - Connecting to https://xxxx.thynet.thy.com:8440/ca
', None)
('INFO 2016-11-30 10:45:52,794 DataCleaner.py:120 - Data cleanup started
INFO 2016-11-30 10:45:52,794 DataCleaner.py:122 - Data cleanup finished
INFO 2016-11-30 10:45:52,910 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-11-30 10:45:52,912 main.py:349 - Connecting to Ambari server at https://xxxx.thynet.thy.com:8440 (192.168.246.144)
INFO 2016-11-30 10:45:52,913 NetUtil.py:62 - Connecting to https://xxxx.thynet.thy.com:8440/ca
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,546 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:53:36,551 HeartbeatHandlers.py:83 - Ambari-agent received 15 signal, stopping...
INFO 2016-11-30 10:54:06,649 main.py:226 - Agent not going to die gracefully, going to execute kill -9
INFO 2016-11-30 10:54:06,657 ExitHelper.py:53 - Performing cleanup before exiting...
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,067 main.py:90 - loglevel=logging.INFO
INFO 2016-11-30 10:54:07,068 DataCleaner.py:39 - Data cleanup thread started
INFO 2016-11-30 10:54:07,069 DataCleaner.py:120 - Data cleanup started
INFO 2016-11-30 10:54:07,070 DataCleaner.py:122 - Data cleanup finished
INFO 2016-11-30 10:54:07,189 PingPortListener.py:50 - Ping port listener started on port: 8670
INFO 2016-11-30 10:54:07,191 main.py:349 - Connecting to Ambari server at https://xxxx.thynet.thy.com:8440 (192.168.246.144)
INFO 2016-11-30 10:54:07,191 NetUtil.py:62 - Connecting to https://xxxx.thynet.thy.com:8440/ca
', None)


Connection to xxxx.thynet.thy.com closed.
SSH command execution finished
host=xxxx.thynet.thy.com, exitcode=0
Command end time 2016-11-30 10:54:09


Registering with the server...
Registration with the server failed.

4 REPLIES 4
Highlighted

Re: Registration with the server failed without any error!

Explorer

Sometimes we are seeing extra 'failed to connect' warnings in this log too. As I said before there is no firewall and port is open. Also I'm using only one server installation, still same things happened.

Here is that part:

INFO 2016-12-01 09:16:52,833 main.py:349 - Connecting to Ambari server at https://xxx.thynet.thy.com:8440 (192.168.246.144)
DEBUG 2016-12-01 09:16:52,833 NetUtil.py:105 - Trying to connect to https://xxx.thynet.thy.com:8440
INFO 2016-12-01 09:16:52,833 NetUtil.py:62 - Connecting to https://xxx.thynet.thy.com:8440/ca
WARNING 2016-12-01 09:18:49,379 NetUtil.py:93 - Failed to connect to https://xxx.thynet.thy.com:8440/ca due to   
WARNING 2016-12-01 09:18:49,379 NetUtil.py:116 - Server at https://xxx.thynet.thy.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-12-01 09:18:59,380 NetUtil.py:62 - Connecting to https://xxx.thynet.thy.com:8440/ca
WARNING 2016-12-01 09:18:59,381 NetUtil.py:93 - Failed to connect to https://xxx.thynet.thy.com:8440/ca due to [Errno 111] Connection refused  
WARNING 2016-12-01 09:18:59,381 NetUtil.py:116 - Server at https://xxx.thynet.thy.com:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-12-01 09:19:09,381 NetUtil.py:62 - Connecting to https://xxx.thynet.thy.com:8440/ca
Highlighted

Re: Registration with the server failed without any error!

@Berk Ardıç

Are you able to run the following command fine from the agent host?

openssl s_client -connect luminetbd01.thynet.thy.com:8440 

Also what is the version of openssl on the ambser server and agent host?

Can you run the ambari agent in DEBUG mode By editing the "/etc/ambari-agent/conf/ambari-agent.ini" loglevel = INFO to

loglevel = DEBUG

.

Highlighted

Re: Registration with the server failed without any error!

Explorer

Yes I can do openssl connection.

Openssl is the highest version.

I opened the debug mode and here is the result:

DEBUG 2016-12-01 09:16:52,833 NetUtil.py:105 - Trying to connect to https://xxx.thynet.thy.com:8440INFO 2016-12-01 09:16:52,833 NetUtil.py:62 - Connecting to https://xxx.thynet.thy.com:8440/caWARNING 2016-12-01 09:18:49,379 NetUtil.py:93 - Failed to connect to https://xxx.thynet.thy.com:8440/ca due to   WARNING 2016-12-01 09:18:49,379 NetUtil.py:116 - Server at https://xxx.thynet.thy.com:8440 is not reachable, sleeping for 10 seconds...
Highlighted

Re: Registration with the server failed without any error!

New Contributor

Any solution to this post?

,

Was there a resolution to this post