# New build docker-compose multi-node cluster fails to retrieve password hash for reserved user \[elastic\] / at least one primary shard for the index \[.security-7\] is unavailable

**URL:** <https://discuss.elastic.co/t/new-build-docker-compose-multi-node-cluster-fails-to-retrieve-password-hash-for-reserved-user-elastic-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/326389>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [February 24, 2023, 1:37am UTC](https://discuss.elastic.co/t/new-build-docker-compose-multi-node-cluster-fails-to-retrieve-password-hash-for-reserved-user-elastic-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/326389 "2023-02-24T01:37:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)\
**Post date:** [February 24, 2023, 2:24am UTC](https://discuss.elastic.co/t/new-build-docker-compose-multi-node-cluster-fails-to-retrieve-password-hash-for-reserved-user-elastic-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/326389/2 "2023-02-24T02:24:37Z")

</div>

The cluster has not formed yet, i.e. its health RED. Error of the security index is a victim of it. You need fix the cluster formation issue first. If cache is the issue as suggested by [this post](https://discuss.elastic.co/t/in-docker-docker-compose-i-got-some-errors/307489), I guess it might be related to the persistent volume created by docker-compose. If what you want is a fresh cluster, you should delete them. You can check the volume with something like

```auto
docker volume ls

```

and delete the relevant ones declared in the docker compose file. **NOTE** please be sure that you absolutely do not need any data from the volumes before deleting because you will _not_ be able to recover them later.

---

_[View the full topic](https://discuss.elastic.co/t/new-build-docker-compose-multi-node-cluster-fails-to-retrieve-password-hash-for-reserved-user-elastic-at-least-one-primary-shard-for-the-index-security-7-is-unavailable/326389)._
