ElasticSearch not starting

  • SonarQube 7.9-community docker image, no plugins
  • when starting, the container is “flapping”; es.log contains “smoking-gun”:
2019.08.29 19:41:44 INFO  es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/opt/sonarqube/data (/dev/nvme1n1)]], net usable_space [46.4gb], net total_space [49gb], types [ext4]
2019.08.29 19:41:44 INFO  es[][o.e.e.NodeEnvironment] heap size [495.3mb], compressed ordinary object pointers [true]
2019.08.29 19:41:44 INFO  es[][o.e.n.Node] node name [sonarqube], node ID [UeBVOLWPRp2hl8ADolNC1g]
2019.08.29 19:41:44 INFO  es[][o.e.n.Node] version[6.8.0], pid[25], build[default/tar/65b6179/2019-05-15T20:06:13.172855Z], OS[Linux/4.14.47-64.38.amzn2.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.4/11.0.4+11]
2019.08.29 19:41:44 INFO  es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [analysis-common]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [lang-painless]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [mapper-extras]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [parent-join]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [percolator]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [reindex]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [repository-url]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] loaded module [transport-netty4]
2019.08.29 19:41:45 INFO  es[][o.e.p.PluginsService] no plugins loaded
2019.08.29 19:41:49 WARN  es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2019.08.29 19:41:51 INFO  es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2019.08.29 19:41:53 INFO  es[][o.e.n.Node] initialized
2019.08.29 19:41:53 INFO  es[][o.e.n.Node] starting ...
2019.08.29 19:41:53 INFO  es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2019.08.29 19:41:53 INFO  es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2019.08.29 19:41:53 ERROR es[][o.e.b.Bootstrap] node validation exception
[1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]


2 Likes

Already setting that node.store.allow_mmap=false (note updated flag name)