Setting password via x-pack

Hello, I'm using elasticsearch-6.5.4 with this yml file: true
xpack.license.self_generated.type: basic

i want to set interactive password via : "bin/x-pack/setup-passwords interactive" but i got this error:
" bin/x-pack/setup-passwords is deprecated, use bin/elasticsearch-setup-passwords
Sets the passwords for reserved users"

then i run "bin/elasticsearch-setup-passwords interactive", but this time there is another error:
" Unexpected response code [403] from calling GET

It doesn't look like the X-Pack security feature is available on this Elasticsearch node.

Please check if you have installed a license that allows access to X-Pack Security feature.

ERROR: X-Pack Security is not available."

can any one help?

There's no security feature available with the basic license.

Thank you, I start my trial 30 days and then it works.

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