Hello folks,
I have 3 nodes in my cluster. I can start and reach them without issue when I have not enabled xpack. When I enable security to do elasticsearch-setup-passwords auto
, I have an error when it tries to reach my cluster.
Config added
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
I ran /usr/share/elasticsearch/bin/elasticsearch-setup-passwords auto --verbose
, it cannot go further thanChecking cluster health: http://<ClusterIP>:9200/_cluster/health?pretty
.
Error
Unexpected response code [503] from calling PUT http://:9200/_security/user/apm_system/_password?pretty
Cause: Cluster state has not been recovered yet, cannot write to the [null] indexPossible 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.
According to FSE course, you have to add xpack.security.enabled: true
only. However it doesn't work and it asks for xpack.security.transport.ssl.enabled: true
. I have tried to set it to false, no success.
Any insight ?