# \[Gelöst\]HILFE !!! Absturz mitten im UPDate - Shop offline

**URL:** <https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419>\
**Category:** Programmierung\
**Created:** [25. April 2017 um 13:18 UTC](https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419 "2017-04-25T13:18:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toric](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@Toric](https://forum.shopware.com/u/Toric)\
**Post date:** [25. April 2017 um 13:18 UTC](https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419/1 "2017-04-25T13:18:36Z")

</div>

Hallo,

jetzt mache ich einmal ein Update mitten im Tagesbetrieb… Auf allen Testinstallationen ohne Probleme. Im Liveshop jetzt die Katastrophe. Nach dem Klick auf “Aufräumen” folgende Meldung

&nbsp;

```
Slim Application Error

The application could not run because of the following error:
Details
Type: Doctrine\Common\Annotations\AnnotationException
Message: [Semantical Error] The annotation "@ORM\Table" in class Shopware\Models\ProductStream\ProductStream was never imported. Did you maybe forget to add a "use" statement for this annotation?
File: /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php
Line: 54
Trace

#0 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(727): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...')
#1 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(663): Doctrine\Common\Annotations\DocParser->Annotation()
#2 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(354): Doctrine\Common\Annotations\DocParser->Annotations()
#3 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(218): Doctrine\Common\Annotations\DocParser->parse('/**
 * @ORM\\Tab...', 'class Shopware\\...')
#4 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/CachedReader.php(79): Doctrine\Common\Annotations\AnnotationReader->getClassAnnotations(Object(ReflectionClass))
#5 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(180): Doctrine\Common\Annotations\CachedReader->getClassAnnotations(Object(ReflectionClass))
#6 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/AnnotationDriver.php(247): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver->isTransient('Shopware\\Models...')
#7 /var/www/vhosts/hosting.de/verzeichnis/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(114): Doctrine\Common\Persistence\Mapping\Driver\AnnotationDriver->getAllClassNames()
#8 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/Model/ModelManager.php(218): Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#9 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/Model/ModelManager.php(202): Shopware\Components\Model\ModelManager->regenerateAttributeProxies(Array)
#10 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(93): Shopware\Components\Model\ModelManager->generateAttributeModels()
#11 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/DependencyInjection/Bridge/Models.php(81): Shopware\Components\DependencyInjection\Bridge\Models->generateAttributeModels(Object(Shopware\Components\Model\ModelManager))
#12 /var/www/vhosts/hosting.de/verzeichnis/var/cache/production_201704210836/proxies/ShopwareProduction502fa417b38f648900e4494b802a8441ca05fcdfProjectContainer.php(700): Shopware\Components\DependencyInjection\Bridge\Models->factory(Object(Doctrine\Common\EventManager), Object(Shopware\Components\Model\Configuration), Object(Enlight_Loader), Object(Doctrine\DBAL\Connection), Object(Doctrine\ORM\Mapping\Driver\AnnotationDriver))
#13 /var/www/vhosts/hosting.de/verzeichnis/vendor/symfony/dependency-injection/Container.php(314): ShopwareProduction502fa417b38f648900e4494b802a8441ca05fcdfProjectContainer->getModelsService()
#14 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/DependencyInjection/Container.php(217): Symfony\Component\DependencyInjection\Container->get('models', 1)
#15 /var/www/vhosts/hosting.de/verzeichnis/engine/Shopware/Components/DependencyInjection/Container.php(146): Shopware\Components\DependencyInjection\Container->doLoad('models', 1)
#16 /var/www/vhosts/hosting.de/verzeichnis/recovery/update/src/DependencyInjection/Container.php(183): Shopware\Components\DependencyInjection\Container->get('models')
#17 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection\{closure}(Object(Pimple\Container))
#18 /var/www/vhosts/hosting.de/verzeichnis/recovery/update/src/DependencyInjection/Container.php(189): Pimple\Container->offsetGet('shopware.contai...')
#19 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/pimple/pimple/src/Pimple/Container.php(113): Shopware\Recovery\Update\DependencyInjection\Container->Shopware\Recovery\Update\DependencyInjection\{closure}(Object(Pimple\Container))
#20 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/src/DependencyInjection/Container.php(80): Pimple\Container->offsetGet('shopware.theme_...')
#21 /var/www/vhosts/hosting.de/verzeichnis/recovery/update/src/app.php(169): Shopware\Recovery\Common\DependencyInjection\Container->get('shopware.theme_...')
#22 [internal function]: {closure}()
#23 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Route.php(462): call_user_func_array(Object(Closure), Array)
#24 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Slim.php(1326): Slim\Route->dispatch()
#25 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call()
#26 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call()
#27 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Middleware/PrettyExceptions.php(67): Slim\Middleware\MethodOverride->call()
#28 /var/www/vhosts/hosting.de/verzeichnis/recovery/common/vendor/slim/slim/Slim/Slim.php(1271): Slim\Middleware\PrettyExceptions->call()
#29 /var/www/vhosts/hosting.de/verzeichnis/recovery/update/index.php(69): Slim\Slim->run()
#30 {main}

```

Was nun?

&nbsp;

Backend zeigt ebenfalls den Wartungsmodus an.

LG

---

<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:** [25. April 2017 um 13:25 UTC](https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419/2 "2017-04-25T13:25:26Z")

</div>

Dann solltest du im ersten Schritt ein Backup einspielen, damit der Shop wieder läuft.

Die Fehlermeldung ließt sich so, als gäbe es Probleme mit den Foreign Keys oder einem Plugin. Testweise kannst du natürlich folgendes testen:

1.)

- Foreign Key Reparatur:&nbsp;[http://community.shopware.com/Foreign-Keys-reparieren\_detail\_954.html](http://community.shopware.com/Foreign-Keys-reparieren_detail_954.html)
- Update nochmal anstoßen per Aufruf /recovery/update
- -\> Prüfen ob es funktioniert

2.)

- Plugins alle deaktivieren:&nbsp;[http://community.shopware.com/Shopware-SQL-Trickkiste\_detail\_1984.html](http://community.shopware.com/Shopware-SQL-Trickkiste_detail_1984.html)
- Cache löschen
- Update nochmal anstoßen per Aufruf /recovery/update
- -\> Prüfen ob es funktioniert

Oft kannst du das aber nachstellen, wenn die Testumgebung dem aktuellen Live-Stand entspricht. Das solltest du bei einem Updatetest auch immer sicherstellen - also am besten regelmäßig die Testumgebung neu bauen, damit Fehler die es in der Datenbank des Hauptshops gibt auch im Testshop vorhanden sind. Bpsw. 1x täglich neu Aufsetzen oder immer dann, wenn du etwas testen willst direkt davor.

---

<div class="post-metadata">

**Author:** ![Toric](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@Toric](https://forum.shopware.com/u/Toric)\
**Post date:** [25. April 2017 um 13:58 UTC](https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419/3 "2017-04-25T13:58:53Z")

</div>

Vielen Dank.

Aixpro hats gerichtet - auch wenn ich nicht genau weiß wie. 🙂 … und das in Rekordzeit

---

<div class="post-metadata">

**Author:** ![kanuma](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kanuma](https://forum.shopware.com/u/kanuma)\
**Post date:** [25. April 2017 um 14:04 UTC](https://forum.shopware.com/t/gelost-hilfe-absturz-mitten-im-update-shop-offline/45419/4 "2017-04-25T14:04:51Z")

</div>

Aixpro Freund und Helfer
