# ElasticSearch error bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

**URL:** <https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256>\
**Category:** Elasticsearch\
**Created:** [May 26, 2017, 1:04pm UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256 "2017-05-26T13:04:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan\_sharekhan](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hasan\_sharekhan](https://discuss.elastic.co/u/hasan_sharekhan)\
**Post date:** [May 26, 2017, 1:04pm UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256/1 "2017-05-26T13:04:15Z")

</div>

I am trying to run Elasticsearch 5.4.0 on CentOS 7 on VM

in elasticsearch.yml i have added the below line

> network.host: ["192.168.X.Y", "localhost"]

The above IP address belongs to VM not of host OS, without adding the above line it starts fine.

After adding the above link Elasticsearch is not starting and giving the below error.

```
[2017-05-26T18:06:59,848][INFO][o.e.t.TransportService] [node_uat_master] publish_address {192.168.X.Y:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}, {192.168.X.Y:9300}
[2017-05-26T18:06:59,865][INFO][o.e.b.BootstrapChecks] [node_uat_master] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed
max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

```

---

<div class="post-metadata">

**Author:** ![Leandro\_Sampaio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandro_sampaio/32/18409_2.png) [@Leandro\_Sampaio](https://discuss.elastic.co/u/Leandro_Sampaio)\
**Post date:** [May 26, 2017, 1:23pm UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256/2 "2017-05-26T13:23:18Z")

</div>

Increase these params on OS and it resolve your problema

max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536] max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]

---

<div class="post-metadata">

**Author:** ![hasan\_sharekhan](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hasan\_sharekhan](https://discuss.elastic.co/u/hasan_sharekhan)\
**Post date:** [May 27, 2017, 8:13am UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256/3 "2017-05-27T08:13:51Z")

</div>

> [@hasan\_sharekhan](#):
>
> bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
> ERROR: bootstrap checks failed

Thanks, what is the solution for the above error, I am running Elasticsearch on CentOS 7 on VM

---

<div class="post-metadata">

**Author:** ![hasan\_sharekhan](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hasan\_sharekhan](https://discuss.elastic.co/u/hasan_sharekhan)\
**Post date:** [May 29, 2017, 7:22am UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256/4 "2017-05-29T07:22:42Z")

</div>

`max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]`

Solved the above error by changing /etc/security/limit.conf file  
by changing these values

```
* soft nofile 65536
* hard nofile 65536
# End of file

```

`max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]`

for above error please check this page [https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html)

from the above link running the command worked for me but changing the file didn't work (i don't know why)

\*\*Remember to take backup before modifying any file and also login with root

---

<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 26, 2017, 7:22am UTC](https://discuss.elastic.co/t/elasticsearch-error-bound-or-publishing-to-a-non-loopback-or-non-link-local-address-enforcing-bootstrap-checks/87256/5 "2017-06-26T07:22:47Z")

</div>

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