Unable to upgrade X-Pack license


#1

Hello,

I have been using 30 days trial for X-Pack, which now has expired. I have registered and downloaded the Basic License and tried to upgrade it through license API (like in the Docs), but I encountered a problem. The license does not get updated due to error:

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"failed to parse license source"}],"type":"illegal_argument_exception","reason":"failed to parse license source","caused_by":{"type":"json_parse_exception","reason":"Unrecognized token 'patricija': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@a011e6; line: 1, column: 11]"}},"statPatricijasPatriPatricijasPatricijasPatriPatriPatricijasPatriPatricijasPatricijasPatriPatricijasPatricijasPatriPatricijasPatriPatriPatricijasPatricijasPatricijas-MacBPatricijas-MacBook-Air:DoPatricijas-MacBook-APatricijas-MacBook-APatricijas-MacBook-APatricijas-MacBPatriPatricijasPatriPatricijasPatricijasPatricijas-MacBPatricijas-MacBPatricijasPatricijasPatricijasPatricijasPatricijasPatricijasPatriPatriPatriPatricijasPatricijas-MacBPatricijas-MacBPatricijasPatricijas-MacBook-Air:DoPatricijas-MacBook-APatricijas-MacBook-APatricijasPatricijasPatricijasPatricijasPatriPatricijas-MacBPatricijas-MacBook-APatricijas-MacBook-APatricijas-MacBook-APatricijasPatricijasPatriPatriPatriPatricijasPatricijas-MacBPatricijas-MacBPatricijas-MacBPatricijasPatricijasPatricijasPatriPatri

I am quite confused about what is going on here :confused:


(Christian Dahlqvist) #2

What command did you use to upgrade the license?


#3

I have used the one from the Docs:

curl -XPUT -u elastic 'http://localhost:9200/_xpack/license' -H "Content-Type: application/json" -d license_name.json


(Christian Dahlqvist) #4

In order to send the contents off the file, the file name need to be preceded by a @: -d @license_name.json


#5

Thank you!


(system) #6

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