Error Elasticsearch Bootstrap Check Failed In Linux

When you will install Elasticsearch on your machine, you might be facing these Error Elasticsearch Bootstrap check failed. This is because you didn’t make some changes before installing the ElasticSearch. you can check the bootstrap configuration file in Elasticsearch and find the reason to fail.

Check Out: Install Elasticsearch Using Source Code

Error Elasticsearch Bootstrap Check Failed In ElasticSearch:

Main Issues: You will get these issues when you will install Elasticsearch without making any settings in Elasticsearch.yml

  • Max file descriptors [4096] for Elasticsearch process is too low, increase to at least [65536]
  • Maximum number of threads [3843] for user [elastic] is too low, increase to at least [4096]
  • Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

You may set these values in /etc/security/limits.conf

1. Now Increase the file Descriptions

ulimit -n 65536

if you don’t want to set it 65536, use nofile to 65536 in the above file.

Check Out: Configuration Settings of Elasticsearch Before Installing I

2. Now Set Number of threads for the user.

ulimit -u 4096

if you don’t want to set it, 4096 users, set nproc to 2048 in the above file.

3. Now Set Virtual Memory in /etc/sysctl.conf

vm.max_map_count= 262144

After settings these, you need to run this command to make changes

sysctl -p

Check Out: Error: Can’t Run Elasticsearch As Root

If above settings do not work for you, try this one and Final Settings should be looks like in /etc/security/limits.conf

You’re done bootstrap configuration file

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment