docker-compose-elasticsearch-kibana icon indicating copy to clipboard operation
docker-compose-elasticsearch-kibana copied to clipboard

Ping TImeout

Open whoisstan opened this issue 6 years ago • 5 comments

Thanks for providing the docker-compose file. I am struggling with an issue that I believe is related to timeouts:

clock_1 | Elasticsearch WARNING: 2018-10-14T13:42:54Z clock_1 | Unable to revive connection: http://localhost:9200/

I am seeing this when I use the ES npm modue and I believe it's a timeout issue

https://github.com/elastic/elasticsearch-js/issues/142#issuecomment-73555987

Is there an environment variable to adjust that through docker-compose, I am not an ES expert and just starting to use it, hence my question. Thank you.

whoisstan avatar Oct 14 '18 13:10 whoisstan

I also facing the same issue. I cloned the repository and ran docker-compose up -d and then tried to curl localhost.

For few seconds I got curl: (52) Empty reply from server and then started to get curl: (7) Failed to connect to localhost port 9200: Connection refused when running curl http://localhost:9200/_nodes?pretty=true. And Kibana also says Unable to connect to Elasticsearch at http://elasticsearch:9200.

Does it happen the same to you @maxyermayank? Did you get to find a work around @whoisstan?

jonathanmv avatar Oct 30 '18 08:10 jonathanmv

Ah, it seems like this is the same as #1, no?

tp avatar Dec 04 '18 13:12 tp

If someone here is just looking for a simple, single-node ES + Kibana, this worked for me:

docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk

Would like to get back to the cluster setup soon, but for now I just need some version for evaluation.

tp avatar Dec 04 '18 13:12 tp

sudo sysctl -w vm.max_map_count=262144

tigermax139 avatar Dec 06 '18 09:12 tigermax139

sudo sysctl -w vm.max_map_count=262144

This solve memory issues. If you need, you can check logs:

docker-compose logs elasticsearch

ambigus9 avatar Dec 18 '18 21:12 ambigus9