# org.elasticsearch.transport.ConnectTransportException: \[\]\[172.18.0.2:9300\] connect\_timeout\[30s\]

**URL:** <https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 9, 2020, 4:44am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260 "2020-06-09T04:44:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_Vardhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_vardhan/32/43927_2.png) [@Vishnu\_Vardhan](https://discuss.elastic.co/u/Vishnu_Vardhan)\
**Post date:** [June 9, 2020, 4:44am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260/1 "2020-06-09T04:44:44Z")

</div>

Continuing the discussion from [Failed to connect to node [{}{}{localhost}{127.0.0.1:9300}], removed from nodes list](https://discuss.elastic.co/t/failed-to-connect-to-node-localhost-127-0-0-1-9300-removed-from-nodes-list/226640/5):

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 9, 2020, 9:05am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260/2 "2020-06-09T09:05:43Z")

</div>

You did not add anything to the conversation yet right? Are you planning to do so?

---

<div class="post-metadata">

**Author:** ![Vishnu\_Vardhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_vardhan/32/43927_2.png) [@Vishnu\_Vardhan](https://discuss.elastic.co/u/Vishnu_Vardhan)\
**Post date:** [June 10, 2020, 7:14am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260/3 "2020-06-10T07:14:07Z")

</div>

Sorry for the delay in my reply. And, Yes we didn't write any Java code. Because we took this web application as open-source and modifying UI alone for our internal use.

After the connection issue, we decline the docker container implementation.

> But finally we fixed the issue. Issue related to apache tomcat version.

Previously we were using apache tomcat 9 vs Elasticsearch 5.6. Now apache tomcat 8 vs elasticsearch 5.6.2.

And we are wondering higher version makes an issue in the docker container. If we run locally everything working fine.

---

<div class="post-metadata">

**Author:** ![Vishnu\_Vardhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishnu_vardhan/32/43927_2.png) [@Vishnu\_Vardhan](https://discuss.elastic.co/u/Vishnu_Vardhan)\
**Post date:** [June 10, 2020, 7:18am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260/4 "2020-06-10T07:18:25Z")

</div>

Thank you very much Dadoo. I took the idea from your reply only(TransportClient. It will be removed in the next major version).

---

<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:** [July 8, 2020, 7:31am UTC](https://discuss.elastic.co/t/org-elasticsearch-transport-connecttransportexception-172-18-0-2-9300-connect-timeout-30s/236260/5 "2020-07-08T07:31:11Z")

</div>

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