# Elasticsearch did not passed bootstrap

**URL:** <https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791>\
**Category:** Elasticsearch\
**Created:** [April 28, 2019, 9:45am UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791 "2019-04-28T09:45:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Post date:** [April 28, 2019, 9:45am UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/1 "2019-04-28T09:45:20Z")

</div>

Hello,

I am trying to install new elasticsearch using version 7 for log storage. FIrst I have tried to configure it with locked memory I have configured all the requirements that are in the documentation but it did not passed the bootstrap check without giving any hint on what or where exactly is failing on.

Any suggestion how to fix it?

---

<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:** [April 28, 2019, 9:59am UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/2 "2019-04-28T09:59:59Z")

</div>

How do you know it's failed bootstrap?

---

<div class="post-metadata">

**Author:** ![zozo6015](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zozo6015/32/12117_2.png) [@zozo6015](https://discuss.elastic.co/u/zozo6015)\
**Post date:** [April 28, 2019, 10:03am UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/3 "2019-04-28T10:03:55Z")

</div>

I believe the log is pretty clear about it.

```
[2019-04-28T06:03:00,876][INFO][o.e.b.BootstrapChecks] [logging] explicitly enforcing bootstrap checks
[2019-04-28T06:03:01,103][ERROR][o.e.b.Bootstrap] [logging] node validation exception
[1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
```

---

<div class="post-metadata">

**Author:** ![dbakti7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dbakti7/32/42250_2.png) [@dbakti7](https://discuss.elastic.co/u/dbakti7)\
**Post date:** [April 28, 2019, 1:32pm UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/5 "2019-04-28T13:32:35Z")

</div>

Most likely the user doesn't have permission to lock the memory, you can try the instructions here:

> **[Disable swapping | Elasticsearch Guide \[6.7\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/setup-configuration-memory.html#bootstrap-memory_lock)**

Specifically from

> The most probable reason, on Linux/Unix systems, is that the user running Elasticsearch doesn’t have permission to lock memory. This can be granted as follows:  
> ...

Extra references: [Elasticsearch is not starting when bootstrap.memory\_lock is set to true](https://discuss.elastic.co/t/elasticsearch-is-not-starting-when-bootstrap-memory-lock-is-set-to-true/120962)

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 28, 2019, 3:15pm UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/6 "2019-04-28T15:15:48Z")

</div>

You should be able to see the reason that memory locking failed _higher_ up in the logs.

---

<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:** [May 26, 2019, 3:15pm UTC](https://discuss.elastic.co/t/elasticsearch-did-not-passed-bootstrap/178791/7 "2019-05-26T15:15:50Z")

</div>

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