Can't set listen all network interfaces


(Михаил) #1

Hello. Default setting elastic listen 127.0.0.1:9200. I need that elastic listen all network interfaces - 0 0.0.0.0:9200
If I set network.host: "0.0.0.0" in /etc/elasticsearch/elaticsearch.yml, I have the next error:

Exception
java.lang.IllegalStateException: failed to obtain node locks, tried [[/opt/2tb/elasticsearch/data/elasticsearch]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?

How I can set listen 0 0.0.0.0:9200 ?
My elastic version 5.1.1 and I have 1 node


(David Pilato) #2

You have already a node running probably.
Check with ps -ef and kill the running node then restart.


(Михаил) #3

Ok. You right! But I have the next:

node validation exception
bootstrap checks failed
initial heap size [34359738368] not equal to maximum heap size [68719476736]; this can cause resize pauses and prevents mlockall from locking the entire heap


(David Pilato) #4

Read https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html


(Михаил) #5

Many Thanks. It helped me


(system) #6

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