# Failed to authenticate user \[elastic\] after changing environment

**URL:** https://discuss.elastic.co/t/failed-to-authenticate-user-elastic-after-changing-environment/303319
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [April 26, 2022, 7:27pm UTC](https://discuss.elastic.co/t/failed-to-authenticate-user-elastic-after-changing-environment/303319 "2022-04-26T19:27:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Jasper\_Tan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasper_tan/32/79843_2.png) [@Jasper\_Tan](https://discuss.elastic.co/u/Jasper_Tan)
#### Post date: [April 27, 2022, 4:39am UTC](https://discuss.elastic.co/t/failed-to-authenticate-user-elastic-after-changing-environment/303319/2 "2022-04-27T04:39:09Z")

</div>

Update: I have tried the [method](https://discuss.elastic.co/t/i-lost-the-password-that-has-been-changed/91867) proposed by TimV to add a new superuser and resetting the password for other users. This is the error that I received.

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "unavailable_shards_exception",
        "reason" : "[.security-7][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"
      }
    ],
    "type" : "unavailable_shards_exception",
    "reason" : "[.security-7][0] [1] shardIt, [0] active : Timeout waiting for [1m], request: indices:data/write/update"
  },
  "status" : 503
}

```

---

_[View the full topic](https://discuss.elastic.co/t/failed-to-authenticate-user-elastic-after-changing-environment/303319)._
