# ElasticSearch docker container fails (FileRun documentation followed)

**URL:** <https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 14, 2020, 12:03pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633 "2020-05-14T12:03:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zilexa](https://avatars.discourse-cdn.com/v4/letter/z/bbe5ce/32.png) [@zilexa](https://discuss.elastic.co/u/zilexa)\
**Post date:** [May 14, 2020, 12:03pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633/1 "2020-05-14T12:03:38Z")

</div>

Following the documentation of FileRun: [https://docs.filerun.com/docker-tika](https://docs.filerun.com/docker-tika)  
This is my docker-compose.yml, identical to the documentation. I am using Traefik as SSL reverse proxy but I have removed the labels from the FileRun container to keep it readable:

```auto
  filerun:
    image: afian/filerun
    container_name: filerun
    environment:
      PUID: ${PUID}
      PGID: ${PGID}
      TZ: ${TZ}
      FR_DB_HOST: mariadb
      FR_DB_PORT: 3306
      FR_DB_NAME: filerundb
      FR_DB_USER: myusername
      FR_DB_PASS: mydbpassword
      APACHE_RUN_USER: www-data
      APACHE_RUN_USER_ID: 33
      APACHE_RUN_GROUP: www-data
      APACHE_RUN_GROUP_ID: 33
    depends_on:
      - mariadb
    links:
      - mariadb
      - filerun-tika
      - filerun-elasticsearch
    ports:
      - "8000:80"
    volumes:
      - ${USERDIR}/docker/filerun/html:/var/www/html
      - ${USERDIR}/docker/filerun/user-files:/user-files
  filerun-tika:
    image: logicalspark/docker-tikaserver
    container_name: filerun-tika
  filerun-elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.2.4
    container_name: filerun-elasticsearch
    environment:
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    mem_limit: 1g
    volumes:
      - ${USERDIR}/docker/filerun/esearch:/usr/share/elasticsearch/data

```

Problem:  
ElasticSearch container stops after a few seconds. I do not see an error in the log, making it difficult for me to understand where to look for the problem.

```auto
[2020-05-14T13:55:27,867][INFO][o.e.n.Node] [] initializing ...,
[2020-05-14T13:55:27,925][INFO][o.e.e.NodeEnvironment] [qHf94dl] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/nvme0n1p2)]], net usable_space [709.8gb], net total_space [953.3gb], types [btrfs],
[2020-05-14T13:55:27,926][INFO][o.e.e.NodeEnvironment] [qHf94dl] heap size [494.9mb], compressed ordinary object pointers [true],
[2020-05-14T13:55:27,927][INFO][o.e.n.Node] node name [qHf94dl] derived from node ID [qHf94dlLTAOf3UGid6pBAw]; set [node.name] to override,
[2020-05-14T13:55:27,927][INFO][o.e.n.Node] version[6.2.4], pid[1], build[ccec39f/2018-04-12T20:37:28.497551Z], OS[Linux/5.3.0-51-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_161/25.161-b14],
[2020-05-14T13:55:27,927][INFO][o.e.n.Node] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -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=/tmp/elasticsearch.TgEoKMQa, -XX:+HeapDumpOnOutOfMemoryError, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.cgroups.hierarchy.override=/, -Xms512m, -Xmx512m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [aggs-matrix-stats],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [analysis-common],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [ingest-common],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [lang-expression],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [lang-mustache],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [lang-painless],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [mapper-extras],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [parent-join],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [percolator],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [rank-eval],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [reindex],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [repository-url],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [transport-netty4],
[2020-05-14T13:55:29,967][INFO][o.e.p.PluginsService] [qHf94dl] loaded module [tribe],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [ingest-geoip],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [ingest-user-agent],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-core],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-deprecation],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-graph],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-logstash],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-ml],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-monitoring],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-security],
[2020-05-14T13:55:29,968][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-upgrade],
[2020-05-14T13:55:29,969][INFO][o.e.p.PluginsService] [qHf94dl] loaded plugin [x-pack-watcher],
[2020-05-14T13:55:32,781][INFO][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/118] [Main.cc@128] controller (64 bit): Version 6.2.4 (Build 524e7fe231abc1) Copyright (c) 2018 Elasticsearch BV,
[2020-05-14T13:55:34,285][INFO][o.e.d.DiscoveryModule] [qHf94dl] using discovery type [zen],
[2020-05-14T13:55:35,007][INFO][o.e.n.Node] initialized,
[2020-05-14T13:55:35,007][INFO][o.e.n.Node] [qHf94dl] starting ...,
[2020-05-14T13:55:35,252][INFO][o.e.t.TransportService] [qHf94dl] publish_address {172.18.0.11:9300}, bound_addresses {0.0.0.0:9300},
[2020-05-14T13:55:35,281][INFO][o.e.b.BootstrapChecks] [qHf94dl] bound or publishing to a non-loopback address, enforcing bootstrap checks,
ERROR: [1] bootstrap checks failed,
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144],
[2020-05-14T13:55:35,312][INFO][o.e.n.Node] [qHf94dl] stopping ...,
[2020-05-14T13:55:35,411][INFO][o.e.n.Node] [qHf94dl] stopped,
[2020-05-14T13:55:35,411][INFO][o.e.n.Node] [qHf94dl] closing ...,
[2020-05-14T13:55:35,418][INFO][o.e.n.Node] [qHf94dl] closed,
[2020-05-14T13:55:35,420][INFO][o.e.x.m.j.p.NativeController] Native controller process has stopped - no new native processes can be started

```

Why does it stop?

---

<div class="post-metadata">

**Author:** ![hunsw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hunsw/32/93637_2.png) [@hunsw](https://discuss.elastic.co/u/hunsw)\
**Post date:** [May 14, 2020, 12:29pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633/2 "2020-05-14T12:29:04Z")

</div>

It clearly states that

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

```

Please read:  
[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)

And set it on the host level.

---

<div class="post-metadata">

**Author:** ![zilexa](https://avatars.discourse-cdn.com/v4/letter/z/bbe5ce/32.png) [@zilexa](https://discuss.elastic.co/u/zilexa)\
**Post date:** [May 14, 2020, 12:57pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633/3 "2020-05-14T12:57:39Z")

</div>

Thanks, I have suggested the FileRun team to add it to their documentation of ElasticSearch installation as well.

---

<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:** [July 6, 2020, 7:10pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-container-fails-filerun-documentation-followed/232633/5 "2020-07-06T19:10:00Z")

</div>

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