# Change elasticsearch.yml and now ES will not run

**URL:** <https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067>\
**Category:** Elasticsearch\
**Created:** [September 11, 2017, 1:35pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067 "2017-09-11T13:35:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dataminer](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dataminer](https://discuss.elastic.co/u/dataminer)\
**Post date:** [September 11, 2017, 1:35pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/1 "2017-09-11T13:35:38Z")

</div>

Okay - have had a single node working (ES5.5) for a week or so using network.host as 127.0.0.1, indexing and pushing responses to queries without a problem until today.

Today I wanted to allow access from another machine so changed network.host to:

network.host: ['127.0.0.1', '192.168.0.5']

and ES will not run.

It starts up, but 15 - 17 seconds later it dies, no log files given!

Any ideas why this may be happening? I comment out the network.host line and it runs fine again..........very confused!

Thanks

---

<div class="post-metadata">

**Author:** ![rkpotdar](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rkpotdar](https://discuss.elastic.co/u/rkpotdar)\
**Post date:** [September 11, 2017, 1:42pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/2 "2017-09-11T13:42:01Z")

</div>

What does the ES console show?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 11, 2017, 1:48pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/3 "2017-09-11T13:48:18Z")

</div>

Can you try:

```auto
network.host: ["127.0.0.1", "192.168.0.5"]

```

---

<div class="post-metadata">

**Author:** ![dataminer](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dataminer](https://discuss.elastic.co/u/dataminer)\
**Post date:** [September 11, 2017, 1:56pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/4 "2017-09-11T13:56:20Z")

</div>

rkpotdar - please see below. I missed the log file with this in that shows bootstrap checks are failing......not sure what that means so Google hunting I will go!

dadoonet - tried but same result unfortunately.

> [2017-09-11T13:52:53,987][WARN][o.e.b.JNANatives] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory  
> [2017-09-11T13:52:53,990][WARN][o.e.b.JNANatives] This can result in part of the JVM being swapped out.  
> [2017-09-11T13:52:53,990][WARN][o.e.b.JNANatives] Increase RLIMIT\_MEMLOCK, soft limit: 65536, hard limit: 65536  
> [2017-09-11T13:52:53,990][WARN][o.e.b.JNANatives] These can be adjusted by modifying /etc/security/limits.conf, for example:  
> # allow user 'elasticsearch' mlockall  
> elasticsearch soft memlock unlimited  
> elasticsearch hard memlock unlimited  
> [2017-09-11T13:52:53,991][WARN][o.e.b.JNANatives] If you are logged in interactively, you will have to re-login for the new limits to take effect.  
> [2017-09-11T13:52:54,318][INFO][o.e.n.Node] [hash-1] initializing ...  
> [2017-09-11T13:52:54,563][INFO][o.e.e.NodeEnvironment] [hash-1] using [1] data paths, mounts [[/ (/dev/loop1)]], net usable\_space [10.7gb], net total\_space [29.4gb], spins? [possibly], types [ext4]  
> [2017-09-11T13:52:54,564][INFO][o.e.e.NodeEnvironment] [hash-1] heap size [1.9gb], compressed ordinary object pointers [true]  
> [2017-09-11T13:52:54,589][INFO][o.e.n.Node] [hash-1] node name [hash-1], node ID [G3HvJKb-RsmHAkvCnYkMEw]  
> [2017-09-11T13:52:54,589][INFO][o.e.n.Node] [hash-1] version[5.5.2], pid[511], build[b2f0c09/2017-08-14T12:33:14.154Z], OS[Linux/4.10.17-2-pve/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0\_131/25.131-b11]  
> [2017-09-11T13:52:54,589][INFO][o.e.n.Node] [hash-1] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/usr/share/elasticsearch]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [aggs-matrix-stats]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [ingest-common]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [lang-expression]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [lang-groovy]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [lang-mustache]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [lang-painless]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [parent-join]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [percolator]  
> [2017-09-11T13:52:57,182][INFO][o.e.p.PluginsService] [hash-1] loaded module [reindex]  
> [2017-09-11T13:52:57,183][INFO][o.e.p.PluginsService] [hash-1] loaded module [transport-netty3]  
> [2017-09-11T13:52:57,183][INFO][o.e.p.PluginsService] [hash-1] loaded module [transport-netty4]  
> [2017-09-11T13:52:57,183][INFO][o.e.p.PluginsService] [hash-1] no plugins loaded  
> [2017-09-11T13:53:01,235][INFO][o.e.d.DiscoveryModule] [hash-1] using discovery type [zen]  
> [2017-09-11T13:53:02,575][INFO][o.e.n.Node] [hash-1] initialized  
> [2017-09-11T13:53:02,590][INFO][o.e.n.Node] [hash-1] starting ...  
> [2017-09-11T13:53:02,969][INFO][o.e.t.TransportService] [hash-1] publish\_address {192.168.0.5:9300}, bound\_addresses {127.0.0.1:9300}, {192.168.0.5:9300}  
> [2017-09-11T13:53:02,982][INFO][o.e.b.BootstrapChecks] [hash-1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks  
> [2017-09-11T13:53:03,002][ERROR][o.e.b.Bootstrap] [hash-1] node validation exception  
> [2] bootstrap checks failed  
> [1]: memory locking requested for elasticsearch process but memory is not locked  
> [2]: max virtual memory areas vm.max\_map\_count [65530] is too low, increase to at least [262144]  
> [2017-09-11T13:53:03,043][INFO][o.e.n.Node] [hash-1] stopping ...  
> [2017-09-11T13:53:03,133][INFO][o.e.n.Node] [hash-1] stopped  
> [2017-09-11T13:53:03,133][INFO][o.e.n.Node] [hash-1] closing ...  
> [2017-09-11T13:53:03,152][INFO][o.e.n.Node] [hash-1] closed

---

<div class="post-metadata">

**Author:** ![rkpotdar](https://avatars.discourse-cdn.com/v4/letter/r/f0a364/32.png) [@rkpotdar](https://discuss.elastic.co/u/rkpotdar)\
**Post date:** [September 11, 2017, 2:02pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/5 "2017-09-11T14:02:53Z")

</div>

I suspect that your transport.host is only the localhost while the network.host has both local and a new IP. Could you try adding this new IP to transport.host?

---

<div class="post-metadata">

**Author:** ![dataminer](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@dataminer](https://discuss.elastic.co/u/dataminer)\
**Post date:** [September 11, 2017, 2:05pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/6 "2017-09-11T14:05:17Z")

</div>

Thanks for the suggestions above guys - had a dig about on the bootstrap tests and found an extra line I had to add into the elasticsearch.yml file to get it working after adding an 'external' IP:

```
discovery.type: single-node

```

Now stays up and is working!

Appreciate the fast replies as well - thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 9, 2017, 2:05pm UTC](https://discuss.elastic.co/t/change-elasticsearch-yml-and-now-es-will-not-run/100067/7 "2017-10-09T14:05:35Z")

</div>

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