55

When I am trying to start Kibana I am facing the following issue. I first restarted my elasticsearch server it was running successfully. After starting Elasticsearch I tried to start Kibana but no luck.

{"name":"Kibana","hostname":"ABCD","pid":3848,"level":30,"msg":"Elasticsearch is still initializing the kibana index... Trying again in 2.5 second.","time":"2015-07-03T07:35:34.936Z","v":0}

Thanks in advance

Alok Patel
  • 7,842
  • 5
  • 31
  • 47
Mangoski
  • 2,058
  • 5
  • 25
  • 43

4 Answers4

81

the curl -XDELETE http://localhost:9200/.kibana command works fine, however you lose all your Kibana settings (indexes, graphs, dashboards); by just querying the index I've solved the problem, without losing my data. For example:

curl -s http://localhost:9200/.kibana/_recovery?pretty
curl -XPUT 'localhost:9200/.kibana/_settings' -d '
{
    "index" : {
        "number_of_replicas" : 0
    }
}'

Then start Kibana, it should work.

Gael Le Moellic

g t
  • 7,287
  • 7
  • 50
  • 85
gaellm
  • 851
  • 6
  • 4
  • 1
    I only ran the first curl statement and it worked for me. No idea why. Would love an explanation/more details if possible. – rabidang3ls Feb 05 '18 at 23:05
  • 3
    with ES 6 and above, you'll probably need to add `-H 'Content-Type: application/json'` to the second curl command -- [see the announcement](https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests) – a different ben Mar 13 '18 at 06:51
  • life safer, just the first curl request works if you deleted your .kibana index, works also on opensearch – Antonio Terreno Jun 29 '22 at 12:31
65

Warning: Removing .kibana index will make you lose all your kibana settings (indexes, graphs, dashboards)

This behavior is sometimes caused by an existing .kibana index. Kindly delete the .kibana index in elasticsearch using following command:

curl -XDELETE http://localhost:9200/.kibana

After deleting the index, restart Kibana.

If the problem still persists, and you are willing to lose any existing data, you can try deleting all indexes using following command:

curl -XDELETE http://localhost:9200/*

Followed by restarting Kibana.

Note: localhost:9200 is the elasticsearch server's host:port, which may be different in your case.

FluxLemur
  • 1,827
  • 16
  • 18
Yuvraj Gupta
  • 2,475
  • 16
  • 26
6

Sometimes you need to wait few minutes after restarting ES.
That can be also connected with low disk space.
Observed on AWS t2.small machine with ELK stack.

pbaranski
  • 22,778
  • 19
  • 100
  • 117
-2

Something is wrong with your Kibana index inside elasticsearch. I had the same message and i just deleted my Kibana index and then, when i restarted it, a new index of Kibana was created by the service.

lenz
  • 5,658
  • 5
  • 24
  • 44