# Problems with access to Elasticsearch form outside machine

**URL:** <https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450>\
**Category:** Elasticsearch\
**Created:** [March 15, 2019, 2:18am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450 "2019-03-15T02:18:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alejandro\_Bartolomeo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alejandro_bartolomeo/32/42054_2.png) [@Alejandro\_Bartolomeo](https://discuss.elastic.co/u/Alejandro_Bartolomeo)\
**Post date:** [March 15, 2019, 2:19am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450/1 "2019-03-15T02:19:00Z")

</div>

Hi all, I have problems to configure access to elasticsearch 7 from other machine. I made the same changes like elasticsearch 6.5 (and worked perfect) to access from outside but when I uncomment the "network.host: 0.0.0.0" the process try to start and in a few seconds going down. I attach the log:

[2019-03-15T01:56:48,167][INFO][o.e.t.TransportService] [node-1] publish\_address {192.168.32.136:9300}, bound\_addresses {[::]:9300}  
[2019-03-15T01:56:48,183][INFO][o.e.b.BootstrapChecks] [node-1] bound or publishing to a non-loopback address, enforcing bootstrap checks  
[2019-03-15T01:56:48,246][ERROR][o.e.b.Bootstrap] [node-1] node validation exception  
[1] bootstrap checks failed  
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed\_hosts, discovery.seed\_providers, cluster.initial\_master\_nodes] must be configured  
[2019-03-15T01:56:48,253][INFO][o.e.n.Node] [node-1] stopping ...  
[2019-03-15T01:56:48,270][INFO][o.e.n.Node] [node-1] stopped  
[2019-03-15T01:56:48,271][INFO][o.e.n.Node] [node-1] closing ...  
[2019-03-15T01:56:48,299][INFO][o.e.n.Node] [node-1] closed  
[2019-03-15T01:56:48,300][INFO][o.e.x.m.p.NativeController] [node-1] Native controller process has stopped - no new native processes can be started

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [March 15, 2019, 2:25am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450/2 "2019-03-15T02:25:48Z")

</div>

You are failing on [bootstrap checks](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/bootstrap-checks.html):

```auto
[2019-03-15T01:56:48,246][ERROR][o.e.b.Bootstrap] [node-1] node validation exception
[1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

```

The [cluster coordination algorithm has changed in 7.0](https://www.elastic.co/blog/a-new-era-for-cluster-coordination-in-elasticsearch) and in order to be _safe_ it requires some specific configuration. We relax that requirement (that is, we run in a less-safe mode) when you bind to `localhost` only, but if/when you change `network.host` we enforce that your configure the cluster safely.

This is [covered in the breaking changes documentation](https://www.elastic.co/guide/en/elasticsearch/reference/7.0/breaking-changes-7.0.html#breaking_70_discovery_changes) for 7.0

---

<div class="post-metadata">

**Author:** ![Alejandro\_Bartolomeo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alejandro_bartolomeo/32/42054_2.png) [@Alejandro\_Bartolomeo](https://discuss.elastic.co/u/Alejandro_Bartolomeo)\
**Post date:** [March 15, 2019, 3:05am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450/3 "2019-03-15T03:05:14Z")

</div>

Thanks Tim, I built a test machine with this new version. But to test same interesting new features, I need some cookbook to resolve this config.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 15, 2019, 8:24am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450/4 "2019-03-15T08:24:31Z")

</div>

The resolution is in the error message:

> [@Alejandro\_Bartolomeo](#):
>
> `at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured`

In this case, I think it's enough to set `discovery.seed_hosts: []`.

---

<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:** [April 12, 2019, 8:24am UTC](https://discuss.elastic.co/t/problems-with-access-to-elasticsearch-form-outside-machine/172450/5 "2019-04-12T08:24:44Z")

</div>

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