# Error when updating xpack license

**URL:** <https://discuss.elastic.co/t/error-when-updating-xpack-license/68716>\
**Category:** Elasticsearch\
**Created:** [December 12, 2016, 2:00pm UTC](https://discuss.elastic.co/t/error-when-updating-xpack-license/68716 "2016-12-12T14:00:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)\
**Post date:** [December 12, 2016, 2:00pm UTC](https://discuss.elastic.co/t/error-when-updating-xpack-license/68716/1 "2016-12-12T14:00:07Z")

</div>

I just create a new license here : [https://register.elastic.co/xpack\_register](https://register.elastic.co/xpack_register)

Then I download the license json file.

I follow this documentation to update license : [https://www.elastic.co/guide/en/x-pack/current/installing-license.html](https://www.elastic.co/guide/en/x-pack/current/installing-license.html)

curl -XPUT -u elastic '[http://myhost:9200/\_xpack/license](http://myhost:9200/_xpack/license)' -d mylicensefile.json

I enter the password and receive this error :

{"error":{"root\_cause":[{"type":"parse\_exception","reason":"Failed to derive xcontent"}],"type":"parse\_exception","reason":"Failed to derive xcontent"},"status":400}

What can I do to solve this ?

---

<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:** [December 12, 2016, 2:02pm UTC](https://discuss.elastic.co/t/error-when-updating-xpack-license/68716/2 "2016-12-12T14:02:35Z")

</div>

You have missed the `@` sign ahead of `mylicensefile.json`, which is what causes the contents of the file to be passed.

---

<div class="post-metadata">

**Author:** ![YLombardi](https://avatars.discourse-cdn.com/v4/letter/y/43a26b/32.png) [@YLombardi](https://discuss.elastic.co/u/YLombardi)\
**Post date:** [December 12, 2016, 2:10pm UTC](https://discuss.elastic.co/t/error-when-updating-xpack-license/68716/3 "2016-12-12T14:10:58Z")

</div>

Thanks, it works.  
That's what I was missing.

---

<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:** [January 9, 2017, 2:11pm UTC](https://discuss.elastic.co/t/error-when-updating-xpack-license/68716/4 "2017-01-09T14:11:23Z")

</div>

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