Elasticsearch server could not be reached

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?

You could check firewalls, things like that.

Thanks for the information @dadoonet.

What do you mean by the firewalls?

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.

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>

I meant the full logs of elasticsearch server.

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