# License update error

**URL:** <https://discuss.elastic.co/t/license-update-error/103308>\
**Category:** Elasticsearch\
**Created:** [October 10, 2017, 7:39am UTC](https://discuss.elastic.co/t/license-update-error/103308 "2017-10-10T07:39:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)\
**Post date:** [October 10, 2017, 7:39am UTC](https://discuss.elastic.co/t/license-update-error/103308/1 "2017-10-10T07:39:13Z")

</div>

Hi Team,

Getting below error while updating license.

{  
"error": {  
"root\_cause": [{  
"type": "illegal\_argument\_exception",  
"reason": "failed to parse license source"  
}],  
"type": "illegal\_argument\_exception",  
"reason": "failed to parse license source",  
"caused\_by": {  
"type": "json\_parse\_exception",  
"reason": "Unrecognized token 'sivabalan': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@3687f98e; line: 1, column: 11]"  
}  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 10, 2017, 8:30am UTC](https://discuss.elastic.co/t/license-update-error/103308/2 "2017-10-10T08:30:11Z")

</div>

Are you by any chance running curl without an `@` ahead of the file name? Can you show the exact command you are running?

---

<div class="post-metadata">

**Author:** ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)\
**Post date:** [October 10, 2017, 8:48am UTC](https://discuss.elastic.co/t/license-update-error/103308/3 "2017-10-10T08:48:44Z")

</div>

Hi Christian,

I'm running below command exactly.

curl -XPUT -u uname:pwd '[http://localhost:9200/\_xpack/license](http://localhost:9200/_xpack/license)' -H "Content-Type: application/json" -d sivabalan-nagarajan-2327c0fa-f56b-443a-a3d6-abef7ecf2220-v5.json

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 10, 2017, 8:52am UTC](https://discuss.elastic.co/t/license-update-error/103308/4 "2017-10-10T08:52:24Z")

</div>

Yes, you are missing the `@` ahead of the file name, which means that curl does not pass the content of the file. Try this:

`curl -XPUT -u uname:pwd 'http://localhost:9200/_xpack/license' -H "Content-Type: application/json" -d @sivabalan-nagarajan-2327c0fa-f56b-443a-a3d6-abef7ecf2220-v5.json`

---

<div class="post-metadata">

**Author:** ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)\
**Post date:** [October 10, 2017, 8:55am UTC](https://discuss.elastic.co/t/license-update-error/103308/5 "2017-10-10T08:55:50Z")

</div>

Find the response below.

{  
"acknowledged": false,  
"license\_status": "valid",  
"acknowledge": {  
"message": "This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the "acknowledge=true" parameter:",  
"watcher": ["Watcher will be disabled"],  
"security": ["The following X-Pack security functionality will be disabled: authentication, authorization, ip filtering, and auditing. Please restart your node after applying the license.", "Field and document level access control will be disabled.", "Custom realms will be ignored."],  
"monitoring": ["Multi-cluster support is disabled for clusters with [BASIC] license. If you are\nrunning multiple clusters, users won't be able to access the clusters with\n[BASIC] licenses from within a single X-Pack Kibana instance. You will have to deploy a\nseparate and dedicated X-pack Kibana instance for each [BASIC] cluster you wish to monitor.", "Automatic index cleanup is locked to 7 days for clusters with [BASIC] license."],  
"graph": ["Graph will be disabled"],  
"ml": ["Machine learning will be disabled"]  
}  
}

Do I need to restart the node now ?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 10, 2017, 9:33am UTC](https://discuss.elastic.co/t/license-update-error/103308/6 "2017-10-10T09:33:27Z")

</div>

> [@nsivabalan](#):
>
> Do I need to restart the node now ?

No, the key is in this part of the message:

> This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the "acknowledge=true" parameter:

You need to read and understand the message (about features being disabled) and then run this:

```auto
curl -XPUT -u uname:pwd 'http://localhost:9200/_xpack/license?acknowledge=true' -H "Content-Type: application/json" -d @sivabalan-nagarajan-2327c0fa-f56b-443a-a3d6-abef7ecf2220-v5.json

```

---

<div class="post-metadata">

**Author:** ![nsivabalan](https://avatars.discourse-cdn.com/v4/letter/n/a4c791/32.png) [@nsivabalan](https://discuss.elastic.co/u/nsivabalan)\
**Post date:** [October 10, 2017, 9:41am UTC](https://discuss.elastic.co/t/license-update-error/103308/7 "2017-10-10T09:41:57Z")

</div>

Thanks Tim 🙂

---

<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 7, 2017, 9:42am UTC](https://discuss.elastic.co/t/license-update-error/103308/8 "2017-11-07T09:42:17Z")

</div>

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