# Can not create new index , Client request timeout (502)

**URL:** <https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516>\
**Category:** Elasticsearch\
**Created:** [January 5, 2023, 6:59am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516 "2023-01-05T06:59:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Madushan\_Pathirana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madushan_pathirana/32/115587_2.png) [@Madushan\_Pathirana](https://discuss.elastic.co/u/Madushan_Pathirana)\
**Post date:** [January 5, 2023, 6:59am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516/1 "2023-01-05T06:59:10Z")

</div>

Hi, elasticsearch worked fine when I install it first. After two weeks, now when I try to create new index it return below error

```auto
PUT customer

```

response

```auto
{"statusCode":502,"error":"Bad Gateway","message":"Client request timeout"}

```

---

<div class="post-metadata">

**Author:** ![Madushan\_Pathirana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/madushan_pathirana/32/115587_2.png) [@Madushan\_Pathirana](https://discuss.elastic.co/u/Madushan_Pathirana)\
**Post date:** [January 5, 2023, 7:00am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516/2 "2023-01-05T07:00:50Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/a/0a65bfb26e42bb1dfe6eab101a798815ea52ac04.png)

---

<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:** [January 5, 2023, 8:46am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516/3 "2023-01-05T08:46:15Z")

</div>

Welcome to our community! 😃

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:** ![Ayush\_Mathur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ayush_mathur/32/77134_2.png) [@Ayush\_Mathur](https://discuss.elastic.co/u/Ayush_Mathur)\
**Post date:** [January 6, 2023, 8:04am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516/4 "2023-01-06T08:04:07Z")

</div>

Nonethless, your Kibana logs clearly state that it is not able to connect with any ES host defined in the configured. Please make sure your Kibana and ES are up and running and that the connection between two is successfully established.

---

<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:** [February 3, 2023, 8:04am UTC](https://discuss.elastic.co/t/can-not-create-new-index-client-request-timeout-502/322516/5 "2023-02-03T08:04:52Z")

</div>

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