Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ambari registration failed

avatar
New Contributor

Hi,

 

Im tying to register my edge node through ambari-agent 2.7.4.0 but that fails cause:

 

WARNING - Could not connect to wss://*******:8441/agent/stomp/v1. [Errno 111] Connection refused

 

I tested wscat command and seems good:

 

> [root@****** log]# wscat -nc wss://*********:8441/agent/stomp/v1
Connected (press CTRL+C to quit)

 

Please find log below:

 

Sep 29 16:44:11 ***** journal: ambari_agent - NetUtil.py - [28672] - ambari_agent.NetUtil - INFO - Connecting to https://*********:8440/connection_info
Sep 29 16:44:11 indkuds07 journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - Connecting to wss://********:8441/agent/stomp/v1
Sep 29 16:44:11 ***** journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - two ssl disbaled, establishing connection
Sep 29 16:44:11 ****** journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - variable conn assigned
Sep 29 16:44:11 ******* journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - starting connection
Sep 29 16:44:11 ****** journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - (<class 'socket.error'>, error(111, 'Connection refused'), <traceback object at 0x7f0a208597a0>)
Sep 29 16:44:11 ****** journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - disconnection in progress
Sep 29 16:44:11 ****** journal: ambari_agent - security.py - [28672] - ambari_agent.security - INFO - disconnection complete
Sep 29 16:44:11 ****** journal: ambari_agent - security.py - [28672] - ambari_agent.security - WARNING - Could not connect to wss://*******:8441/agent/stomp/v1. [Errno 111] Connection refused
Sep 29 16:44:11 ****** journal: ambari_agent - HeartbeatThread.py - [28672] - ambari_agent.HeartbeatThread - INFO - Connection error "[Errno 111] Connection refused". Re-running the registration

 

thanks a lot for help,

 

best

1 REPLY 1

avatar
Expert Contributor

Hi,

What is understood is you are trying to add a new agent host. And while doing so you are getting connection refused. If you are trying to install the agent manually , then check if the agent RPM version is same as of Ambari server using command : rpm -qa | grep -i ambari. 

Check if the connecting port between agent and server is open and is not blocked. 

Check the agent.ini file has the correct ambari server hostname.