# Setting passwords in elasticsearch cluster

**URL:** <https://discuss.elastic.co/t/setting-passwords-in-elasticsearch-cluster/232477>\
**Category:** Elasticsearch\
**Created:** [May 13, 2020, 4:06pm UTC](https://discuss.elastic.co/t/setting-passwords-in-elasticsearch-cluster/232477 "2020-05-13T16:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kawalec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kawalec/32/46404_2.png) [@kawalec](https://discuss.elastic.co/u/kawalec)\
**Post date:** [May 13, 2020, 4:06pm UTC](https://discuss.elastic.co/t/setting-passwords-in-elasticsearch-cluster/232477/1 "2020-05-13T16:06:31Z")

</div>

I have a working cluster

"cluster\_name" : "elk",  
"status" : "green",  
"timed\_out" : false,  
"number\_of\_nodes" : 3,  
"number\_of\_data\_nodes" : 3,  
"active\_primary\_shards" : 3,  
"active\_shards" : 6,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 0,  
"delayed\_unassigned\_shards" : 0,  
"number\_of\_pending\_tasks" : 0,  
"number\_of\_in\_flight\_fetch" : 0,  
"task\_max\_waiting\_in\_queue\_millis" : 0,  
"active\_shards\_percent\_as\_number" : 100.0

I want to password Protect so i enabled xpack security

# Use a descriptive name for your cluster:

# 

cluster.name: elk  
xpack.security.enabled: true  
xpack.security.transport.ssl.enabled: true  
#discovery.type: single-node

When I go set my passwords I get a cluster error.

./elasticsearch-setup-passwords interactive

Failed to determine the health of the cluster running at [http://10.10.10.A:9200](http://10.10.10.A:9200)  
Unexpected response code [503] from calling GET [http://10.10.10.A:9200/\_cluster/health?pretty](http://10.10.10.A:9200/_cluster/health?pretty)  
Cause: master\_not\_discovered\_exception

It is recommended that you resolve the issues with your cluster before running elasticsearch-setup-passwords.  
It is very likely that the password changes will fail when run against an unhealthy cluster.

Not sure what setting I have wrong.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 13, 2020, 11:03pm UTC](https://discuss.elastic.co/t/setting-passwords-in-elasticsearch-cluster/232477/2 "2020-05-13T23:03:06Z")

</div>

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

> [@kawalec](#):
>
> GET [http://10.10.10.A:9200/\_cluster/health?pretty](http://10.10.10.A:9200/_cluster/health?pretty)

Is that the response from the first part of your post?

---

<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:** [June 10, 2020, 11:03pm UTC](https://discuss.elastic.co/t/setting-passwords-in-elasticsearch-cluster/232477/3 "2020-06-10T23:03:12Z")

</div>

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