Cluster state has not been recovered yet, cannot write to the [null] index

Hi,

i try to run an elastic stack with the localhost as the only node. I followed the official installation guide, but when I get to the running check it shows me this error after entering the password:
{"error":{"root_cause":[{"type":"status_exception","reason":"Cluster state has not been recovered yet, cannot write to the [null] index"}],"type":"authentication_processing_error","reason":"failed to promote the auto-configured elastic password hash","caused_by":{"type":"status_exception","reason":"Cluster state has not been recovered yet, cannot write to the [null] index"}},"status":503}

The the logs show this:
[2022-10-06T11:16:16,265][WARN ][o.e.c.c.ClusterFormationFailureHelper] [localhost.localdomain] master not discovered yet, this node has not previously joined a bootstrapped cluster, and this node must discover master-eligible nodes [localhost] to bootstrap a cluster: have discovered [{localhost.localdomain}{f7D__SY7TkOyXBOSpZo5jg}{Z4Bg4ot7RUymAYGLqaC1WQ}{localhost.localdomain}{localhost}{127.0.0.1:9300}{cdfhilmrstw}]; discovery will continue using [127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305] from hosts providers and [{localhost.localdomain}{f7D__SY7TkOyXBOSpZo5jg}{Z4Bg4ot7RUymAYGLqaC1WQ}{localhost.localdomain}{localhost}{127.0.0.1:9300}{cdfhilmrstw}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

My .yml file:

network.host: localhost
http.port: 9200
xpack.security.enabled: true
xpack.security.enrollment.enabled: true
cluster.initial_master_nodes: ["localhost"]
http.host: 0.0.0.0

What am I doing wrong?

I found a solution: Giving the system a dns entry and a hostname worked for me.

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