# Amazon AWS Elasticsearch und shopware 5.1

**URL:** <https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858>\
**Category:** Programmierung\
**Created:** [2. Juli 2016 um 06:54 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858 "2016-07-02T06:54:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![misterix](https://avatars.discourse-cdn.com/v4/letter/m/eada6e/32.png) [@misterix](https://forum.shopware.com/u/misterix)\
**Post date:** [2. Juli 2016 um 06:54 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/1 "2016-07-02T06:54:40Z")

</div>

Hallo Zusammen,

ich verzweifle akutell an meiner Anbindung shopware 5.1 an einen Amazon AWS ElasticSearch Server. Hat hiermit jemand Erfahrung?

In Amazon habe ich den Zugriff auf ElasticSearch auf die IP meines Servers beschränkt. Vom Server kann ich per curl auch ein Testdokument ElasticSearch hinzufügen. Nur die shopware Indizierung mit

\_ **bin/console sw:es:index:populate** \_

bringt die Fehlermeldung

_**&nbsp;[Elasticsearch\Common\Exceptions\NoNodesAvailableException] &nbsp;  
&nbsp; No alive nodes found in your cluster &nbsp;**_

Mit einer lokalen ElasticSearch Installation klappt die Indizieurng ohne Probleme.

In der config.php habe ich den Eintrag  
‘es’ =\> array(  
&nbsp; &nbsp; &nbsp; &nbsp; ‘enabled’ =\> true,  
&nbsp; &nbsp; &nbsp; &nbsp; ‘client’ =\> array(  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ‘hosts’ =\> array(’\_ **Endpoint meiner AWS Domain** \_’)  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )  
&nbsp; &nbsp; &nbsp; &nbsp; ),

In Amazon selbst die Einstellungen

&nbsp;

Ich habe es beim Endpoint auch schon mit dem Port :9200 versucht. Das funktioniert leider auch nicht. Kann eigentlich auch nicht funktionieren, da mein Curl AUfruf auch ohne Portangabe funktionierte.

Vielen Dank Vorab für eure Unterstützung

---

<div class="post-metadata">

**Author:** ![martin\_brack](https://avatars.discourse-cdn.com/v4/letter/m/df705f/32.png) [@martin\_brack](https://forum.shopware.com/u/martin_brack)\
**Post date:** [2. September 2016 um 14:28 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/2 "2016-09-02T14:28:03Z")

</div>

Hallo Leute,

nachdem ich an der selben Stelle hing wie misterix und dieses Problem mittels Angabe des richtigen Ports (AWS Elasticsearch verwendet 80, nicht 9200) lösen konnte bin ich direkt ins nächste Problem gestolpert, sobald ich den Index aufbauen möchte kommt folgendes:

_[Elasticsearch\Common\Exceptions\BadRequest400Exception]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;  
&nbsp; {“Message”:“Your request: ‘/sw\_shop1\_20160902162019/\_close’ is not allowed by Amazon Elasticsearch Service.”} &nbsp;_

Gibt ess hier jemanden der AWS Elasticsearch mit der aktuellen Shopware (5.2.6) verwendet und kurz erläutern könnte wie er die Basiskonfoguration vorgenommen hat?

Danke,

Martin

&nbsp;

---

<div class="post-metadata">

**Author:** ![matthiasftl](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@matthiasftl](https://forum.shopware.com/u/matthiasftl)\
**Post date:** [3. November 2016 um 13:25 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/3 "2016-11-03T13:25:11Z")

</div>

Wir scheitern ebenfalls an der Elastic Search Integration. Weder auf unserem eigenen Server mit ES Installation, noch bei Amazon ES Service bricht die Index erstellung immer ab.

Gibt es denn überhauupt jemanden, der es geschafft hat, ES mit Shopware zum laufen zu bringen?

---

<div class="post-metadata">

**Author:** ![Misengo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/misengo/32/21446_2.png) [@Misengo](https://forum.shopware.com/u/Misengo)\
**Post date:** [19. Mai 2017 um 19:01 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/4 "2017-05-19T19:01:35Z")

</div>

Würde mich auch mal interessieren, bei uns bricht er immer beim indexieren der Produkte ab. Habe es schon auf die Subshops herunter gebrochen (7000 Artikel) - erst macht er properties, dann products und dann laaaaange Zeit nichts mehr. Nach 2 Stunden gibt man dann auch irgendwann auf…

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [19. Mai 2017 um 19:16 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/5 "2017-05-19T19:16:11Z")

</div>

Habt ihr denn auch die aktuelle ElasticSearch 5.4?

---

<div class="post-metadata">

**Author:** ![matthiasftl](https://avatars.discourse-cdn.com/v4/letter/m/f08c70/32.png) [@matthiasftl](https://forum.shopware.com/u/matthiasftl)\
**Post date:** [19. Mai 2017 um 19:24 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/6 "2017-05-19T19:24:16Z")

</div>

Mittlerweile klappt ES und Shopware ohne Probleme.

ES ist wie folgt bei uns installiert:

&nbsp; „version“ : {  
&nbsp;&nbsp;&nbsp; „number“ : „2.4.4“,  
&nbsp;&nbsp;&nbsp; „build\_hash“ : „fcbb46dfd45562a9cf00c604b30849a6dec6b017“,  
&nbsp;&nbsp;&nbsp; „build\_timestamp“ : „2017-01-03T11:33:16Z“,  
&nbsp;&nbsp;&nbsp; „build\_snapshot“ : false,  
&nbsp;&nbsp;&nbsp; „lucene\_version“ : „5.5.2“  
&nbsp; },

&nbsp;

---

<div class="post-metadata">

**Author:** ![Misengo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/misengo/32/21446_2.png) [@Misengo](https://forum.shopware.com/u/Misengo)\
**Post date:** [20. Mai 2017 um 20:05 UTC](https://forum.shopware.com/t/amazon-aws-elasticsearch-und-shopware-5-1/37858/7 "2017-05-20T20:05:30Z")

</div>

Ich teste aktuell mit ES 5.4 - es lief jetzt mal die Nacht durch und es kam ein PHP Error zum Ende. Werde den dann nochmal vom FA Rechner posten.

Wollte jetzt gerade nochmal mit Elastic Cloud testen, scheitere aber daran die config.php entsprechend anzupassen, da ich für den HTTPS Aufruf einen htaccess Schutz habe und nicht weiß wie ich die Werte übergebe.

&nbsp;

Jemand eine Idee?

```
 'es' =\> ['enabled' =\> true, 'number\_of\_replicas' =\> 0, 'number\_of\_shards' =\> null, 'client' =\> ['hosts' =\> [ 'https://XXXXXXXXXXXXXXXX.us-east-1.aws.found.io:9243'], 'user' =\> ['elastic'], 'password' =\> ['XXXXXXXXXX'] ] ]

```

&nbsp;

&nbsp;

Auch probiert habe ich :&nbsp;

```
 https://elastic:XXPWXX@XXURLXX.us-east-1.aws.found.io:9243

```

bei HOST

&nbsp;

Fehlermeldung stets:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  
&nbsp; [Elasticsearch\Common\Exceptions\NoNodesAvailableException] &nbsp;  
&nbsp; No alive nodes found in your cluster &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

&nbsp;
