# Kibana not available after license expiration

**URL:** https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641
**Category:** Kibana
**Created:** [October 9, 2023, 11:00am UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641 "2023-10-09T11:00:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Andy0708](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andy0708](https://discuss.elastic.co/u/Andy0708)
#### Post date: [October 9, 2023, 11:00am UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/1 "2023-10-09T11:00:30Z")

</div>

Hi,

Within Kibana, I activated a 30 day trial license. To my surprise, I was "locked out" of Kibana when it expired, getting the "Kibana server is not ready yet" message. Kibana outputs the following:

```auto
[INFO][savedobjects-service] [.kibana_analytics] WAIT_FOR_YELLOW_SOURCE -> WAIT_FOR_YELLOW_SOURCE. took: 4ms.
[ERROR][savedobjects-service] [.kibana_alerting_cases] Action failed with 'security_exception
	Root causes:
		security_exception: current license is non-compliant for [security]'. Retrying attempt 1 in 2 seconds.

```

It then keeps retrying and failing with these messages. Elasticsearch outputs the following (for various monitoring operations):

`blocking [indices:monitor/stats] operation due to expired license. Cluster health, cluster stats and indices stats operations are blocked on license expiration. All data operations (read and write) continue to work. If you have a new license, please update it. Otherwise, please reach out to your support contact.`

That's fine, but I'm just surprised to see that this causes Kibana to become unavailable. I expected Kibana to work with less features due to reverting to the Basic license. That's the impression I got [from the documentation](https://www.elastic.co/guide/en/kibana/current/managing-licenses.html#license-expiration). And I'm pretty sure I have experienced that behavior myself in past versions. Not being able to access Kibana to manage the license in this situation is inconvenient.

Is this a bug? If so, I can submit a bug report on GitHub.

FYI, I used the following command to revert to the Basic license and everything then worked.

`curl -k -u elastic -XDELETE "https://localhost:9200/_license"`

Version: 8.9.2

---

<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: [October 9, 2023, 3:44pm UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/2 "2023-10-09T15:44:46Z")

</div>

Hi @Andy0708

I would take a look at this thread

And to answer your question after digging around a bit internally ... this is working "As Designed" at this time but would we welcome feedback in an issue.

> [@Endpoint \_cat/indices doesn't work when "license expired"?](https://discuss.elastic.co/t/endpoint-cat-indices-doesnt-work-when-license-expired/342644):
>
> One day, no countdown, I was told after adding data to my ES server through kibana that I can't view indices. What do I have to do just to use the \_cat/indices endpoint? This is an incredible mess I'm in because of this right now, so if someone could help I would really appreciate it. I'm using security enabled. But there was no indication that tomorrow I wouldn't have a server to use anymore. Do I need to just disable security? I've had strange things happens with these containers and I've b…

Also that is not the correct command to revert to basic not sure if it will work the correct command is in that thread.

```auto
$ curl -X POST -k -u elastic https://localhost:9200/_license/start_basic?acknowledge=true
Enter host password for user 'elastic':
{"acknowledged":true,"basic_was_started":true}

```

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 9, 2023, 4:28pm UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/3 "2023-10-09T16:28:26Z")

</div>

One issue is that the user would expect to still have access, even if limited to Kibana, but this seems not to be the case.

The documentation changed and a lot of things about license expiration was removed.

For example, in the documentation for version 8.1 you have this page:

> **[License Management | Kibana Guide \[8.1\] | Elastic](https://www.elastic.co/guide/en/kibana/8.1/managing-licenses.html#license-expiration)**
>
> Kibana provides you with several options to share \*Discover\* saved searches, dashboards, \*Visualize Library\* visualizations, and \*Canvas\* workpads with others, or on a website.

And you have this about Kibana:

> Kibana
> 
> - Users can still log into Kibana.
> - Kibana works for data exploration and visualization, but some features are disabled.
> - The license management UI is available to easily upgrade your license. See [Update your license](https://www.elastic.co/guide/en/kibana/8.1/managing-licenses.html#update-license) and [_License Management_](https://www.elastic.co/guide/en/kibana/8.1/managing-licenses.html).

But from 8.2 this page was changed and all this information was removed and the current documentation basically does not tell what will stop working or not, only link to the subscription page, which is not helpful as the subscription page itself is really confusing now.

It would be better if the documentation stated that Kibana will not work after the license expiration.

---

<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: [October 9, 2023, 5:13pm UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/4 "2023-10-09T17:13:36Z")

</div>

@leandrojmp I pinged the team about this.

---

<div class="post-metadata">

### Author: ![Andy0708](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@Andy0708](https://discuss.elastic.co/u/Andy0708)
#### Post date: [October 9, 2023, 7:12pm UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/5 "2023-10-09T19:12:00Z")

</div>

> [@stephenb](#):
>
> And to answer your question after digging around a bit internally ... this is working "As Designed" at this time but would we welcome feedback in an issue.

Thank you for the clarification, I appreciate it! It wasn't a problem in my case, but I was a bit surprised to see this behavior. In terms of feedback, I think being able to manage licenses directly within Kibana—even if your current license has expired—would be the optimal solution. If that's not feasible, I think providing a more user friendly experience would be great. It's easy enough to figure out the root cause if you look at the logs, but it's not really apparent based on the "Kibana server is not ready yet" message, let alone how to resolve it.

Again, not a big deal by any means, as I mostly just wondered if this was by design. 🙂

> [@stephenb](#):
>
> Also that is not the correct command to revert to basic not sure if it will work the correct command is in that thread.

Ah yeah, I was just hacking away on a "throwaway cluster" and it did the trick. Thanks for the heads up, though! 🙂

---

<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: [November 6, 2023, 7:12pm UTC](https://discuss.elastic.co/t/kibana-not-available-after-license-expiration/344641/6 "2023-11-06T19:12:49Z")

</div>

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