# Unable to update license

**URL:** <https://discuss.elastic.co/t/unable-to-update-license/42953>\
**Category:** Elasticsearch\
**Created:** [February 28, 2016, 2:52pm UTC](https://discuss.elastic.co/t/unable-to-update-license/42953 "2016-02-28T14:52:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drs/32/8001_2.png) [@drs](https://discuss.elastic.co/u/drs)\
**Post date:** [February 28, 2016, 2:52pm UTC](https://discuss.elastic.co/t/unable-to-update-license/42953/1 "2016-02-28T14:52:40Z")

</div>

Marvel is telling me that my license expired. I followed the instructions to register for a basic license and was provided a `.json` file. However, when I `PUT` it, I get a transport serialization exception:

```auto
curl -XPUT <ip address>:9200/_license?pretty -d @<downloaded license file.json>
{
  "error" : {
    "root_cause" : [ {
      "type" : "transport_serialization_exception",
      "reason" : "Failed to deserialize response of type [org.elasticsearch.license.plugin.action.put.PutLicenseResponse]"
    } ],
    "type" : "transport_serialization_exception",
    "reason" : "Failed to deserialize response of type [org.elasticsearch.license.plugin.action.put.PutLicenseResponse]",
    "caused_by" : {
      "type" : "array_index_out_of_bounds_exception",
      "reason" : "1"
    }
  },
  "status" : 500
}

```

The error implies it's looking at an array, but license file doesn't contain any arrays.

The cluster is running ElasticSearch 2.1.1

---

<div class="post-metadata">

**Author:** ![drs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drs/32/8001_2.png) [@drs](https://discuss.elastic.co/u/drs)\
**Post date:** [February 28, 2016, 10:51pm UTC](https://discuss.elastic.co/t/unable-to-update-license/42953/2 "2016-02-28T22:51:28Z")

</div>

For whatever reason, applying the license to a data node, rather than a client node, succeeded.

---

<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 5, 2017, 11:13pm UTC](https://discuss.elastic.co/t/unable-to-update-license/42953/3 "2017-07-05T23:13:01Z")

</div>


