# Elasticsearch server could not be reached

**URL:** <https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937>\
**Category:** Elasticsearch\
**Created:** [December 8, 2020, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937 "2020-12-08T05:36:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![webapps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webapps/32/77617_2.png) [@webapps](https://discuss.elastic.co/u/webapps)\
**Post date:** [December 8, 2020, 5:36am UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/1 "2020-12-08T05:36:09Z")

</div>

I just want to integrate external https Elasticsearch server URI with Drupal 8 version.

I got an external https Elasticsearch server URI and got the credentials for it. When I’m accessing the https Elasticsearch server URI with certificates in postman/ browser it’s giving me some basic information(i.e cluster name, cluster(ELS) version etc).

But when I try to use the above Elasticsearch server URI in the Drupal 8 version it’s giving me ‘Elasticsearch server could not be reached’. Also I’m not sure where to use the Certificates(i.e CERT, PEM & key files) in the Drupal codebase.

Any help on how to resolve this issue?

---

<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:** [December 8, 2020, 6:44am UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/2 "2020-12-08T06:44:28Z")

</div>

You could check firewalls, things like that.

---

<div class="post-metadata">

**Author:** ![webapps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webapps/32/77617_2.png) [@webapps](https://discuss.elastic.co/u/webapps)\
**Post date:** [December 8, 2020, 4:43pm UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/3 "2020-12-08T16:43:56Z")

</div>

Thanks for the information @dadoonet.

What do you mean by the firewalls?

---

<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:** [December 8, 2020, 7:59pm UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/4 "2020-12-08T19:59:13Z")

</div>

Can you curl the elasticsearch address from the machine where drupal is running?

May be share the full logs of elasticsearch to see if we can find anything suspicious.

---

<div class="post-metadata">

**Author:** ![webapps](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webapps/32/77617_2.png) [@webapps](https://discuss.elastic.co/u/webapps)\
**Post date:** [December 8, 2020, 11:24pm UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/5 "2020-12-08T23:24:18Z")

</div>

Hi @dadoonet, Here is the logs of elasticsearch what I found.

```
<code>Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes found in your cluster in Elasticsearch\ConnectionPool\StaticNoPingConnectionPool->nextConnection() (line 64 of /app/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php).</code>
```

---

<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:** [December 9, 2020, 3:57am UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/6 "2020-12-09T03:57:31Z")

</div>

I meant the **full** logs of elasticsearch **server**.

---

<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:** [January 6, 2021, 3:57am UTC](https://discuss.elastic.co/t/elasticsearch-server-could-not-be-reached/257937/7 "2021-01-06T03:57:34Z")

</div>

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