Aborting enrolling to cluster. Could not communicate with the node on any of the addresses from the enrolment token

I am trying to install a 2 node Elasticsearch cluster , i installed and my Elasticsearch that node is running fine and while im trying to connect the next node to the using enrollment token im getting this borting enrolling to cluster. Could not communicate with the node on any of the addresses from the enrollment token. All of [] were attempted., with exit code 69 error
this my configuration of node 1

root@ip-10-20-1-36:/home/ubuntu# cat /etc/elasticsearch/elasticsearch.yml
cluster.name: lg-es
node.name: es-node01
node.roles: [ master, data ]
path.data: /ebs/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
http.port: 9200
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
enabled: true
keystore.path: certs/http.p12
enabled: true
verification_mode: certificate
keystore.path: certs/transport.p12
truststore.path: certs/transport.p12
cluster.initial_master_nodes: ["es-node01"]

i have added the basic config in node 2

root@ip-10-20-1-115:/home/ubuntu# grep -Ev '^#|^$' /etc/elasticsearch/elasticsearch.yml
cluster.name: lg-es
node.name: es-node02
path.data: /ebs/elasticsearch
path.logs: /var/log/elasticsearch
http.port: 9200

i have not started the Elasticsearch , but whenever im trying to connect to the node 1 im getting this error
i have also open the respective port in security group of the server also

I also installed it using DEB package still getting the issue

how to solve this

On (host for node 2) try


based on the error above, I expect this to fail with some sort of network problem (timeout, or similar).
If that's the case then this isn't an Elasticsearch problem, it's something that prevents connectivity between those hosts (on that port).

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.