Elastic bootstrap password not picked up by second cluster member

I enabled security on my ELK stack. I tested the configuration locally several times before going on the dev environment. On the second master node of my cluster, I get the following error:

[2020-08-26T16:54:40,203][INFO ][o.e.x.s.a.AuthenticationService] [master-node-2] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]

I followed the steps:

  1. Ran the elasticsearch-keystore command on the first master node:
    printf "%s" "mypassword" | /usr/share/elasticsearch/bin/elasticsearch-keystore add -x "bootstrap.password"
  2. Ran the curl command to set the built-in user passswords.

Can you help explain why the 2nd master node in my cluster won't recognize the elastic bootstrap password set on master node1?

Thank you,

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