Error installing licence

When installing the licence using:
curl -XPUT -u elastic 'http://:/_xpack/license' -H "Content-Type: application/json" -d @license.json

I get this error:

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

Should I modify a specific file sothat I can use the PUT methode? What am I missing here?

I am using Elastic Stack 6.0

Hi,

Indeed strange, as PUT is the correct verb

Can you please share the output of

curl -XGET http://<host>:<port> -u elastic and
curl -XGET http://<host>:<port>/_cat/plugins?v -u elastic

It looks like you have not installed the X-Pack plugin on the server, or you didn't restart the node after installation.

Running the commands that @ikakavas recommended should confirm that.

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