# Failed to retrieve password hash for reserved user \[elastic\] org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index \[.security-7\] is unavailable

**URL:** https://discuss.elastic.co/t/failed-to-retrieve-password-hash-for-reserved-user-elastic-org-elasticsearch-action-unavailableshardsexception-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/347499
**Category:** Elasticsearch
**Created:** [November 20, 2023, 6:42am UTC](https://discuss.elastic.co/t/failed-to-retrieve-password-hash-for-reserved-user-elastic-org-elasticsearch-action-unavailableshardsexception-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/347499 "2023-11-20T06:42:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NIK2501nc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik2501nc/32/126630_2.png) [@NIK2501nc](https://discuss.elastic.co/u/NIK2501nc)
#### Post date: [November 20, 2023, 6:42am UTC](https://discuss.elastic.co/t/failed-to-retrieve-password-hash-for-reserved-user-elastic-org-elasticsearch-action-unavailableshardsexception-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/347499/1 "2023-11-20T06:42:11Z")

</div>

`failed to retrieve password hash for reserved user [elastic] org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable`

You'll get this issue when in your cluster, the nodes are unable to contain the **system index** ( like ".index, .security, .kibana etc." ) for resolving this issue-  
Add the node role as "data\_content"  
the YML setting will be- **node roles: [data\_content, other node roles whichever you want separated by comma]**

For **Dedicated Master** Node setting will be: **node roles: [data\_content, master]**

Incase you want to refer the the elastic doc- [Node | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html)

Hope this will resolve the 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: [December 18, 2023, 6:42am UTC](https://discuss.elastic.co/t/failed-to-retrieve-password-hash-for-reserved-user-elastic-org-elasticsearch-action-unavailableshardsexception-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/347499/2 "2023-12-18T06:42:50Z")

</div>

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