Error when updating xpack license

I just create a new license here :

Then I download the license json file.

I follow this documentation to update license :

curl -XPUT -u elastic '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 ?

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


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

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