# Attempted to resurrect connection to dead ES instance

**URL:** <https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562>\
**Category:** Logstash\
**Created:** [November 9, 2022, 4:13pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562 "2022-11-09T16:13:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zay\_Lin\_Htun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zay_lin_htun/32/102063_2.png) [@Zay\_Lin\_Htun](https://discuss.elastic.co/u/Zay_Lin_Htun)\
**Post date:** [November 9, 2022, 4:13pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562/1 "2022-11-09T16:13:49Z")

</div>

Hello folks,

```auto
[INFO] 2022-11-09 16:05:14.964 [Ruby-0-Thread-9: :1] elasticsearch - Failed to perform request {:message=>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::JavaxNetSsl::SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target>}
[WARN] 2022-11-09 16:05:14.965 [Ruby-0-Thread-9: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error {:url=>"https://elastic:xxxxxx@18.139.158.62:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [https://18.139.158.62:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
^C[WARN] 2022-11-09 16:05:19.619 [SIGINT handler] runner - SIGINT received. Shutting down.
[INFO] 2022-11-09 16:05:20.002 [Ruby-0-Thread-9: :1] elasticsearch - Failed to perform request {:message=>"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target", :exception=>Manticore::ClientProtocolException, :cause=>#<Java::JavaxNetSsl::SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target>}
[WARN] 2022-11-09 16:05:20.003 [Ruby-0-Thread-9: :1] elasticsearch - Attempted to resurrect connection to dead ES instance, but got an error {:url=>"https://elastic:xxxxxx@18.139.158.62:9200/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError, :message=>"Elasticsearch Unreachable: [https://18.139.158.62:9200/][Manticore::ClientProtocolException] PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}
^C[FATAL] 2022-11-09 16:05:21.027 [SIGINT handler] runner - SIGINT received. Terminating immediately..
[FATAL] 2022-11-09 16:05:21.057 [LogStash::Runner] Logstash - 

```

In my logstash machine, I can receive the logs from filebeats but can not connect to Elastic Search.

---

<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:** [November 9, 2022, 11:00pm UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562/2 "2022-11-09T23:00:45Z")

</div>

The logs there show Logstash being shut down, not a connection issue.

You may want to show more logs and your config.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [November 13, 2022, 4:52am UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562/4 "2022-11-13T04:52:10Z")

</div>

> [@Zay\_Lin\_Htun](#):
>
> `unable to find valid certification path to requested target`

There is something wrong with cert(s)

---

<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:** [December 11, 2022, 4:52am UTC](https://discuss.elastic.co/t/attempted-to-resurrect-connection-to-dead-es-instance/318562/5 "2022-12-11T04:52:30Z")

</div>

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