opendistro-for-elasticsearch / alerting

📟 Open Distro Alerting Plugin
https://opendistro.github.io/for-elasticsearch/features/alerting.html
Apache License 2.0
279 stars 80 forks source link

Facing an issue in elasticsearch container logs for alerting is Could not convert socket to TLS, statuscode: 1 #394

Open Kanmanir opened 2 years ago

Kanmanir commented 2 years ago

Facing an issue in elasticsearch container logs for alerting is Could not convert socket to TLS, statuscode: 1

Alerting plugin version Iam using is 1.13.1.0. and our elasticsearch as 4 nodes coordinating node, master node, node1 and node2.

Steps i followed is:

 1) Created an email destination with smtp host as smtp.XXX.com, port as 587 , security TLS.

 2) Configured the sender details in elasticsearch-keystore file as sender@XXX.com and password as XXX.

 3) Reloaded the security settings API in dev tool of kibana using as follows
     POST _nodes/reload_secure_settings
     Response of the above API is:
          {
              “_nodes” : {
                      “total” : 4,
                      “successful” : 4,
                      “failed” : 0
                       },
              “cluster_name” : “odfe-cluster”,
               “nodes” : {
                              “1234” : {
                                   “name” : “odfe-cn”
                              },
                             “5678” : {
                                 “name” : “odfe-master”
                             },
                             “12ED” : {
                                   “name” : “odfe-node1”
                              },
                             “A123D” : {
                                   “name” : “odfe-node2”
                              }
               }
        }

 4) Created monitor , trigger and tried to send a test mail from action faced the above error in elasticsearch docker container log.

   [2021-11-29T13:32:36,803][INFO ][c.a.o.a.m.d.Destination ] [odfe-cn] Message published for action name: XXXX, messageid: Could not convert socket to TLS, statuscode: 1
dvd29 commented 2 years ago

Hi I have the same issue with Elasticsearch 7.10.2 and the plug-in alerting 1.13.1.0. I have a single node cluster with the plug-in security activated. I set up email destination with TLS and the right username and password in the elastic keystore. When I try to send an email with the button "Send test message" from Kibana I have this error message : messageid: Could not convert socket to TLS, statuscode: 1

Do you have an idea to solve this problem ? Thank you