Applying license illegal_argument_exception unknown setting [index.license.expiry_date_in_millis]


(Victor) #1

Hi,

I am trying to apply basic license to my elastic. I just downloaded the license as a license for version 5.x/6.x.

Running this command: curl -XPUT -u elastic 'http://localhost:9200/_xpack_license' -H "Content-Type: application/json" -d @/tmp/license.json

Error message: {"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 remov

If I run: curl -XGET "http://localhost:9200" -u elastic
Output is: { "name" : "server", "cluster_name" : "elastic-um", "cluster_uuid" : "AibV0Lf6T9Ssj3LPexfIFQ", "version" : { "number" : "6.0.0", "build_hash" : "8f0685b", "build_date" : "2017-11-10T18:41:22.859Z", "build_snapshot" : false, "lucene_version" : "7.0.1", "minimum_wire_compatibility_version" : "5.6.0", "minimum_index_compatibility_version" : "5.0.0" }, "tagline" : "You Know, for Search" }


(David Pilato) #2

I did not check the docs but I’m pretty sure this is wrong

_xpack_license

Should be probably

_xpack/_license

(Victor) #3

Indeed, that helped but now I got this error message instead:

{"error":"Incorrect HTTP method for uri [/_xpack/_license] and method [PUT], allowed: [POST]","status":405}

(David Pilato) #4

The right syntax is documented there: https://www.elastic.co/guide/en/x-pack/current/installing-license.html

http://<host>:<port>/_xpack/license


(Victor) #5

Thanks! That helped!


(system) #6

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