# Elasticsearch 7.10 | XPACK enabled | Does not start after machine reboot

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-10-xpack-enabled-does-not-start-after-machine-reboot/262508>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [January 28, 2021, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-xpack-enabled-does-not-start-after-machine-reboot/262508 "2021-01-28T13:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dp119](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dp119/32/83059_2.png) [@dp119](https://discuss.elastic.co/u/dp119)\
**Post date:** [January 28, 2021, 1:45pm UTC](https://discuss.elastic.co/t/elasticsearch-7-10-xpack-enabled-does-not-start-after-machine-reboot/262508/1 "2021-01-28T13:45:50Z")

</div>

Hello,

I enabled X-Pack with this command  
`elasticsearch-setup-passwords auto`

I had to stop ES and restart the host machine.

I'm trying to start Elasticsearch after the machine boot. ES doesn't start and has the below exception in the log.

```
[2021-01-28T11:05:05,675][INFO][o.e.g.GatewayService] [****** -] recovered [23] indices into cluster_state
[2021-01-28T11:05:06,638][ERROR][o.e.x.s.a.e.ReservedRealm] [****** -] 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
.
.
[2021-01-28T11:05:06,901][INFO][o.e.x.s.a.AuthenticationService] [EC2AMAZ-36TT67T] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]

```

I know the password for the user "elastic" but not sure where to configure it.  
Could anyone please help me with the step I'm missing?

Thanks,

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [January 29, 2021, 5:53am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-xpack-enabled-does-not-start-after-machine-reboot/262508/2 "2021-01-29T05:53:15Z")

</div>

> ES doesn't start and has the below exception in the log.

Are you sure it doesn't start?

If you're getting that exception, then Elasticsearch must be running.  
Alternatively, if it's really not starting, then there must be a different problem that's stopping it from starting and we'll need to track down what that is.

> [@dp119](#):
>
> `org.elasticsearch.action.UnavailableShardsException: at least one primary shard for the index [.security-7] is unavailable`

This implies that your cluster has lost a required index.  
What can you tell us about your cluster? How many nodes does it have? What is the topology?

---

<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:** [February 26, 2021, 5:53am UTC](https://discuss.elastic.co/t/elasticsearch-7-10-xpack-enabled-does-not-start-after-machine-reboot/262508/3 "2021-02-26T05:53:18Z")

</div>

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