Error while installing X-Pack license

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.

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.

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

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

{
  "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"
}

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: License Management | X-Pack for the Elastic Stack [6.2] | Elastic)

2 Likes

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