Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

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

Open
Kanmanir opened this issue Nov 30, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Kanmanir
Copy link

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
@Kanmanir Kanmanir added the bug Something isn't working label Nov 30, 2021
@skkosuri-amzn skkosuri-amzn assigned qreshi and unassigned skkosuri-amzn Dec 7, 2021
@dvd29
Copy link

dvd29 commented Dec 30, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants