ERROR: Failed to set password for user [apm_system]

I'm trying to setup authentication on my elk stack. I have done a test with my test environnment, it was OK but in production, I can't do the first step.
I am in 6.8.3 and I have 4 nodes. And basic licence.

I have generate the certificate and copy it on each node.

./elasticsearch-certutil cert -out /etc/elasticsearch/config/cert.p12 -pass ""

in my yml file, on the master, I have added this : true true true native certificate /etc/elasticsearch/config/cert.p12 /etc/elasticsearch/config/cert.p12

then I have restart this node.

I done this following command to generate the passwords :

./elasticsearch-setup-passwords interactive

But at the end, I have an error :

Unexpected response code [503] from calling PUT
Cause: Cluster state has not been recovered yet, cannot write to the security index

Possible next steps:

  • Try running this tool again.
  • Try running with the --verbose parameter for additional messages.
  • Check the elasticsearch logs for additional error details.
  • Use the change password API manually.

ERROR: Failed to set password for user [apm_system].

Where is my mistake ? Do I have ro restart each node ?

Thank you for your replies.

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