Getting the error "Cluster state has not been recovered yet, cannot write to the [null] index" in 7.3 version

hi,

we are trying to install elastic 7.3.0 in our env.
we have some ansible task that running the following curl behind the scenes:
curl -u es_admin:changeMe -X POST 'http://eaasrt1:9201/_security/user/nativeUser' -H 'Content-Type: application/json' -d '{"password": "ChangeMe", "roles": ["power_user", "user"]}'

this code worked fine in version 6.6 but not working in 7.3 and i am getting the following error:
getting the error "Cluster state has not been recovered yet, cannot write to the [null] index" in 7.3 version

can you please advise what is the issue and what can be the solution for that?

the following are the existing elastic users:
curl -u es_admin:changeMe -X GET 'http://eaasrt1:9201/_security/user' {"elastic":{"username":"elastic","roles":["superuser"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"kibana":{"username":"kibana","roles":["kibana_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"logstash_system":{"username":"logstash_system","roles":["logstash_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"beats_system":{"username":"beats_system","roles":["beats_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"apm_system":{"username":"apm_system","roles":["apm_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"remote_monitoring_user":{"username":"remote_monitoring_user","roles":["remote_monitoring_collector","remote_monitoring_agent"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true}}

thanks a lot.
Ortal.

Hi @ortal_pinhas ,

Is this a timing issue? How often/When do you get such an error? Can you describe the context a bit more so that I can try to reproduce it?

Thanks,
Albert

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