Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap checks failed at docker-compose up #89

Closed
DaniSchenk opened this issue Nov 18, 2016 · 2 comments
Closed

bootstrap checks failed at docker-compose up #89

DaniSchenk opened this issue Nov 18, 2016 · 2 comments

Comments

@DaniSchenk
Copy link

When I try to start my elk container I get the following error message:
node validation exception
bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

docker-compose.yml:

elk2:
  image: "sebp/elk:es500_l500_k500"
  ports:
    - "5601:5601"
    - "9200:9200"
    - "5044:5044"

console output:

docker-compose up
Creating elk2_elk2_1
Attaching to elk2_elk2_1
elk2_1  |  * Starting periodic command scheduler cron
elk2_1  |    ...done.
elk2_1  |  * Starting Elasticsearch Server
elk2_1  | sysctl: setting key "vm.max_map_count": Read-only file system
elk2_1  |    ...done.
elk2_1  | waiting for Elasticsearch to be up (1/30)
elk2_1  | waiting for Elasticsearch to be up (2/30)
elk2_1  | waiting for Elasticsearch to be up (3/30)
.
.
.
elk2_1  | waiting for Elasticsearch to be up (29/30)
elk2_1  | waiting for Elasticsearch to be up (30/30)
elk2_1  | Couln't start Elasticsearch. Exiting.
elk2_1  | Elasticsearch log follows below.
elk2_1  | [2016-11-18T00:12:27,119][INFO ][o.e.n.Node               ] [] initializing ...
elk2_1  | [2016-11-18T00:12:27,161][INFO ][o.e.e.NodeEnvironment    ] [toJkJfw] using [1] data paths, mounts [[/var/lib/elasticsearch (/dev/md2)]], net usable_space [111.1gb], net total_space [196.9gb], spins? [possibly], types [ext4]
elk2_1  | [2016-11-18T00:12:27,162][INFO ][o.e.e.NodeEnvironment    ] [toJkJfw] heap size [1.9gb], compressed ordinary object pointers [true]
elk2_1  | [2016-11-18T00:12:27,162][INFO ][o.e.n.Node               ] [toJkJfw] node name [toJkJfw] derived from node ID; set [node.name] to override
elk2_1  | [2016-11-18T00:12:27,163][INFO ][o.e.n.Node               ] [toJkJfw] version[5.0.0], pid[51], build[253032b/2016-10-26T05:11:34.737Z], OS[Linux/4.2.0-36-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_111/25.111-b14]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [aggs-matrix-stats]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [ingest-common]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [lang-expression]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [lang-groovy]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [lang-mustache]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [lang-painless]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [percolator]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [reindex]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [transport-netty3]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] loaded module [transport-netty4]
elk2_1  | [2016-11-18T00:12:27,538][INFO ][o.e.p.PluginsService     ] [toJkJfw] no plugins loaded
elk2_1  | [2016-11-18T00:12:28,469][INFO ][o.e.n.Node               ] [toJkJfw] initialized
elk2_1  | [2016-11-18T00:12:28,469][INFO ][o.e.n.Node               ] [toJkJfw] starting ...
elk2_1  | [2016-11-18T00:12:28,570][INFO ][o.e.t.TransportService   ] [toJkJfw] publish_address {172.17.0.14:9300}, bound_addresses {[::]:9300}
elk2_1  | [2016-11-18T00:12:28,574][INFO ][o.e.b.BootstrapCheck     ] [toJkJfw] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
elk2_1  | [2016-11-18T00:12:28,575][ERROR][o.e.b.Bootstrap          ] [toJkJfw] node validation exception
elk2_1  | bootstrap checks failed
elk2_1  | max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]
elk2_1  | [2016-11-18T00:12:28,577][INFO ][o.e.n.Node               ] [toJkJfw] stopping ...
elk2_1  | [2016-11-18T00:12:28,594][INFO ][o.e.n.Node               ] [toJkJfw] stopped
elk2_1  | [2016-11-18T00:12:28,594][INFO ][o.e.n.Node               ] [toJkJfw] closing ...
elk2_1  | [2016-11-18T00:12:28,601][INFO ][o.e.n.Node               ] [toJkJfw] closed
elk2_elk2_1 exited with code 1
@DaniSchenk
Copy link
Author

DaniSchenk commented Nov 18, 2016

I fixed the error by running sysctl -w vm.max_map_count=262144 in terminal (Linux/Ubuntu).
Then I created a file named 60-elasticsearch.conf and placed it in /etc/sysctl.d/ with the following content

vm.max_map_count=262144

Creating this .conf file makes the change permanent and still present after server restarts, right?

@spujadas
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants