# Kibana cannot authenticate with Elasticsearch, stuck in "Kibana server is not ready yet" phase

**URL:** <https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397>\
**Category:** Kibana\
**Created:** [March 23, 2022, 12:47am UTC](https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397 "2022-03-23T00:47:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pritster5](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pritster5/32/103311_2.png) [@pritster5](https://discuss.elastic.co/u/pritster5)\
**Post date:** [March 23, 2022, 12:47am UTC](https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397/1 "2022-03-23T00:47:04Z")

</div>

Quick rundown of what led to my current issue: [Index filled EC2 completely, manually deleted nodes, no longer able to start Elasticsearch](https://discuss.elastic.co/t/index-filled-ec2-completely-manually-deleted-nodes-no-longer-able-to-start-elasticsearch/300221)

After wiping the node (i.e Deleting everything inside the `/var/lib/elasticsearch` folder), Kibana could no longer start as it gives me this error when running `sudo systemctl status kibana`: `[security_exception] failed to authenticate user [kibana]` and `"license information could not be obtained from Elasticsearch for the data cluster"`

I just did a fresh reinstall of Kibana via `dpkg -i kibana..._.deb` and the issue still persists. I suspect that it has to do with the elastic install holding onto some authentication info from the (now deleted) `.kibana` index that no longer exists? Perhaps the keystore is out of date in `/etc/elasticsearch`?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [March 23, 2022, 3:25pm UTC](https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397/2 "2022-03-23T15:25:35Z")

</div>

You need to set up again your built-in users passwords with the [`elasticsearch-setup-passwords`](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-passwords.html) command. The command will ask for the passwords for all the [built-in users](https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html) `elastic`, `kibana_system`, etc

---

<div class="post-metadata">

**Author:** ![pritster5](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pritster5/32/103311_2.png) [@pritster5](https://discuss.elastic.co/u/pritster5)\
**Post date:** [March 23, 2022, 3:27pm UTC](https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397/3 "2022-03-23T15:27:43Z")

</div>

Perfect! I forgot the passwords so I followed this guide to reset it: [I lost the password that has been changed - #2 by TimV](https://discuss.elastic.co/t/i-lost-the-password-that-has-been-changed/91867/2)

---

<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:** [April 20, 2022, 3:28pm UTC](https://discuss.elastic.co/t/kibana-cannot-authenticate-with-elasticsearch-stuck-in-kibana-server-is-not-ready-yet-phase/300397/4 "2022-04-20T15:28:23Z")

</div>

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