You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "caijialiang (Jira)" <ji...@apache.org> on 2023/02/27 07:39:00 UTC

[jira] [Created] (AMBARI-25872) ambari agent lost heartbeat with server when server use http instead of ssl

caijialiang created AMBARI-25872:
------------------------------------

             Summary: ambari agent lost heartbeat with server when server use http instead of ssl
                 Key: AMBARI-25872
                 URL: https://issues.apache.org/jira/browse/AMBARI-25872
             Project: Ambari
          Issue Type: Bug
          Components: ambari-agent, ambari-server
            Reporter: caijialiang


there is a bug when set agent.ssl=false at ambari server conf file .


the connection type ambari server used to communcaiate with ambari agent is  one of http, ssl one way or ssl twoway ,and ssl one way is the default connection type.


reproduction step:

1.add this line to ambari server property file /etc/ambari-server/conf/ambari.properties.

agent.ssl=false

2. restart ambari server , all the amabri agent are lost heartbeat with server,


3.you can see  errors in ambari agent log


RNING 2023-02-25 15:14:36,421 security.py:116 - Could not connect to wss://gs-server-13481:8441/agent/stomp/v1. [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)
INFO 2023-02-25 15:14:36,422 HeartbeatThread.py:106 - Connection error "[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)". Re-running the registration
INFO 2023-02-25 15:14:46,423 NetUtil.py:61 - Connecting to https://gs-server-13481:8440/connection_info
ERROR 2023-02-25 15:14:46,429 NetUtil.py:87 - [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:618)
ERROR 2023-02-25 15:14:46,429 NetUtil.py:88 - SSLError: Failed to connect. Please check openssl library versions.
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
INFO 2023-02-25 15:14:46,430 security.py:61 - Connecting to wss://gs-server-13481:8441/agent/stomp/v1



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ambari.apache.org
For additional commands, e-mail: issues-help@ambari.apache.org