Unable to reset the elastic and kibana user password

Hi Elastic Team,

I am unable to reset the elastic and Kibana passwords. Please help getting below error.
using command for changing the passwords:/usr/share/Elasticsearch/bin/Elasticsearch-reset-password -i -u elastic
/usr/share/kibana/bin/kibana-reset-password -i -u elastic

Error details:
ERROR: Failed to determine the health of the cluster.

Welcome to our community! :smiley:
Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them :slight_smile:

Can you curl ElasticsearchHost:9200 and see what the response is?

Hi warkolam,

I have checked from the curl 10.142.124.155:9200 and betting below response

[root@nvmbdsiv013520 ~]# curl 10.142.124.155:9200
{
"name" : "node-1",
"cluster_name" : "dev-logging",
"cluster_uuid" : "x20bKVE-QmOCS0Rs0px45A",
"version" : {
"number" : "8.2.2",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "9876968ef3c745186b94fdabd4483e01499224ef",
"build_date" : "2022-05-25T15:47:06.259735307Z",
"build_snapshot" : false,
"lucene_version" : "9.1.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}

And are you still getting that error?

Yes same error i am getting .

Please suggest.

Can you try /_cluster/health?

Is that server configured to be standalone or in a cluster?

I think this might actually be CLI tools extending BaseRunAsSuperuserCommand should only connect to the local node · Issue #80481 · elastic/elasticsearch · GitHub, @manish6.rai can you
try with /usr/share/kibana/bin/elasticsearch-reset-password -i -u elastic --url http://10.142.124.155:9200

?