elastic search

419 views
Skip to first unread message

Bruno Bustos

unread,
May 17, 2023, 7:03:38 PM5/17/23
to Wazuh mailing list
Comunidad como estan , tengo una consulta , me ha surgido este error al generar los pasword de usuarios de elastick search , esto para comenzar a implementar un entorno cluster de varios nodos wazuh , les comparto el error :

root@Master:/home/Bruno# /usr/share/elasticsearch/bin/elasticsearch-setup-passwords auto

Failed to determine the health of the cluster running at https://10.0.0.4:9200
Unexpected response code [503] from calling GET https://10.0.0.4: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 https://10.0.0.4: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].

Seria muy grato de su enorme ayuda.

Fabricio Brunetti

unread,
May 18, 2023, 9:20:38 AM5/18/23
to Wazuh mailing list
Hi Bruno,

From the errors it looks like your elastic cluster is down. Could you share your cluster topology? What is the output of #systemctl status elasticsearch ?

Regards, 
Fabricio

Reply all
Reply to author
Forward
0 new messages