ERROR: Failed to determine the health of the cluster with elasticsearch-create-enrollment-token

I have Elasticsearch cluster on my local machine with enabled HTTPs (2 nodes), all is working fine, I am trying to use the new tool Elasticsearch-create-enrollment-token to enroll the third node, but I got the following error

ERROR: Failed to determine the health of the cluster

when I execute the following command

Elasticsearch-create-enrollment-token -s node -v

How can I determine the root cause of this issue

BTW, I have the following settings for SSL

# This turns on SSL for the HTTP (Rest) interface true

# This configures the keystore to use for SSL on HTTP certs\http.p12 certs\es.p12 certificate

I generated the certificate using the following instructions

1 Like

Hi there,

The enrolment process is designed to work only with the auto-configured TLS setup that one gets with Elasticsearch 8.0.

You could theoretically alter your existing configuration so that enrollment works for you too but we don’t have any documentation around it and it’s probably going to be more work that adding a node with TLS using the documentation you have already followed.

The error message that you got in this case is misleading and we’ll look into making it clearer, thanks for your feedback !


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