# Cannot configure Elasticsearch / Kibana

**URL:** <https://discuss.elastic.co/t/cannot-configure-elasticsearch-kibana/310434>\
**Category:** Elasticsearch\
**Created:** [July 22, 2022, 10:50pm UTC](https://discuss.elastic.co/t/cannot-configure-elasticsearch-kibana/310434 "2022-07-22T22:50:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vnkasturi](https://avatars.discourse-cdn.com/v4/letter/v/3ab097/32.png) [@vnkasturi](https://discuss.elastic.co/u/vnkasturi)\
**Post date:** [July 22, 2022, 10:50pm UTC](https://discuss.elastic.co/t/cannot-configure-elasticsearch-kibana/310434/1 "2022-07-22T22:50:24Z")

</div>

After multiple tries finally able to load Kibana page, it is asking me to configure Elasticsearch. I generated Token and provided it then asked me for Kibana verification code, when I tried to provide that code it is not working .Telling me the token and code are wrong. How to fix this?

I am doing this locally on my VM on a Ubuntu box.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 23, 2022, 12:13am UTC](https://discuss.elastic.co/t/cannot-configure-elasticsearch-kibana/310434/2 "2022-07-23T00:13:36Z")

</div>

I think you are going to need to provide a bit more details...

Enrollment tokens expire so you may need to create a new one from the elasiticsearch node.

On elasticsearch node while elasticsearch is running.. see [here](https://www.elastic.co/guide/en/elasticsearch/reference/master/create-enrollment-token.html)

`bin/elasticsearch-create-enrollment-token -s kibana`

Then on the kibana node after you start kibana see [here](https://www.elastic.co/guide/en/kibana/8.3/kibana-verification-code.html)  
`bin/kibana-verification-code`

Paste in the Verification Code, then Kibana should ask for the enrollment tokens, the code and token are time sensitive so you should complete within a few minutes

---

<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:** [August 20, 2022, 12:14am UTC](https://discuss.elastic.co/t/cannot-configure-elasticsearch-kibana/310434/3 "2022-08-20T00:14:14Z")

</div>

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