# Elastic password reset error -

**URL:** <https://discuss.elastic.co/t/elastic-password-reset-error/114705>\
**Category:** Elasticsearch\
**Created:** [January 9, 2018, 1:03pm UTC](https://discuss.elastic.co/t/elastic-password-reset-error/114705 "2018-01-09T13:03:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vigneshaj](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vigneshaj](https://discuss.elastic.co/u/vigneshaj)\
**Post date:** [January 9, 2018, 1:03pm UTC](https://discuss.elastic.co/t/elastic-password-reset-error/114705/1 "2018-01-09T13:03:46Z")

</div>

Hi

I am followng the below answer to reset the elastic password.

> [@I lost the password that has been changed](https://discuss.elastic.co/t/i-lost-the-password-that-has-been-changed/91867?source_topic_id=114545):
>
> I changed the password for the admin user "elastic", but the new password doesn't work. So I want to ask if there's a way to reset the password for the default admin user - "elastic". I have put the line: elasticsearch.password: "somepassword" in both elastic and kibana yml config file. But what I get when I try to login is "Oops! Error. Try again.". Please help!

{"error":{"root\_cause":[{"type":"unavailable\_shards\_exception","reason":"[.security-6][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"}],"type":"unavailable\_shards\_exception","reason":"[.security-6][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"},"status":503}

But I am getting above error when i try to reset the password.

I have one master node where we have configured xpack and two data nodes which doesnt have xpack installed.

On trying to reset the password using interactive command(bin/x-pack/setup-passwords interactive) it throws below error

Failed to authenticate user 'elastic' against [http://localhost:9200/\_xpack/security/\_authenticate?pretty](http://localhost:9200/_xpack/security/_authenticate?pretty)  
Possible causes include:

The password for the 'elastic' user has already been changed on this cluster  
Your elasticsearch node is running against a different keystore  
This tool used the keystore at /etc/elasticsearch/elasticsearch.keystore  
Also we are not able to create any role using created my\_admin user for ldap authentication.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 11, 2018, 9:31pm UTC](https://discuss.elastic.co/t/elastic-password-reset-error/114705/2 "2018-01-11T21:31:30Z")

</div>

> [@vigneshaj](#):
>
> {"error":{"root\_cause":[{"type":"unavailable\_shards\_exception","reason":"[.security-6][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"}],"type":"unavailable\_shards\_exception","reason":"[.security-6][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"},"status":503}

There's something wrong with your cluster.  
Either you have missing data (shards) or you have nodes that aren't responding to requests, or something like that.  
This isn't specifically a security problem, it's occurring whenever X-Pack tries to read or write to the security index, but it would probably also happen for other indices.

When you start up Elasticsearch, it should be telling you that it is on RED state because some shards aren't available.

What's the history with this cluster? Can you tell us how you got into this state?

---

<div class="post-metadata">

**Author:** ![vigneshaj](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vigneshaj](https://discuss.elastic.co/u/vigneshaj)\
**Post date:** [January 17, 2018, 9:57am UTC](https://discuss.elastic.co/t/elastic-password-reset-error/114705/3 "2018-01-17T09:57:58Z")

</div>

Hi Tim

We have three nodes, one master and two data nodes. All shards failed when we install x-pack in all the nodes.

"cluster.routing.allocation.enable" property on default changed to "none" from "all", when we restarted all the nodes.

When we tried to change it "all" we faced the authentication problem and even default "changeme" password doesnt work because of shard failure.

On disabling x-pack all shards came up and all worked fine.  
How do fix the issue of shard failure on installing xpack.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 14, 2018, 9:57am UTC](https://discuss.elastic.co/t/elastic-password-reset-error/114705/4 "2018-02-14T09:57:59Z")

</div>

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