# How to get the default password

**URL:** <https://discuss.elastic.co/t/how-to-get-the-default-password/298463>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [March 1, 2022, 3:11am UTC](https://discuss.elastic.co/t/how-to-get-the-default-password/298463 "2022-03-01T03:11:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericsoul](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Post date:** [March 1, 2022, 3:11am UTC](https://discuss.elastic.co/t/how-to-get-the-default-password/298463/1 "2022-03-01T03:11:28Z")

</div>

branch:master  
commitid: 6b50cf75b3f

I compiled the ES from command `./gradlew localDistro`

then started the server by `bin/elasticsearch -d`

then I got no password in `logs/elasticsearch.log`

---

<div class="post-metadata">

**Author:** ![ericsoul](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@ericsoul](https://discuss.elastic.co/u/ericsoul)\
**Post date:** [March 1, 2022, 3:17am UTC](https://discuss.elastic.co/t/how-to-get-the-default-password/298463/2 "2022-03-01T03:17:54Z")

</div>

I got an error when I typed `bin/elasticsearch-reset-password -u elastic`:  
`ERROR: Failed to determine the health of the cluster.`  
I cleaned the build path, and built again, reset command has worked.  
Question is resolved.

---

<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:** [March 29, 2022, 3:18am UTC](https://discuss.elastic.co/t/how-to-get-the-default-password/298463/3 "2022-03-29T03:18:03Z")

</div>

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