# Marvel license expired, new license is already expired

**URL:** https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring
**Created:** [July 6, 2016, 9:29pm UTC](https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873 "2016-07-06T21:29:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![styfle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/styfle/32/7291_2.png) [@styfle](https://discuss.elastic.co/u/styfle)
#### Post date: [July 6, 2016, 9:29pm UTC](https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873/1 "2016-07-06T21:29:10Z")

</div>

I noticed that my marvel license was expired. So I registered for a new Basic license, got an email, downloaded it, and ran the command

```auto
curl -XPUT 'http://es01:9200/_license' -d @license.json

```

Looks good `http://es01:9200/_license`:

```auto
{
  "license": {
    "status": "active",
    "uid": "<long-id-here>",
    "type": "basic",
    "issue_date": "2016-06-27T00:00:00.000Z",
    "issue_date_in_millis": 1466985600000,
    "expiry_date": "2017-07-06T23:59:59.999Z",
    "expiry_date_in_millis": 1499385599999,
    "max_nodes": 100,
    "issued_to": "<my-name-here> (<my-company-here>)",
    "issuer": "Web Form"
  }
}

```

But visiting `http://es01:5601/app/marvel` shows Basic as grayed out and Trial is expired:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/b13b47dd9237246d746785785b94506b682b2ba4.png)

Why is that?

---

<div class="post-metadata">

### Author: ![pickypg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pickypg/32/62409_2.png) [@pickypg](https://discuss.elastic.co/u/pickypg)
#### Post date: [July 6, 2016, 10:07pm UTC](https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873/2 "2016-07-06T22:07:03Z")

</div>

Hi Styfle,

The answer lies in how clusters are identified by Marvel (and, internally to Elasticsearch) versus how they are displayed to humans.

When you create a cluster, the first thing that it does it to create a Cluster UUID that gets written by the elected master node and shared with all other nodes in the cluster. Internally, Elasticsearch uses the Cluster UUID to guarantee cluster uniqueness rather than the arbitrary name that we deal with as people.

It's that same UUID that Marvel uses to determine cluster uniqueness for this list. We display the cluster name, because that's what people are able to actually use, but the cluster uuid is all that we care about.

What I expect has happened is that the cluster with the expired trial license was a test cluster whose data directory got wiped out, then replaced by a fresh cluster, which got its own UUID. Marvel kept track of the old one, so it prevents multi-cluster access with a Basic license (hence the grayed out cluster).

The next question is naturally:

> How do I fix this?

Since your fixed cluster only has day from today, based on the license anyway, the easiest thing to do is to delete the Marvel data.

```auto
$ curl -XDELETE es01:9200/.marvel*

```

After less than a minute (about 10 seconds by default), the _real_ cluster will send some fresh data and it will recreate the necessary indices.

Hope that helps,  
Chris

---

<div class="post-metadata">

### Author: ![styfle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/styfle/32/7291_2.png) [@styfle](https://discuss.elastic.co/u/styfle)
#### Post date: [July 7, 2016, 1:52pm UTC](https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873/3 "2016-07-07T13:52:47Z")

</div>

Hi Chris,

Thank you for the well-written explanation!  
Deleting the marvel data worked!

😁

---

<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: [July 6, 2017, 1:42pm UTC](https://discuss.elastic.co/t/marvel-license-expired-new-license-is-already-expired/54873/4 "2017-07-06T13:42:45Z")

</div>


