# Indexaufbau per SSH wird nach 30% abgebrochen

**URL:** <https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309>\
**Category:** Administration\
**Tags:** general, administration\
**Created:** [17. Juni 2024 um 17:55 UTC](https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309 "2024-06-17T17:55:55Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![thomas.kipp](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@thomas.kipp](https://forum.shopware.com/u/thomas.kipp)\
**Post date:** [18. Juni 2024 um 08:15 UTC](https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309/21 "2024-06-18T08:15:51Z")

</div>

So einiges. Die laufen nämlich nie sauber durch.  
Ich habe das jetzt so gefixt:

```auto
 private function getAssociations(string $template, EntityDefinition $definition): array
    {
        try {
			//changed at 20240618: Included missing paranthese in template string in order to avoid Exception fetching variables
			$template=$template.'}';
            $variables = $this->twigVariableParser->parse($template);			
        } catch (\Exception $e) {
			  file_put_contents("config/jwt/seoURLGenerator.log", $e->getMessage() . " at line" . __LINE__. " in file " . __FILE__. PHP_EOL, FILE_APPEND);
            $e = new InvalidTemplateException($e->getMessage());
			/*changed in order to prevent unknown error do not throw Exception
            throw $e;
			*/
...
        }

```

Jetzt ist $template korrekt und $variables nicht mehr null. Ob damit die Indexierung sauber durchläuft, muss sich noch zeigen

---

<div class="post-metadata">

**Author:** ![thomas.kipp](https://avatars.discourse-cdn.com/v4/letter/t/b5e925/32.png) [@thomas.kipp](https://forum.shopware.com/u/thomas.kipp)\
**Post date:** [18. Juni 2024 um 19:47 UTC](https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309/22 "2024-06-18T19:47:52Z")

</div>

Meine letzten Codeänderungen haben das Problem gelöst. Jetzt  
a) schreibt der Generator in die Log  
b) werden alle Indizies mitsamt der Assoziationen erstellt.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/f/4/f4e8d93c1fc890c5873d664ed0407761fd251415.png)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [18. Juli 2024 um 19:48 UTC](https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309/23 "2024-07-18T19:48:39Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.

[Vorherige Seite](https://forum.shopware.com/t/indexaufbau-per-ssh-wird-nach-30-abgebrochen/104309.md?page=1)
