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

**URL:** <https://discuss.elastic.co/t/getting-the-error-cluster-state-has-not-been-recovered-yet-cannot-write-to-the-null-index-in-7-3-version/199178>\
**Category:** Elasticsearch\
**Created:** [September 12, 2019, 6:32am UTC](https://discuss.elastic.co/t/getting-the-error-cluster-state-has-not-been-recovered-yet-cannot-write-to-the-null-index-in-7-3-version/199178 "2019-09-12T06:32:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ortal\_pinhas](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@ortal\_pinhas](https://discuss.elastic.co/u/ortal_pinhas)\
**Post date:** [September 12, 2019, 6:32am UTC](https://discuss.elastic.co/t/getting-the-error-cluster-state-has-not-been-recovered-yet-cannot-write-to-the-null-index-in-7-3-version/199178/1 "2019-09-12T06:32:35Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Albert\_Zaharovits](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/albert_zaharovits/32/24390_2.png) [@Albert\_Zaharovits](https://discuss.elastic.co/u/Albert_Zaharovits)\
**Post date:** [September 25, 2019, 2:11pm UTC](https://discuss.elastic.co/t/getting-the-error-cluster-state-has-not-been-recovered-yet-cannot-write-to-the-null-index-in-7-3-version/199178/2 "2019-09-25T14:11:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 23, 2019, 2:11pm UTC](https://discuss.elastic.co/t/getting-the-error-cluster-state-has-not-been-recovered-yet-cannot-write-to-the-null-index-in-7-3-version/199178/3 "2019-10-23T14:11:57Z")

</div>

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