Basic licens Fails to Install

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' -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.

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:

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

It worked :slight_smile: