Error while installing X-Pack license


#1

Hi,

When I try to install X-Pack license using the command;

curl -XPUT -u user 'http://localhost:9200/_license&acknowledge=true' -d @/license/license.json

I am getting the following error;

{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.license.expiry_date_in_millis] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}],"type":"illegal_argument_exception","reason":"unknown setting [index.license.expiry_date_in_millis] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"},"status":400}

How can I fix this?

Thanks.


(Colin Goodheart-Smithe) #2

Is your licence for X-Pack or are you trying to use an existing license (for e.g. Shield/Watcher/Marvel) with X-Pack. You need a licence specifically for X-Pack to use with 5.0.

If you are a subscription customer you can either raise a ticket on the support portal or speak to your Sales Representative to request an X-Pack license for your subscription.


#3

Hi @colings86 I got the license from here https://register.elastic.co/xpack_register


(Colin Goodheart-Smithe) #4

Ok. could you paste the output of curl -XGET "http://localhost:9200" here and I'll ask one of the devs who knows more about licensing to look at this


#5
{
  "name" : "mynode",
  "cluster_name" : "mycluster",
  "cluster_uuid" : "hmiKt6unSHWphX8PUiJXIA",
  "version" : {
    "number" : "5.0.0",
    "build_hash" : "253032b",
    "build_date" : "2016-10-26T04:37:51.531Z",
    "build_snapshot" : false,
    "lucene_version" : "6.2.0"
  },
  "tagline" : "You Know, for Search"
}

(Nick Erber) #6

When installing a license for X-Pack on a cluster with version 5.0 or higher you need to use the following command:

curl -XPUT -u user 'http://localhost:9200/_xpack/license' -d @/license/license.json

The _license index is obsolete. _xpack/license is the correct one. (see: https://www.elastic.co/guide/en/x-pack/current/installing-license.html)


(system) #7

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