Error when updating xpack license

I just create a new license here : 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

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.

2 Likes

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.