# Elasticsearch restart causes error unable to find script \[q\_checkitem\] in cluster state

**URL:** <https://discuss.elastic.co/t/elasticsearch-restart-causes-error-unable-to-find-script-q-checkitem-in-cluster-state/223000>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [March 10, 2020, 7:00pm UTC](https://discuss.elastic.co/t/elasticsearch-restart-causes-error-unable-to-find-script-q-checkitem-in-cluster-state/223000 "2020-03-10T19:00:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sa1212](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sa1212](https://discuss.elastic.co/u/sa1212)\
**Post date:** [March 10, 2020, 7:00pm UTC](https://discuss.elastic.co/t/elasticsearch-restart-causes-error-unable-to-find-script-q-checkitem-in-cluster-state/223000/1 "2020-03-10T19:00:53Z")

</div>

Hi,  
After Elasticsearch cluster containers restarted we get resource not found exception when a search is attempted.

```
{
  "error" : {
    "root_cause" : [
      {
        "type" : "resource_not_found_exception",
        "reason" : "unable to find script [q_checkitem] in cluster state"
      }
    ],
    "type" : "resource_not_found_exception",
    "reason" : "unable to find script [q_checkitem] in cluster state"
  },
  "status" : 404
}

```

If I restart elasticsearch as well as logstash containers the error disappears.

Any help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 12, 2020, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-restart-causes-error-unable-to-find-script-q-checkitem-in-cluster-state/223000/2 "2020-03-12T10:49:27Z")

</div>

Does restarting mean, that you are starting a completely different cluster, that has no access on the previous data anymore? if that is the case, then there is also no access on the previous cluster state that contains all the scripts.

Can you explain the process of restart in context of your Elasticsearch cluster in more detail?

---

<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:** [April 9, 2020, 10:49am UTC](https://discuss.elastic.co/t/elasticsearch-restart-causes-error-unable-to-find-script-q-checkitem-in-cluster-state/223000/3 "2020-04-09T10:49:29Z")

</div>

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