# ERROR: Failed to verify bootstrap password when setting built in user's password

**URL:** <https://discuss.elastic.co/t/error-failed-to-verify-bootstrap-password-when-setting-built-in-users-password/241341>\
**Category:** Elasticsearch\
**Created:** [July 15, 2020, 5:21pm UTC](https://discuss.elastic.co/t/error-failed-to-verify-bootstrap-password-when-setting-built-in-users-password/241341 "2020-07-15T17:21:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhavya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavya/32/45679_2.png) [@bhavya](https://discuss.elastic.co/u/bhavya)\
**Post date:** [July 15, 2020, 5:21pm UTC](https://discuss.elastic.co/t/error-failed-to-verify-bootstrap-password-when-setting-built-in-users-password/241341/1 "2020-07-15T17:21:45Z")

</div>

I have imported and started [Elasticsearch Source Code](https://github.com/elastic/elasticsearch) into an IntelliJ IDEA project. **I want to create the password for the built-in users**  
To enable security, I passed `-Dtests.es.xpack.security.enabled=true` as a parameter in Gradle command by referring to this [answer](https://discuss.elastic.co/t/how-to-enable-x-pack-security-when-running-elasticsearch-locally-from-source-code/228533)

1. I created the `elasticsearch.keystore,` for that I used this command:

` ./bin/elasticsearch-keystore create -p`

1. Now to set the built-in users password, I ran the following command

But it gives the following error :

```
        ./elasticsearch-setup-passwords interactive
    Enter password for the elasticsearch keystore :
    Failed to authenticate user 'elastic' against http://127.0.0.1:9200/_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 /Users/amit.khandelwal/code/elasticsearch/build/testclusters/runTask-0/distro/8.0.0-DEFAULT/config/elasticsearch.keystore
    ERROR: Failed to verify bootstrap password

```

I referred the following links

[Unable to change elastic user password](https://discuss.elastic.co/t/unable-to-change-elastic-user-password/122887)

[Elastic-xpack-security](https://discuss.elastic.co/t/elastic-xpack-security/108885)

But still, I am not able to resolve this issue. I even asked this question on [Stackoverflow](https://stackoverflow.com/questions/62916968/error-failed-to-verify-bootstrap-password), but got no answer.

Can anyone help me resolve this issue?

---

<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:** [August 12, 2020, 5:21pm UTC](https://discuss.elastic.co/t/error-failed-to-verify-bootstrap-password-when-setting-built-in-users-password/241341/2 "2020-08-12T17:21:46Z")

</div>

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