# \[SOLVED\] Don't succeed to create cluster ES 7.1

**URL:** <https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690>\
**Category:** Elasticsearch\
**Created:** [May 31, 2019, 9:10am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690 "2019-05-31T09:10:19Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 9:10am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/1 "2019-05-31T09:10:19Z")

</div>

Hi,

I'm trying to setup a 3 nodes cluster.

My configuration is :

```
cluster.name: dxproelsme
node.name: dxproelsme01
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: _site_
discovery.seed_hosts:
  - 172.22.2.81
  - 172.22.2.82
  - 172.22.2.83
cluster.initial_master_nodes:
  - 172.22.2.81
  - 172.22.2.82
  - 172.22.2.83
node.master: true
node.data: true
xpack.security.enabled: false

```

No erros in logs.  
Only one node in cluster on each node.

curl [http://172.22.2.81:9200/\_cluster/health?pretty](http://172.22.2.81:9200/_cluster/health?pretty)

```
{
"cluster_name" : "dxproelsme",
"status" : "green",
"time_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes": 1,
"active_primary_shards" : 0,
"active_shards": 0 , 

....
}

```

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [May 31, 2019, 9:42am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/2 "2019-05-31T09:42:19Z")

</div>

network.host: "_site_" might not bind to the correct network if you have multiple network interface. You should be the specific network interface or IP address

Eg. If all your network interface, you want to bind "_eth0_"  
or simply just hardcode the IP address "172.22.2.81"

---

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 9:43am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/3 "2019-05-31T09:43:52Z")

</div>

I have only one IP address.

I also try with IP address but i have the same behaviour.

I see the good IP address in logs.

---

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [May 31, 2019, 9:53am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/4 "2019-05-31T09:53:00Z")

</div>

Try this? network.host will be different for each host  
Also see /var/log/messages for any additional error logs

```auto
cluster.name: dxproelsme
node.name: dxproelsme01
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 172.22.2.81
discovery.seed_hosts:
  - 172.22.2.81
  - 172.22.2.82
  - 172.22.2.83
cluster.initial_master_nodes:
  - dxproelsme01
  - dxproelsme02
  - dxproelsme03

```

---

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 10:01am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/5 "2019-05-31T10:01:57Z")

</div>

I tried your configuration.

Same behaviour.

Logs :

`[2019-05-31T11:58:35,477][INFO][o.e.x.m.p.l.CppLogMessageHandler] [dxproelsme01] [controller/16133] [Main.cc@109] controller (64 bit): Version 7.1.0 (Build a8ee6de8087169) Copyright (c) 2019 Elasticsearch BV [2019-05-31T11:58:37,461][DEBUG][o.e.a.ActionModule] [dxproelsme01] Using REST wrapper from plugin org.elasticsearch.xpack.security.Security [2019-05-31T11:58:42,224][INFO][o.e.d.DiscoveryModule] [dxproelsme01] using discovery type [zen] and seed hosts providers [settings] [2019-05-31T11:58:46,325][INFO][o.e.n.Node] [dxproelsme01] initialized [2019-05-31T11:58:46,326][INFO][o.e.n.Node] [dxproelsme01] starting ... [2019-05-31T11:58:46,551][INFO][o.e.t.TransportService] [dxproelsme01] publish_address {172.22.2.81:9300}, bound_addresses {172.22.2.81:9300} [2019-05-31T11:58:46,567][INFO][o.e.b.BootstrapChecks] [dxproelsme01] bound or publishing to a non-loopback address, enforcing bootstrap checks [2019-05-31T11:58:46,631][INFO][o.e.c.c.Coordinator] [dxproelsme01] cluster UUID [Ki2hYWPYTH-XL3Fm6sIKxg] [2019-05-31T11:58:46,816][INFO][o.e.c.s.MasterService] [dxproelsme01] elected-as-master ([1] nodes joined)[{dxproelsme01}{FFrdlUYsT6S9RKDwyLzs9g}{th5QPlbWSO2PLFyOrsUUjQ}{172.22.2.81}{172.22.2.81:9300}{ml.machine_memory=16658423808, xpack.installed=true, ml.max_open_jobs=20} elect leader, _BECOME_MASTER_TASK_, _FINISH_ELECTION_], term: 16, version: 50, reason: master node changed {previous [], current [{dxproelsme01}{FFrdlUYsT6S9RKDwyLzs9g}{th5QPlbWSO2PLFyOrsUUjQ}{172.22.2.81}{172.22.2.81:9300}{ml.machine_memory=16658423808, xpack.installed=true, ml.max_open_jobs=20}]} [2019-05-31T11:58:46,989][INFO][o.e.c.s.ClusterApplierService] [dxproelsme01] master node changed {previous [], current [{dxproelsme01}{FFrdlUYsT6S9RKDwyLzs9g}{th5QPlbWSO2PLFyOrsUUjQ}{172.22.2.81}{172.22.2.81:9300}{ml.machine_memory=16658423808, xpack.installed=true, ml.max_open_jobs=20}]}, term: 16, version: 50, reason: Publication{term=16, version=50} [2019-05-31T11:58:47,053][INFO][o.e.h.AbstractHttpServerTransport] [dxproelsme01] publish_address {172.22.2.81:9200}, bound_addresses {172.22.2.81:9200} [2019-05-31T11:58:47,054][INFO][o.e.n.Node] [dxproelsme01] started [2019-05-31T11:58:47,281][WARN][o.e.x.s.a.s.m.NativeRoleMappingStore] [dxproelsme01] Failed to clear cache for realms [[]] [2019-05-31T11:58:47,353][INFO][o.e.l.LicenseService] [dxproelsme01] license [7dd8f6c0-60ef-4ea5-bae1-c4fcf3e6aa9a] mode [basic] - valid [2019-05-31T11:58:47,369][INFO][o.e.g.GatewayService] [dxproelsme01] recovered [0] indices into cluster_state`

---

<div class="post-metadata">

**Author:** ![anon17386273](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anon17386273](https://discuss.elastic.co/u/anon17386273)\
**Post date:** [May 31, 2019, 10:04am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/6 "2019-05-31T10:04:29Z")

</div>

Are you using Linux? Is selinux=disabled?  
Check here: /etc/sysconfig/selinux

---

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 11:09am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/7 "2019-05-31T11:09:13Z")

</div>

Yes RedHat.

selinux is disabled.

---

<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:** [May 31, 2019, 11:26am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/8 "2019-05-31T11:26:56Z")

</div>

Can you share the full output of `GET /` from all three nodes? I.e. something like these three commands:

```nohighlight
curl http://172.22.2.81:9200/
curl http://172.22.2.82:9200/
curl http://172.22.2.83:9200/

```

---

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 11:31am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/9 "2019-05-31T11:31:15Z")

</div>

```
root@dxproelsme03:~# curl http://172.22.2.81:9200
{
  "name" : "dxproelsme01",
  "cluster_name" : "dxproelsme",
  "cluster_uuid" : "Ki2hYWPYTH-XL3Fm6sIKxg",
  "version" : {
    "number" : "7.1.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "606a173",
    "build_date" : "2019-05-16T00:43:15.323135Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}
root@dxproelsme03:~# curl http://172.22.2.82:9200
{
  "name" : "dxproelsme02",
  "cluster_name" : "dxproelsme",
  "cluster_uuid" : "6CCZsxyYSJylB9P_kujFlA",
  "version" : {
    "number" : "7.1.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "606a173",
    "build_date" : "2019-05-16T00:43:15.323135Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}
root@dxproelsme03:~# curl http://172.22.2.83:9200
{
  "name" : "dxproelsme03",
  "cluster_name" : "dxproelsme",
  "cluster_uuid" : "sRZoKEEDQZywbRU3qb8L0Q",
  "version" : {
    "number" : "7.1.0",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "606a173",
    "build_date" : "2019-05-16T00:43:15.323135Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}
```

---

<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:** [May 31, 2019, 11:35am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/10 "2019-05-31T11:35:34Z")

</div>

Thanks. The three nodes all have distinct cluster UUIDs:

```nohighlight
  "cluster_uuid" : "Ki2hYWPYTH-XL3Fm6sIKxg",
  "cluster_uuid" : "6CCZsxyYSJylB9P_kujFlA",
  "cluster_uuid" : "sRZoKEEDQZywbRU3qb8L0Q",

```

This is probably because the first time they started up you were not using the config you quote above, and so they each formed a one-node cluster. You cannot merge separate clusters together. Instead you will need to start again from the beginning: wipe their data directories and restart them, and they should form into a single cluster this time.

---

<div class="post-metadata">

**Author:** ![jmilot](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@jmilot](https://discuss.elastic.co/u/jmilot)\
**Post date:** [May 31, 2019, 11:40am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/11 "2019-05-31T11:40:21Z")

</div>

Someone start all node before the configuration.

I delete data dir and now it's ok.

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:** [June 28, 2019, 11:40am UTC](https://discuss.elastic.co/t/solved-dont-succeed-to-create-cluster-es-7-1/183690/12 "2019-06-28T11:40:28Z")

</div>

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