How to change elastic password after installing basic license?

Hi ,
I have an Elasticsearch cluster with 5 nodes ( 3 master , 2 data) and I installed Xpack over all nodes,
Also I installed Kibana and Xpack for Kibana on one of master node.
then I changed kibana default password. after that login inside Kibana Web Console was disabled.

Login is currently disabled because the license could not be determined.

then I Installed a basic license and I tried to change elastic password

curl -XPOST 'hostname:port/_xpack/security/user/elastic/_password?pretty' -H 'Content-Type: application/json' -d'
{
  "password": "mypassword"
}'

but I got the bellow error.

{
  "error" : {
    "root_cause" : [
      {
        "type" : "security_exception",
        "reason" : "current license is non-compliant for [security]",
        "license.expired.feature" : "security"
      }
    ],
    "type" : "security_exception",
    "reason" : "current license is non-compliant for [security]",
    "license.expired.feature" : "security"
  },
  "status" : 403
}

for now how could I change the default elastic password?
thanks.

If you installed a basic license, then security is not longer active, and there is no elastic user. Consequently there is no password to change.

Your Kibana issue is a different situation. You removed the important part of that error message which said that it could not connect to Elasticsearch. You have some sort of issue with Kibana connecting to Elasticsearch and you'll need to check the logs for more information.

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