Network.host: 0.0.0.0 won't start


(Laurent Goussard) #1

Hello, I've just setup a fresh elasticsearch 5 on a debian 8.6.

In order to test it, remotely, I've added network.host: 0.0.0.0 to my /etc/elasticsearch/elasticsearch.yml but it refuses to restart.

The only log I can have is the systemd one which does not help at all:

nov. 03 21:07:17 my.server systemd[1]: Starting Elasticsearch...
nov. 03 21:07:17 my.server systemd[1]: Started Elasticsearch.
nov. 03 21:07:20 my.server systemd[1]: elasticsearch.service: main process exited, code=ex
nov. 03 21:07:20 my.server systemd[1]: Unit elasticsearch.service entered failed state.

I fell back to a local connection only, but I will soon need to connect remotely to elasticsearch and I can't figure out what's wrong.

Did I miss something ?


(Mark Walkom) #2

Look in /var/log/elasticsearch as well.


(Laurent Goussard) #3

Thank you so much for pointing this log file again (I first took a look but didn't find anything relevant)

Then I read again and found this:

[2016-11-03T21:59:39,968][INFO ][o.e.t.TransportService   ] [RbDA05-] publish_address {188.165.242.83:9300}, bound_addresses {[::]:9300}
[2016-11-03T21:59:39,972][INFO ][o.e.b.BootstrapCheck     ] [RbDA05-] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2016-11-03T21:59:39,974][ERROR][o.e.b.Bootstrap          ] [RbDA05-] node validation exception
bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least [262144]

Now I have to dig a little deeper in sysctl, I suppose.

Thanks @warkolm !


(Mark Walkom) #4

Have a look through here as well - https://www.elastic.co/guide/en/elasticsearch/reference/5.0/bootstrap-checks.html


(Laurent Goussard) #5

In order to help future me or other fellows with the same issue, just read the blog post regarding Bootstrap checks

Thanks again @warkolm, but thoses references pages leads me to a 404. Maybe a l10n issue ?


(Mark Walkom) #6

Sorry - https://www.elastic.co/guide/en/elasticsearch/reference/5.0/setup.html


(system) #7