Kibana not receiving data

We were having our Kibana running, but by accident a team member change the size of our EC2 and Kibana went down. We had a BAD GATEWAY error
Our first step was to restart the service
sudo service kibana restart

With this we were able to put it up again, but we're not receiving data, and all past data isn't available.
I went to the 3 nodes of the cluster and did a curl -X GET "localhost:9200/_cluster/health?pretty" and the status is green

  "cluster_name" : "elasticsearch-logs",
  "status" : "green",
  "timed_out" : false,
  "number_of_nodes" : 3,
  "number_of_data_nodes" : 3,
  "active_primary_shards" : 1499,
  "active_shards" : 2998,
  "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

So I went to the kibana logs and found the following:
cat /var/log/kibana/kibana.stderr | grep -i -E "(error|warning)"

And this message appears frequently. I'm assuming there's a service not up, but not sure, getting this idea based on this question

   "response":"{\"error\":{\"root_cause\":[{\"type\":\"cluster_block_exception\",\"reason\":\"blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];\"}],\"type\":\"cluster_block_exception\",\"reason\":\"blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];\"},\"status\":503}"
}Unhandled rejection[  
]blocked by:[  
   SERVICE_UNAVAILABLE/1/state not recovered / initialized

It looks like Kibana is blocked from doing a background task in sending monitoring data to Elasticsearch, because ES is saying it currently stuck working on restoring cluster state.

Are you sure you're talking to the right ES when checked cluster health? Is Kibana maybe connected to a different cluster?

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