Red cluster

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

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

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

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

red open .kibana_1 QX-PY-EuRdm2ZrvDH5ts6g 1 0

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 for more.

Thank you so much for your help

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