# Red cluster

**URL:** https://discuss.elastic.co/t/red-cluster/165400
**Category:** Elasticsearch
**Created:** [January 23, 2019, 12:07pm UTC](https://discuss.elastic.co/t/red-cluster/165400 "2019-01-23T12:07:10Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)
#### Post date: [January 23, 2019, 12:07pm UTC](https://discuss.elastic.co/t/red-cluster/165400/1 "2019-01-23T12:07:10Z")

</div>

I installed elastic search on 2 servers with different ips. and they are found in the cluster one master and one data node and their names are master and data. when I was trying to run kibana on the master it kept hanging on missing shards so I ran cluster health and got  
"cluster\_name" : "elastic",  
"status" : "red",  
"timed\_out" : false,  
"number\_of\_nodes" : 2,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 0,  
"active\_shards" : 0,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 1,  
"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" : 0.0  
}  
after that I used curl -X GET "localhost:9200/\_cluster/allocation/explain'  
{

"index" : ".kibana\_1",

"shard" : 0,

"primary" : true,

"current\_state" : "unassigned",

"unassigned\_info" : {

"reason" : "CLUSTER\_RECOVERED",

"at" : "2019-01-23T10:27:59.262Z",

"last\_allocation\_status" : "no\_valid\_shard\_copy"

},

"can\_allocate" : "no\_valid\_shard\_copy",

"allocate\_explanation" : "cannot allocate because a previous copy of the primary shard existed but can no longer be found on the nodes in the cluster",

"node\_allocation\_decisions" : [

{

"node\_id" : "seAK3Tv6ScKi408Y5-QoNA",

"node\_name" : "data",

"transport\_address" : "172.18.25.35:9300",

"node\_attributes" : {

"ml.machine\_memory" : "16657784832",

"ml.max\_open\_jobs" : "20",

"xpack.installed" : "true",

"ml.enabled" : "true"

},

"node\_decision" : "no",

"store" : {

"found" : false

}

}

]

}

how can I fix this

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 24, 2019, 3:55am UTC](https://discuss.elastic.co/t/red-cluster/165400/2 "2019-01-24T03:55:17Z")

</div>

Do you have dashboards that you have created that you want to keep?

---

<div class="post-metadata">

### Author: ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)
#### Post date: [January 24, 2019, 4:57am UTC](https://discuss.elastic.co/t/red-cluster/165400/3 "2019-01-24T04:57:01Z")

</div>

No nothing, im ibstalling elastic new on this system.i didnt even get to start kibana from this error

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 24, 2019, 5:02am UTC](https://discuss.elastic.co/t/red-cluster/165400/4 "2019-01-24T05:02:17Z")

</div>

What does the output from the `_cat/indices` API show?

---

<div class="post-metadata">

### Author: ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)
#### Post date: [January 24, 2019, 7:09am UTC](https://discuss.elastic.co/t/red-cluster/165400/5 "2019-01-24T07:09:16Z")

</div>

red open .kibana\_1 QX-PY-EuRdm2ZrvDH5ts6g 1 0

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 24, 2019, 7:09am UTC](https://discuss.elastic.co/t/red-cluster/165400/6 "2019-01-24T07:09:45Z")

</div>

If you delete that index you should recover.

Also you really want to have an odd number of nodes, see [https://www.elastic.co/guide/en/elasticsearch/guide/2.x/important-configuration-changes.html#\_minimum\_master\_nodes](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/important-configuration-changes.html#_minimum_master_nodes) for more.

---

<div class="post-metadata">

### Author: ![fadihaddad](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@fadihaddad](https://discuss.elastic.co/u/fadihaddad)
#### Post date: [January 24, 2019, 7:35am UTC](https://discuss.elastic.co/t/red-cluster/165400/7 "2019-01-24T07:35:34Z")

</div>

Thank you so much for your help

---

<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: [February 21, 2019, 7:35am UTC](https://discuss.elastic.co/t/red-cluster/165400/8 "2019-02-21T07:35:41Z")

</div>

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