# Am getting an error ' resource\_already\_exists\_exception' but locally everything runs fine

**URL:** <https://discuss.elastic.co/t/am-getting-an-error-resource-already-exists-exception-but-locally-everything-runs-fine/304306>\
**Category:** Elasticsearch\
**Created:** [May 10, 2022, 5:33am UTC](https://discuss.elastic.co/t/am-getting-an-error-resource-already-exists-exception-but-locally-everything-runs-fine/304306 "2022-05-10T05:33:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohitBR\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitbr_k/32/103666_2.png) [@RohitBR\_K](https://discuss.elastic.co/u/RohitBR_K)\
**Post date:** [May 10, 2022, 5:33am UTC](https://discuss.elastic.co/t/am-getting-an-error-resource-already-exists-exception-but-locally-everything-runs-fine/304306/1 "2022-05-10T05:33:21Z")

</div>

everything runs fine in locally but when I run search\_index --rebuild in server , am getting resource\_already\_exists\_exception. how can I resolve this.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 10, 2022, 5:42am UTC](https://discuss.elastic.co/t/am-getting-an-error-resource-already-exists-exception-but-locally-everything-runs-fine/304306/2 "2022-05-10T05:42:01Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<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:** [June 7, 2022, 5:42am UTC](https://discuss.elastic.co/t/am-getting-an-error-resource-already-exists-exception-but-locally-everything-runs-fine/304306/3 "2022-06-07T05:42:41Z")

</div>

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