# Basic licens Fails to Install

**URL:** <https://discuss.elastic.co/t/basic-licens-fails-to-install/46409>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [April 5, 2016, 2:25pm UTC](https://discuss.elastic.co/t/basic-licens-fails-to-install/46409 "2016-04-05T14:25:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavithrananda\_Prabhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavithrananda_prabhu/32/12220_2.png) [@Pavithrananda\_Prabhu](https://discuss.elastic.co/u/Pavithrananda_Prabhu)\
**Post date:** [April 5, 2016, 2:25pm UTC](https://discuss.elastic.co/t/basic-licens-fails-to-install/46409/1 "2016-04-05T14:25:09Z")

</div>

My Marvel trial license had expired and i have downloaded the Basic license to my system and trying to install it through the command

curl -XPUT '[http://localhost:9200/\_license](http://localhost:9200/_license)' -d pavithrananda-prabhu-520f8e3e-768a-49aa-97fe-77376a92fe75.json

It Fails with the below error

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

The downloaded JSON file has contents in it and is not empty.

---

<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:** [April 5, 2016, 3:58pm UTC](https://discuss.elastic.co/t/basic-licens-fails-to-install/46409/2 "2016-04-05T15:58:17Z")

</div>

Hi Pavithrananda,

The issue is that you need to put the `@` in front of the filename so that cURL knows that it's a file rather than a raw string to send as the body of the request:

```auto
curl -XPUT 'http://localhost:9200/_license' -d @pavithrananda-prabhu-520f8e3e-768a-49aa-97fe-77376a92fe75.json

```

---

<div class="post-metadata">

**Author:** ![Pavithrananda\_Prabhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pavithrananda_prabhu/32/12220_2.png) [@Pavithrananda\_Prabhu](https://discuss.elastic.co/u/Pavithrananda_Prabhu)\
**Post date:** [April 12, 2016, 1:34pm UTC](https://discuss.elastic.co/t/basic-licens-fails-to-install/46409/3 "2016-04-12T13:34:01Z")

</div>

It 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:44pm UTC](https://discuss.elastic.co/t/basic-licens-fails-to-install/46409/4 "2017-07-06T13:44:24Z")

</div>


