Bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

[2017-02-15T12:35:42,788][INFO ][o.e.t.TransportService ] [PMxuOyw] publish_address {192.168.63.140:9300}, bound_addresses {192.168.63.140:9300}
[2017-02-15T12:35:42,795][INFO ][o.e.b.BootstrapChecks ] [PMxuOyw] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
ERROR: bootstrap checks failed

I get the error,when I set "network.host: 0.0.0.0 ".but by default 127.0.0.1 is ok.

Check out https://www.elastic.co/guide/en/elasticsearch/reference/5.2/bootstrap-checks.html

Thanks,
I have solved when i read the doc.

@yzx2 May i know what did you change to fix the problem ?

By default, Elasticsearch binds to localhost for HTTP and transport (internal) communication. This is fine for downloading and playing with Elasticsearch, and everyday development but it’s useless for production systems. To form a cluster, Elasticsearch instances must be reachable via transport communication so they must bind transport to an external interface. Thus, we consider an Elasticsearch instance to be in development mode if it does not bind transport to an external interface (the default), and is otherwise in production mode if it does bind transport to an external interface. Note that HTTP can be configured independently of transport via http.host and transport.host; this can be useful for configuring a single instance to be reachable via HTTP for testing purposes without triggering production mode.

Above is in the doc.

I add "network.host: 127.0.0.1" and "http.host: 0.0.0.0" into the configuration file.

2 Likes

The fix you have done is to bind to loopback ip which is localhost.

However, if you want to access ES with an IP like 10.129.120.12 then with above settings you can't. Let me know if you were able to access http://your-id:9200 from browser.

Saurabh

1 Like

I can access ES with an IP from browser.

1 Like

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