-
Notifications
You must be signed in to change notification settings - Fork 909
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
elasticsearch "curl: (52) Empty reply from server" on port 9200, Unable to revive connection #123
Comments
Very strange indeed. Could you try to |
Same problem on MAC. Interesting thing is if I start only Kibana and Elasticsearch, everything is fine |
docker-compose run elk curl -XGET 172.17.0.3:9200
curl: (7) Failed to connect to 172.17.0.3 port 9200: Connection refused |
@GabLeRoux OK thanks. |
@GabLeRoux & @yzhang-myob, I had the same issue with Docker for Mac yesterday. Apparently after installing one of the updates the memory settings were reset and it was only allocating 2GB of RAM. After increasing it to 6GB it started working again. Unfortunately there is no way to see this in the logs or am I wrong @spujadas ? |
@geertvanheusden That's correct the logs wouldn't show ES being killed by the OOM killer (workaround that isn't included in the container: http://stackoverflow.com/a/624868/2654646, see #57). |
That totally makes sense. I tried a few solutions from http://stackoverflow.com/a/624868/2654646 to see if it gets killed by OOM, but I couldn't find a "process killed" message anywhere. I used Starting:
Then it fails:
Here I found how to increase docker memory on macOS: I moved from 2gb to 6gb too and it also worked :)
The stats when everything started ok:
We would indeed need a way to see OOM Killer in the logs and the memory requirements should probably be written somewhere in the docs or the readme. |
Thanks for the comprehensive feedback, I'll work as much of it as I can in the docs (these memory requirements keep growing and growing!), and in the image if I can find a way of detecting when ES gets killed. |
@spujadas I am still experiencing this behavior. Downloaded the standard
After a few minutes, I noticed some brief changes in the logs:
It appears that elasticsearch is starting just fine, but the connection is refused.
A
Here is my docker-compose.yml:
Also set Any ideas? |
@ahpearce I'm afraid that given the lack of logs, I'm going to assume that your container is running out of memory and killing ES, see e.g. #57. |
Hello Everybody here is the solution. Please try it. |
Hi there,
I was playing around trying elk. I like how well documented this project is so I gave it a try, but I can't seem to get the kibana to connect to elasticsearch.
docker-compose.yml
I haven't changed any configuration.
Everything seems right,
/var/log/elasticsearch/elasticsearch.log
says it started.From inside the docker contianer, I get a connection refused on port 9200:
I'm not sure what I did wrong.
Running Docker on macOS Sierra 10.12.3
I also tried with
run
instead ofstart
and still fails.The text was updated successfully, but these errors were encountered: