When I run ./elasticsearch-reset-password -i -u elastic --url https://192.168.3.1:9200, it yields:
ERROR: Failed to determine the health of the cluster., with exit code 69
But when I remove the --url flag, I get:
ERROR: Failed to determine the health of the cluster. Unexpected http status [503], with exit code 65
If I run: curl -Lk -u elastic:password http://localhost:9200/_cluster/health?pretty=null, it gives me a 401 error. Solving this was the reason I tried to reset my password in the first place.
What is the meaning of these error code and how can I debug this ?
I always wonder why the doc always mentionned the bin/ folder! Got it!
Nevertheless I still got the same error.
Also, I fixed the scheme: if I try with
xpack.security.http.ssl:
enabled: true
... it throws a new error with the same exit code:
java.security.cert.CertificateException: No subject alternative names matching IP address 192.168.3.1 found
at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:160) ~[?:?]
at sun.security.util.HostnameChecker.match(HostnameChecker.java:101) ~[?:?]
...
ERROR: Failed to determine the health of the cluster., with exit code 69
I guess that I should recreate the certificate in order to include this IP address on it but I'm not sure of the step I should follow.
I found the solution! I noticed that it works when I disable my Ethernet network interface. That's because I did not install ES with this interface enabled so now the IP of it is not present in the certificate.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.