# Error "Kibana server is not ready yet"

**URL:** <https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834>\
**Category:** Kibana\
**Created:** [November 15, 2018, 10:43am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834 "2018-11-15T10:43:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![litti](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@litti](https://discuss.elastic.co/u/litti)\
**Post date:** [November 15, 2018, 10:43am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/1 "2018-11-15T10:43:09Z")

</div>

Since last night I experience the error message "Kibana server is not ready yet" in the browser when I want to open Kibana.

I've done a lot of research, but I can't find the reason.

I've uploaded the logs at [https://www.dropbox.com/s/o0xdiybnv8n2qhd/kibana.zip?dl=0](https://www.dropbox.com/s/o0xdiybnv8n2qhd/kibana.zip?dl=0). In the kibana.log following looks strange:

```
{"type":"log","@timestamp":"2018-11-15T09:49:47Z","tags":["license","info","xpack"],"pid":3325,"message":"Imported license information from Elasticsearch for the [monitoring] cluster: mode: basic | status: active"}
{"type":"log","@timestamp":"2018-11-15T09:49:48Z","tags":["reporting","warning"],"pid":3325,"message":"Enabling the Chromium sandbox provides an additional layer of protection."}
{"type":"log","@timestamp":"2018-11-15T09:49:48Z","tags":["info","migrations"],"pid":3325,"message":"Creating index .kibana_2."}

{"type":"error","@timestamp":"2018-11-15T10:01:07Z","tags":["warning","stats-collection"],"pid":3325,"level":"error","error":{"message":"[no_shard_available_action_exception] No shard available for [get [.kibana][doc][config:6.5.0]: routing [null]]","name":"Error","stack":"[no_shard_available_action_exception] No shard available for [get [.kibana][doc][config:6.5.0]: routing [null]] :: {\"path\":\"/.kibana/doc/config%3A6.5.0\",\"query\":{},\"statusCode\":503,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"no_shard_available_action_exception\\\",\\\"reason\\\":\\\"No shard available for [get [.kibana][doc][config:6.5.0]: routing [null]]\\\"}],\\\"type\\\":\\\"no_shard_available_action_exception\\\",\\\"reason\\\":\\\"No shard available for [get [.kibana][doc][config:6.5.0]: routing [null]]\\\"},\\\"status\\\":503}\"}\n at respond (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:308:15)\n at checkRespForFailure (/usr/share/kibana/node_modules/elasticsearch/src/lib/transport.js:267:7)\n at HttpConnector.<anonymous> (/usr/share/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:165:7)\n at IncomingMessage.wrapper (/usr/share/kibana/node_modules/elasticsearch/node_modules/lodash/lodash.js:4949:19)\n at emitNone (events.js:111:20)\n at IncomingMessage.emit (events.js:208:7)\n at endReadableNT (_stream_readable.js:1064:12)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickCallback (internal/process/next_tick.js:180:9)"},"message":"[no_shard_available_action_exception] No shard available for [get [.kibana][doc][config:6.5.0]: routing [null]]"}
{"type":"log","@timestamp":"2018-11-15T10:01:07Z","tags":["warning","stats-collection"],"pid":3325,"message":"Unable to fetch data from kibana_settings collector"}

```

The status of elasticsearch is:

```
{
    "name": "mX--zzP",
    "cluster_name": "feondi",
    "cluster_uuid": "43eRvFDTTp6xxzqMdz-xLw",
    "version": {
        "number": "6.5.0",
        "build_flavor": "default",
        "build_type": "deb",
        "build_hash": "816e6f6",
        "build_date": "2018-11-09T18:58:36.352602Z",
        "build_snapshot": false,
        "lucene_version": "7.5.0",
        "minimum_wire_compatibility_version": "5.6.0",
        "minimum_index_compatibility_version": "5.0.0"
    },
    "tagline": "You Know, for Search"
}

```

Can you please help me to get Kibana up and running again?

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 15, 2018, 11:04am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/2 "2018-11-15T11:04:27Z")

</div>

Hey @litti,

Hmm, what I see in the logs is `This version of Kibana requires Elasticsearch v6.5.0 on all nodes. I found the following incompatible nodes in your cluster: v6.4.0 @ 127.0.0.1:9200 (127.0.0.1)`, so that doesn't allow Kibana to work properly. Are you sure you don't have some 6.4.0 node somewhere running within the same cluster?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![clozada](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@clozada](https://discuss.elastic.co/u/clozada)\
**Post date:** [November 15, 2018, 11:29am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/3 "2018-11-15T11:29:09Z")

</div>

I have the same issue and I have updated the whole stack. #  
According to my logs and case - the issue with Elasticsearch is an outdated plugging that wasn't updated "on the fly" the `ingest-geoip`  
so you can take in consideration what to do - update it or delete it. and try again. . .

---

<div class="post-metadata">

**Author:** ![litti](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@litti](https://discuss.elastic.co/u/litti)\
**Post date:** [November 15, 2018, 12:00pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/4 "2018-11-15T12:00:39Z")

</div>

Hi Oleg,  
thanks a lot for looking into this. Yes, there is only one node (localhost) in the cluster. That has version 6.5.0

But creating a fresh empty log lead me to the solution: There was a message "Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana\_2 and restarting Kibana."  
So I've done this and everything is well again 🙂

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![litti](https://avatars.discourse-cdn.com/v4/letter/l/a183cd/32.png) [@litti](https://discuss.elastic.co/u/litti)\
**Post date:** [November 15, 2018, 12:02pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/5 "2018-11-15T12:02:21Z")

</div>

Hi Carlos,  
thanks a lot for looking into this!

I've tried this but there is no plugin installed ("elasticsearch-plugin" gives an empty list).

But I found the solution looking at an empty log - there was an index .kibana\_2 which locked the migration.

---

<div class="post-metadata">

**Author:** ![lnx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lnx/32/48753_2.png) [@lnx](https://discuss.elastic.co/u/lnx)\
**Post date:** [November 15, 2018, 12:37pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/6 "2018-11-15T12:37:04Z")

</div>

I'm having the same problem, but deleting .kibana\_2 didn't help - Kibana starts up and seems to hang after the logline stating that it's reindexing into .kibana\_2 - any suggestions?

edit: no es or kibana plugins installed, standard set of logstash plugins installed.

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 15, 2018, 12:46pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/7 "2018-11-15T12:46:20Z")

</div>

> [@lnx](#):
>
> edit: no es or kibana plugins installed, standard set of logstash plugins installed.

How is that can be? Both "Elasticsearch" (the one that allows Kibana to communicate with ES) and "Kibana" (Discover, Dashboard and other Kibana app parts) plugins are installed by default, you can't "uninstall" them.

---

<div class="post-metadata">

**Author:** ![lnx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lnx/32/48753_2.png) [@lnx](https://discuss.elastic.co/u/lnx)\
**Post date:** [November 15, 2018, 12:50pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/8 "2018-11-15T12:50:13Z")

</div>

What I mean is, "elasticsearch-plugin list" returns nothing, so I can't upgrade out of date plugins because there aren't any. In any case, release notes say this:

> Kibana gets stuck when upgrading from an older version
> 
> After upgrading from an older version of Kibana while using X-Pack security, if you get a permission error when you start Kibana for the first time, do the following steps to recover:
> 
> Stop Kibana  
> Delete the .kibana\_1 and .kibana\_2 indices that were created  
> Create a new role in Elasticsearch that has the all permission for the .tasks index  
> Create a new user in Elasticsearch that has the kibana\_system role as well as the new role you just created  
> Update elasticsearch.username and elasticsearch.password in kibana.yml with the details from that new user  
> Start Kibana
> 
> This will be fixed in a future bug fix release, at which time you can go back to using the built-in kibana user.

So I'm going to work through this, I think this is my problem.

edit:

Solved

What I ended up doing was rolling back to 6.4.0, creating the new role and the new user as described above, and then upgraded to 6.5.0 using the repo. No more hanging on Kibana startup and it's successfully reindexed .kibana:

```
{"type":"log","@timestamp":"2018-11-15T13:37:14Z","tags":["info","migrations"],"pid":15040,"message":"Creating index .kibana_2."}
{"type":"log","@timestamp":"2018-11-15T13:37:15Z","tags":["info","migrations"],"pid":15040,"message":"Reindexing .kibana to .kibana_1"}
{"type":"log","@timestamp":"2018-11-15T13:37:16Z","tags":["info","migrations"],"pid":15040,"message":"Migrating .kibana_1 saved objects to .kibana_2"}
{"type":"log","@timestamp":"2018-11-15T13:37:16Z","tags":["info","migrations"],"pid":15040,"message":"Pointing alias .kibana to .kibana_2."}
{"type":"log","@timestamp":"2018-11-15T13:37:16Z","tags":["info","migrations"],"pid":15040,"message":"Finished in 1983ms."}
{"type":"log","@timestamp":"2018-11-15T13:37:16Z","tags":["listening","info"],"pid":15040,"message":"Server running at http://0.0.0.0:5601"}

```

---

<div class="post-metadata">

**Author:** ![Balu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balu/32/37569_2.png) [@Balu](https://discuss.elastic.co/u/Balu)\
**Post date:** [November 15, 2018, 2:00pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/9 "2018-11-15T14:00:58Z")

</div>

FWIW, I'm having the same issue, but downgrading to 6.4.3 didn't work for me.

I keep getting the error message: `plugin:security@6.4.3 Privileges are missing and can't be removed, currently.`

Since I'm very new with the ELK stack I guess I have to look into how to create users and roles manually in ES next....

I'm trying to do that using

```
curl -X POST "10.42.10.204:9200/_xpack/security/role/tasks_bugfix" -H 'Content-Type: application/json' -d'
{
  "indices": [
    {
      "names": [".tasks"],
      "privileges": ["all"],
    }
  ]
}
'

```

But that results in `No handler found for uri [/_xpack/security/role/tasks_bugfix] and method [POST]`?

---

<div class="post-metadata">

**Author:** ![kyuubi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kyuubi/32/27304_2.png) [@kyuubi](https://discuss.elastic.co/u/kyuubi)\
**Post date:** [November 15, 2018, 2:36pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/10 "2018-11-15T14:36:14Z")

</div>

I had the exact same problem after upgrading all Elastic components in my Stack.  
Since it is more a "test environment", the simplest solution for me was deleting all indicies older than 6.4.2

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [November 15, 2018, 2:49pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/11 "2018-11-15T14:49:01Z")

</div>

> [@Balu](#):
>
> plugin:security@6.4.3 Privileges are missing and can't be removed, currently.

I've been told that this [https://github.com/elastic/kibana/pull/24873](https://github.com/elastic/kibana/pull/24873) will fix this downgrading issue. But for now, when you downgrade, you need to manually delete the space specific Kibana "application privileges", e.g.:

```auto
curl -u elastic:changeme -XDELETE localhost:9200/_xpack/security/privilege/kibana-.kibana/space_all
curl -u elastic:changeme -XDELETE localhost:9200/_xpack/security/privilege/kibana-.kibana/space_read

```

---

<div class="post-metadata">

**Author:** ![Balu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balu/32/37569_2.png) [@Balu](https://discuss.elastic.co/u/Balu)\
**Post date:** [November 15, 2018, 2:59pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/12 "2018-11-15T14:59:54Z")

</div>

I'm getting a similar `No handler found for uri [/_xpack/security/privilege/kibana-.kibana/space_all] and method [DELETE]` as above. I do have to connect to one ES node, right?

How would I - instead of downgrading - do the two steps listed in the Release notes?

> Create a new role in Elasticsearch that has the all permission for the .tasks index  
> Create a new user in Elasticsearch that has the kibana\_system role as well as the new role you just created

---

<div class="post-metadata">

**Author:** ![tomass](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tomass](https://discuss.elastic.co/u/tomass)\
**Post date:** [November 15, 2018, 3:15pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/13 "2018-11-15T15:15:03Z")

</div>

I successfully downgraded by renaming kibana index. In kibana config changed from .kibana to .kibana2, then used below to move data from old index to new:  
POST \_reindex?wait\_for\_completion=true  
{  
"source": {  
"index": ".kibana"  
},  
"dest": {  
"index": ".kibana2"  
}  
}

---

<div class="post-metadata">

**Author:** ![Balu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balu/32/37569_2.png) [@Balu](https://discuss.elastic.co/u/Balu)\
**Post date:** [November 15, 2018, 3:20pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/14 "2018-11-15T15:20:31Z")

</div>

Ok, I was able to do the two steps using the Cerebro rest interface (I guess I'm doing something wrong with curl to get the `No handler found` error - I noticed in Cerebro that without the beginning `/` it works):

`path: _xpack/security/role/tasks_bugfix`

```auto
{
  "indices": [
    {
      "names": [".tasks"],
      "privileges": ["all"]
    }
  ]
}

```

`path: _xpack/security/user/user_bugfix`

```auto
{
  "password" : "CHANGETHIS",
  "full_name" : "User Bugfix",
  "email" : "email@example.com",
  "roles" : ["kibana_system", "tasks_bugfix"]
}

```

Next I replaced `elasticsearch.username` and `elasticsearch.password` in `/etc/kibana/kibana.yml` with `user_bugfix` and `CHANGETHIS`, made sure that the two `kibana_1` and `kibana_2` indices were gone and started kibana.

Looks like it's working now.

Now I guess I need to wait for the bugfix release to remove the extra role and user and switch back to the old one.

---

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [November 16, 2018, 9:50am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/15 "2018-11-16T09:50:35Z")

</div>

Hi,

Today also i updated kibana elasticsearch and logstash from 6.4 to 6.5 and i have exactly the same problem. Kibana cannot start and i am getting the same error "Kibana server is not ready yet"

Please can you help me to overcome this? How i can check the logs and what steps i have to do.  
I have installed them all to a Centos 7 machine.

Best Regards,  
Thanos

---

<div class="post-metadata">

**Author:** ![antonopo](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@antonopo](https://discuss.elastic.co/u/antonopo)\
**Post date:** [November 16, 2018, 10:47am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/16 "2018-11-16T10:47:55Z")

</div>

> [@antonopo](#):
>
> "Kibana server is not ready yet"

I solved this problem by doing this

curl -XDELETE [http://localhost:9200/.kibana](http://localhost:9200/.kibana)

curl -XDELETE [http://localhost:9200/.kibana](http://localhost:9200/.kibana)\*

curl -XDELETE [http://localhost:9200/.kibana\_2](http://localhost:9200/.kibana_2)

curl -XDELETE [http://localhost:9200/.kibana\_1](http://localhost:9200/.kibana_1)

---

<div class="post-metadata">

**Author:** ![Balu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/balu/32/37569_2.png) [@Balu](https://discuss.elastic.co/u/Balu)\
**Post date:** [November 16, 2018, 11:01am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/17 "2018-11-16T11:01:29Z")

</div>

The proper way is as described in the [Release Notes](https://www.elastic.co/guide/en/kibana/current/release-notes-6.5.0.html#known-issues-6.5.0)

1. Stop Kibana  
This depends on your operating system

2. Delete the `.kibana_1` and `.kibana_2` indices that were created  
I used the Cerebro frontend to do that, because I keep having troubles with curl. But it should be possible to delete them using (localhost being an Elasticsearch node).

```auto
curl -XDELETE http://localhost:9200/.kibana_1
curl -XDELETE http://localhost:9200/.kibana_2

```

1. Create a new role in Elasticsearch that has `create_index` , `create` , and `read` permissions for the .tasks index  
As I wrote above, curl didn't work, so I did this in the Cerebro rest interface:

`path: _xpack/security/role/tasks_bugfix`

```auto
{
  "indices": [
    {
      "names": [".tasks"],
      "privileges": ["all"]
    }
  ]
}

```

1. Create a new user in Elasticsearch that has the `kibana_system` role as well as the new role you just created (note: `CHANGETHIS`)

`path: _xpack/security/user/user_bugfix`

```auto
{
  "password" : "CHANGETHIS",
  "full_name" : "User Bugfix",
  "email" : "email@example.com",
  "roles" : ["kibana_system", "tasks_bugfix"]
}

```

1. Update `elasticsearch.username` and `elasticsearch.password` in kibana.yml with the details from that new user  
The location of the kibana.yml depends on your installation

2. If using a Kibana secure settings keystore, remove keys `elasticsearch.username` and `elasticsearch.password` from the keystore using the `kibana-keystore` tool. Add these keys back to the keystore using the new user and password as values.  
Since I don't use keystore yet, I can't comment on this, but the description seems good enough.

3. Start Kibana This will be fixed in a future bug fix release, at which time you can go back to using the built-in `kibana` user.  
As above this depends on your system. After this bug is fixed in a later release you can undo all these changes.

---

<div class="post-metadata">

**Author:** ![DarrienG](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@DarrienG](https://discuss.elastic.co/u/DarrienG)\
**Post date:** [November 16, 2018, 8:56pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/18 "2018-11-16T20:56:01Z")

</div>

Restarting all of the services fixed it for me.

```
sudo systemctl restart logstash elasticsearch kibana

```

And then if it still doesn't work, give Kibana one more restart and give it a little time.

```
sudo systemctl restart kibana

```

Check 🙂

---

<div class="post-metadata">

**Author:** ![vagrants](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@vagrants](https://discuss.elastic.co/u/vagrants)\
**Post date:** [November 16, 2018, 10:49pm UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/19 "2018-11-16T22:49:45Z")

</div>

Is .kibana index real name? if it is alias name, index migration will fail.

---

<div class="post-metadata">

**Author:** ![gyau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gyau/32/37824_2.png) [@gyau](https://discuss.elastic.co/u/gyau)\
**Post date:** [November 19, 2018, 11:08am UTC](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/20 "2018-11-19T11:08:50Z")

</div>

I just deleted both kibana\_1 and kibana\_2, but now my old index patterns, visualizations, everything is missing. Is there any way to get all that back?

[Next page](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834.md?page=2)
