Bootstrapping faild

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

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 :smile:

{
"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

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