Skip to content
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 2.0.0-beta connection reset by peer #50

Closed
nlamirault opened this issue Sep 1, 2015 · 2 comments
Closed

elasticsearch 2.0.0-beta connection reset by peer #50

nlamirault opened this issue Sep 1, 2015 · 2 comments

Comments

@nlamirault
Copy link

$ docker run --rm=true -p 9200:9200 -p 9300:9300 elasticsearch:2.0.0-beta1
[2015-09-01 01:15:11,841][INFO ][org.elasticsearch.node   ] [James Howlett] version[2.0.0-beta1], pid[1], build[bfa3e47/2015-08-24T08:41:25Z]
[2015-09-01 01:15:11,843][INFO ][org.elasticsearch.node   ] [James Howlett] initializing ...
[2015-09-01 01:15:11,946][INFO ][org.elasticsearch.plugins] [James Howlett] loaded [], sites []
[2015-09-01 01:15:12,328][INFO ][org.elasticsearch.env    ] [James Howlett] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/sda2)]], net usable_space [144.2gb], net total_space [229gb], spins? [possibly], types [ext4]
[2015-09-01 01:15:17,263][INFO ][org.elasticsearch.node   ] [James Howlett] initialized
[2015-09-01 01:15:17,264][INFO ][org.elasticsearch.node   ] [James Howlett] starting ...
[2015-09-01 01:15:17,364][INFO ][org.elasticsearch.transport.netty] [James Howlett] Bound profile [default] to address {127.0.0.1:9300}
[2015-09-01 01:15:17,365][INFO ][org.elasticsearch.transport.netty] [James Howlett] Bound profile [default] to address {[::1]:9300}
[2015-09-01 01:15:17,366][INFO ][org.elasticsearch.transport] [James Howlett] bound_address {127.0.0.1:9300}, publish_address {127.0.0.1:9300}
[2015-09-01 01:15:17,375][INFO ][org.elasticsearch.discovery] [James Howlett] elasticsearch/UXxoYMfvQAKAj54TalfmyQ
[2015-09-01 01:15:20,441][INFO ][org.elasticsearch.cluster.service] [James Howlett] new_master {James Howlett}{UXxoYMfvQAKAj54TalfmyQ}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2015-09-01 01:15:20,499][INFO ][org.elasticsearch.http.netty] [James Howlett] Bound http to address {127.0.0.1:9200}
[2015-09-01 01:15:20,500][INFO ][org.elasticsearch.http.netty] [James Howlett] Bound http to address {[::1]:9200}
[2015-09-01 01:15:20,501][INFO ][org.elasticsearch.http   ] [James Howlett] bound_address {127.0.0.1:9200}, publish_address {127.0.0.1:9200}
[2015-09-01 01:15:20,501][INFO ][org.elasticsearch.node   ] [James Howlett] started
[2015-09-01 01:15:20,800][INFO ][org.elasticsearch.gateway] [James Howlett] recovered [0] indices into cluster_state

$ curl http://127.0.0.1:9200                                                                                                                                                                         
curl: (56) Recv failure: Connection reset by peer

Any idea ? Thanks

@yosifkit
Copy link
Member

yosifkit commented Sep 1, 2015

Yeah, for 2.0, it looks like they changed the default to only bind to localhost so, in our case, it will be unavailable outside the container. Looks like we'll need to add to the config to get it to bind to a different interface. Running it with --network.host _non_loopback_ will fix it and allow you to test the beta release.

@nlamirault
Copy link
Author

Thanks it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants