spujadas / elk-docker

Elasticsearch, Logstash, Kibana (ELK) Docker image
Other
2.16k stars 908 forks source link

elasticSearch start fail #294

Closed chainray01 closed 5 years ago

chainray01 commented 5 years ago

Dear, elk start fail on centos7 ,could you please help to check?

`[root@localhost /]# sudo docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it - -name elk sebp/elk

spujadas commented 5 years ago

The logs look good to me, perhaps Elasticsearch didn't have enough time to start: try bumping up the ES_CONNECT_RETRY env var to a higher value (say 60, see https://elk-docker.readthedocs.io/#overriding-variables).

chidx commented 5 years ago

I also got the problem when starting ELK on Ubuntu 18.04. I have tried several versions: latest, 730, and 670. All of them give me the error like the first post. Here is my log. I have already given ES_CONNECT_RETRY value to 300 but ELK still cannot start.

spujadas commented 5 years ago

@chidx in your case, there's a start-up error:

[2019-09-05T03:45:49,019][ERROR][o.e.b.Bootstrap          ] [elk] 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]

See https://elk-docker.readthedocs.io/#frequently-encountered-issues

chidx commented 5 years ago

@spujadas ah I missed this little thing. Sorry. Now my ELK can start now. Thank you.

chainray01 commented 5 years ago

The logs look good to me, perhaps Elasticsearch didn't have enough time to start: try bumping up the ES_CONNECT_RETRY env var to a higher value (say 60, see https://elk-docker.readthedocs.io/#overriding-variables).

thx,it works