Failed to run "elasticsearch-setup-passwords auto" on ES 7.16.2

Hi
I am trying to generate the users/password for the built-in users , and fail with the below errors. can someone help to understand the issue ?
Regards
Avi

Failed to determine the health of the cluster running at http://172.25.232.51:9200

Unexpected response code [503] from calling GET http://172.25.232.51:9200/_cluster/health?pretty

Cause: master_not_discovered_exception

It is recommended that you resolve the issues with your cluster before running Elasticsearch-setup-passwords.

It is very likely that the password changes will fail when run against an unhealthy cluster.

Do you want to continue with the password setup process [y/N]y

Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.

The passwords will be randomly generated and printed to the console.

Please confirm that you would like to continue [y/N]y

Unexpected response code [503] from calling PUT http://172.25.232.51:9200/_security/user/apm_system/_password?pretty

Cause: Cluster state has not been recovered yet, cannot write to the [null] 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].

How many nodes in your cluster?
What does your Elasticsearch config and logs look like?

Please format your code/logs/config using the </> button, or markdown style back ticks. It helps to make things easy to read which helps us help you :slight_smile:

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