# Bootstrapping faild

**URL:** <https://discuss.elastic.co/t/bootstrapping-faild/211914>\
**Category:** Elasticsearch\
**Created:** [December 15, 2019, 4:27pm UTC](https://discuss.elastic.co/t/bootstrapping-faild/211914 "2019-12-15T16:27:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Bossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefano_bossi/32/41743_2.png) [@Stefano\_Bossi](https://discuss.elastic.co/u/Stefano_Bossi)\
**Post date:** [December 15, 2019, 4:27pm UTC](https://discuss.elastic.co/t/bootstrapping-faild/211914/1 "2019-12-15T16:27:28Z")

</div>

Dear elasticsearch team,

I have tried all the possible solution but I can't installa e new cluster because no master node could be discovered.

My cluster is made by 3 master and 3 data node.  
Here are the master configurations:  
NODE01:

> ```
> cluster.initial_master_nodes:
> - es-ms01
> - es-ms02
> - es-ms03
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-ms01
> node.data: false
> node.master: true
> node.name: es-ms01
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /var/lib/elasticsearch
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

NODE02:

> ```
> cluster.initial_master_nodes:
> - es-ms01
> - es-ms02
> - es-ms03
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-ms02
> node.data: false
> node.master: true
> node.name: es-ms02
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /var/lib/elasticsearch
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

NODE03:

> ```
> cluster.initial_master_nodes:
> - es-ms01
> - es-ms02
> - es-ms03
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-ms03
> node.data: false
> node.master: true
> node.name: es-ms03
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /var/lib/elasticsearch
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

DATA01:

> ```
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-data01
> node.data: true
> node.master: false
> node.name: es-data01
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /mnt/data01,/mnt/data02,/mnt/data03
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

DATA02:

> ```
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-data02
> node.data: true
> node.master: false
> node.name: es-data02
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /mnt/data01,/mnt/data02,/mnt/data03
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

DATA03:

> ```
> cluster.name: es-data
> discovery.seed_hosts:
> - es-ms01
> - es-ms02
> - es-ms03
> network.publish_host: es-data03
> node.data: true
> node.master: false
> node.name: es-data03
> 
> #################################### Paths ####################################
> 
> # Path to directory containing configuration (this file and logging.yml):
> 
> path.data: /mnt/data01,/mnt/data02,/mnt/data03
> path.logs: /var/log/elasticsearch
> action.auto_create_index: true
> 
> ```

I continuously receive this error:  
`[2019-12-15T17:10:41,826][WARN][o.e.c.c.ClusterFormationFailureHelper] [es-ms01] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [es-ms01, es-ms02, es-ms03] to bootstrap a cluster: have discovered [{es-ms01}{ZqCI-_cwQ7iznI9ocOygzA}{IuSN7KoITtSSmmXe2NRR6A}{es-ms01}{10.0.20.111:9300}{ilm}{ml.machine_memory=3973365760, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [10.0.20.112:9300, 10.0.20.113:9300] from hosts providers and [{es-ms01}{ZqCI-_cwQ7iznI9ocOygzA}{IuSN7KoITtSSmmXe2NRR6A}{es-ms01}{10.0.20.111:9300}{ilm}{ml.machine_memory=3973365760, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0`

Just in case could help:  
java is correctly binded on tcpv4 on port 9200 and 9300

> ```
> tcp 0 0 127.0.0.1:9200 0.0.0.0:* LISTEN 994 132983 28897/java
> tcp 0 0 127.0.0.1:9300 0.0.0.0:* LISTEN 994 132941 28897/java
> 
> ```

Firewall is open on those ports via service elasticsearch:

> ```
> public
> target: default
> icmp-block-inversion: no
> interfaces:
> sources:
> services: dhcpv6-client elasticsearch ssh
> ports:
> protocols:
> masquerade: no
> forward-ports:
> source-ports:
> icmp-blocks:
> rich rules:
> 
> ```

I have finished the ideas here, I am stuck !!!!  
Thanks for any help you could give me.  
Regards,  
Steafano

---

<div class="post-metadata">

**Author:** ![Stefano\_Bossi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefano_bossi/32/41743_2.png) [@Stefano\_Bossi](https://discuss.elastic.co/u/Stefano_Bossi)\
**Post date:** [December 15, 2019, 5:25pm UTC](https://discuss.elastic.co/t/bootstrapping-faild/211914/2 "2019-12-15T17:25:32Z")

</div>

I got the problem !!!!!

java was binded to localhost!!! I have noted the error only reading the post to this forum.

Adding the option:

> network.bind\_host: 0.0.0.0

with the option of the Java VM to prefer ipv4 over ipv6:

> -Djava.net.preferIPv4Stack=true

And now I have my cluster working 😄

> {  
> "cluster\_name" : "es-data",  
> "status" : "green",  
> "timed\_out" : false,  
> "number\_of\_nodes" : 6,  
> "number\_of\_data\_nodes" : 3,  
> "active\_primary\_shards" : 0,  
> "active\_shards" : 0,  
> "relocating\_shards" : 0,  
> "initializing\_shards" : 0,  
> "unassigned\_shards" : 0,  
> "delayed\_unassigned\_shards" : 0,  
> "number\_of\_pending\_tasks" : 0,  
> "number\_of\_in\_flight\_fetch" : 0,  
> "task\_max\_waiting\_in\_queue\_millis" : 0,  
> "active\_shards\_percent\_as\_number" : 100.0  
> }

Thanks,  
Stefano

---

<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:** [January 12, 2020, 5:25pm UTC](https://discuss.elastic.co/t/bootstrapping-faild/211914/3 "2020-01-12T17:25:37Z")

</div>

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