# Elasticsearch Fehler obwohl in .env deaktiviert

**URL:** <https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772>\
**Category:** Shopware 6 (German)\
**Created:** [1. Februar 2024 um 09:15 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772 "2024-02-01T09:15:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Netwerk](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@Netwerk](https://forum.shopware.com/u/Netwerk)\
**Post date:** [1. Februar 2024 um 09:15 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772/1 "2024-02-01T09:15:28Z")

</div>

Wir bekommen im Prod.log folgende Fehlermeldung der Elasticsearch, obwohl diese in der .env Datei deaktiviert ist.

> SHOPWARE\_ES\_ENABLED=0

> request - CRITICAL
> 
> 1. Februar 2024 um 09:49:03
> 
> Uncaught PHP Exception OpenSearch\Common\Exceptions\NoNodesAvailableException: „No alive nodes found in your cluster“ at StaticNoPingConnectionPool.php line 67 {„exception“:„[object] (OpenSearch\Common\Exceptions\NoNodesAvailableException(code: 0): No alive nodes found in your cluster at /usr/www/users/hochzq/shopware/vendor/opensearch-project/opensearch-php/src/OpenSearch/ConnectionPool/StaticNoPingConnectionPool.php:67)“}

> elasticsearch - CRITICAL
> 
> 1. Februar 2024 um 09:49:03
> 
> No alive nodes found in cluster

Bitte um dringende Hilfe bzw. kennt jemand dieses Problem?

---

<div class="post-metadata">

**Author:** ![aggrosoft](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/aggrosoft/32/23875_2.png) [@aggrosoft](https://forum.shopware.com/u/aggrosoft)\
**Post date:** [1. Februar 2024 um 13:57 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772/2 "2024-02-01T13:57:31Z")

</div>

Eventuell eine .env.local / .env.local.php oder so auf dem Server? Cache geleert?

---

<div class="post-metadata">

**Author:** ![PromoID](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/promoid/32/14015_2.png) [@PromoID](https://forum.shopware.com/u/PromoID)\
**Post date:** [19. Februar 2024 um 16:24 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772/3 "2024-02-19T16:24:00Z")

</div>

Schon etwas herausgefunden?  
Diesen Fehler haben wir gerade auch bei uns entdeckt.

> Uncaught PHP Exception OpenSearch\Common\Exceptions\NoNodesAvailableException: „No alive nodes found in your cluster“ at StaticNoPingConnectionPool.php line 67 {„exception“:„[object] (OpenSearch\Common\Exceptions\NoNodesAvailableException(code: 0): No alive nodes found in your cluster at /home/www/shopware6/vendor/opensearch-project/opensearch-php/src/OpenSearch/ConnectionPool/StaticNoPingConnectionPool.php:67)“}

Selbe auch mit No alive nodes found in cluster

Und noch eine weitere Meldung (wahrscheinlich weil wir im Admin bei einer Bestellung „Zahlung erinnert“ Mail schicken wollen - Mail wurde auch nicht zugestellt:

> Uncaught PHP Exception Shopware\Core\Content\MailTemplate\Exception\MailTransportFailedException: „Failed sending mail to following recipients: {{ recipients }} with Error: Connection to „process /usr/sbin/sendmail -bs“ has been closed unexpectedly.“ at MailSender.php line 50 {„exception“:„[object] (Shopware\Core\Content\MailTemplate\Exception\MailTransportFailedException(code: 0): Failed sending mail to following recipients: {{ recipients }} with Error: Connection to "process /usr/sbin/sendmail -bs" has been closed unexpectedly. at /home/www/shopware6/vendor/shopware/core/Content/Mail/Service/MailSender.php:50)\n[previous exception] [object] (Symfony\Component\Mailer\Exception\TransportException(code: 0): Connection to "process /usr/sbin/sendmail -bs" has been closed unexpectedly. at /home/www/shopware6/vendor/symfony/mailer/Transport/Smtp/Stream/AbstractStream.php:87)“}

---

<div class="post-metadata">

**Author:** ![Netwerk](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@Netwerk](https://forum.shopware.com/u/Netwerk)\
**Post date:** [20. Februar 2024 um 07:37 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772/4 "2024-02-20T07:37:45Z")

</div>

Bzgl. Elasticsearch: Ich habe folgende Zeilen noch in der .env.local eingetragen, dann kam der Fehler nicht mehr.

OPENSEARCH\_URL=null://null  
ADMIN\_OPENSEARCH\_URL=null://null  
SHOPWARE\_ES\_ENABLED=0  
SHOPWARE\_ES\_INDEXING\_ENABLED=0

---

<div class="post-metadata">

**Author:** ![flo1](https://avatars.discourse-cdn.com/v4/letter/f/a4c791/32.png) [@flo1](https://forum.shopware.com/u/flo1)\
**Post date:** [22. August 2024 um 14:01 UTC](https://forum.shopware.com/t/elasticsearch-fehler-obwohl-in-env-deaktiviert/102772/5 "2024-08-22T14:01:09Z")

</div>

Hi! Habt ihr das Problem zwischenzeitlich lösen können? Bei mir hängt es ebenfalls mit der Mail nach Änderung des Zahlungsstatus zusammen.
