# Setze grad sw 6.5.84 auf und will von 6.4.20.2 migrieren

**URL:** <https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937>\
**Category:** Shopware 6 (German)\
**Created:** [13. Februar 2024 um 08:39 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937 "2024-02-13T08:39:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [13. Februar 2024 um 08:39 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/1 "2024-02-13T08:39:36Z")

</div>

Hallo, nachdem bei mir mehrere Fehler im System waren, ist es nicht mehr möglich, von der Version 6.4.20.2 zu updaten. Daher habe ich die neue Version 6.5.84 installiert und möchte jetzt die Daten aus der alten DB migrieren, aber das funktioniert nicht ☹ hat irgendjemand nützliche Tipps?

gruss Peter

---

<div class="post-metadata">

**Author:** ![NagelMedia](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NagelMedia](https://forum.shopware.com/u/NagelMedia)\
**Post date:** [13. Februar 2024 um 10:13 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/2 "2024-02-13T10:13:43Z")

</div>

Vielleicht nicht die eleganteste Lösung, aber warum nicht die 6.4.20.2 frisch installieren, DB migrieren und dann updaten?

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [13. Februar 2024 um 12:09 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/3 "2024-02-13T12:09:14Z")

</div>

Hallo, danke für den Tipp. Aber nun folgendes Problem:

Wenn ich die 6.4.2… Version installiere, hänge ich spätestens bei Erstellung der neuen Datenbank ab Zeile 509…

---

<div class="post-metadata">

**Author:** ![NagelMedia](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NagelMedia](https://forum.shopware.com/u/NagelMedia)\
**Post date:** [13. Februar 2024 um 13:26 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/4 "2024-02-13T13:26:40Z")

</div>

Hast die laufende MySQL/MariaDB-Version mit den SW-Voraussetzungen abgeglichen? Evtl. spielt auch die PHP-Version eine Rolle.

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [14. Februar 2024 um 10:16 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/5 "2024-02-14T10:16:03Z")

</div>

Fehler meldet er vom System her nicht, allerdings OPc Cache nur 128mb.

Allerdings habe ich die php 8.3 Version aktiviert

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [14. Februar 2024 um 10:20 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/6 "2024-02-14T10:20:15Z")

</div>

so nun hab ich es mit php 7.4 probiert, selbes problem

---

<div class="post-metadata">

**Author:** ![NagelMedia](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NagelMedia](https://forum.shopware.com/u/NagelMedia)\
**Post date:** [14. Februar 2024 um 11:39 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/7 "2024-02-14T11:39:34Z")

</div>

7.4 ist bisschen alt, 8.3 evtl. noch etwas zu neu. Würd mal die 8.1 oder maximal 8.2 probieren, wie hier empfohlen: [Shopware 6 - Erste Schritte - Systemvoraussetzungen](https://docs.shopware.com/de/shopware-6-de/erste-schritte/systemvoraussetzungen)

und in dem Fall wahrscheinlich noch wichtiger:

> - MySQL 8.0.17 oder höher  
> Die MySQL Versionen 8.0.20 und 8.0.21 sind aufgrund von technischen Problemen in diesen Versionen nicht kompatibel.  
> oder
> - MariaDB 10.3.22 oder höher  
> Die MariaDB Versionen 10.3.29, 10.4.19, 10.5.10 sind aufgrund von technischen Problemen in diesen Versionen nicht kompatibel.

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [15. Februar 2024 um 08:22 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/8 "2024-02-15T08:22:09Z")

</div>

hmm, ja ist bei Hetzner natürlich schon die neuere MariaDB 10.15…

Hab jetzt nochmal das Update mit der shopware-installer.phar.php probiert mit folgender Fehlermeldung:  
Fatal error: Uncaught ReflectionException: Class „Shopware\Core\Framework\MessageQueue\Handler\AbstractMessageHandler“ not found while loading „SwagMigrationAssistant\Migration\MessageQueue\Handler\ProcessMediaHandler“. in /usr/www/users/swonline/shopware6/vendor/composer/ClassLoader.php:576  
Stack trace:  
#0 [internal function]: Composer\Autoload\ClassLoader-\>loadClass(‚SwagMigrationAs…‘)  
#1 /usr/www/users/swonline/shopware6/vendor/symfony/config/Resource/ClassExistenceResource.php(76): class\_exists(‚SwagMigrationAs…‘)  
#2 /usr/www/users/swonline/shopware6/vendor/symfony/dependency-injection/ContainerBuilder.php(361): Symfony\Component\Config\Resource\ClassExistenceResource-\>isFresh(0)  
#3 /usr/www/users/swonline/shopware6/vendor/symfony/messenger/DependencyInjection/MessengerPass.php(74): Symfony\Component\DependencyInjection\ContainerBuilder-\>getReflectionClass(‚SwagMigrationAs…‘)  
#4 /usr/www/users/swonline/shopware6/vendor/symfony/messenger/DependencyInjection/MessengerPass.php(58): Symfony\Component\Messenger\DependencyInjection\MessengerPass-\>registerHandlers(Object(Symfony\Component\DependencyInjection\ContainerBuilder), Array)  
#5 /usr/www/users/swonline/shopware6/vendor/symfony/dependency-injection/Compiler/Compiler.php(80): Symfony\Component\Messenger\DependencyInjection\MessengerPass-\>process(Object(Symfony\Component\DependencyInjection\ContainerBuilder))  
#6 /usr/www/users/swonline/shopware6/vendor/symfony/dependency-injection/ContainerBuilder.php(767): Symfony\Component\DependencyInjection\Compiler\Compiler-\>compile(Object(Symfony\Component\DependencyInjection\ContainerBuilder))  
#7 /usr/www/users/swonline/shopware6/vendor/symfony/http-kernel/Kernel.php(506): Symfony\Component\DependencyInjection\ContainerBuilder-\>compile()  
#8 /usr/www/users/swonline/shopware6/vendor/shopware/core/Kernel.php(192): Symfony\Component\HttpKernel\Kernel-\>initializeContainer()  
#9 /usr/www/users/swonline/shopware6/bin/console(51): Shopware\Core\Kernel-\>boot()  
#10 /usr/www/users/swonline/shopware6/vendor/autoload\_runtime.php(24): {closure}(Array)  
#11 /usr/www/users/swonline/shopware6/bin/console(15): require\_once(‚/usr/www/users/…‘)  
#12 {main}  
thrown in /usr/www/users/swonline/shopware6/vendor/composer/ClassLoader.php on line 576

---

<div class="post-metadata">

**Author:** ![NagelMedia](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@NagelMedia](https://forum.shopware.com/u/NagelMedia)\
**Post date:** [15. Februar 2024 um 08:54 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/9 "2024-02-15T08:54:59Z")

</div>

Die Installation hat also erstmal fehlerfrei funktioniert?  
Der Fehler scheint ja den Migrationsassistenten zu betreffen. Wozu brauchst Du den dann noch? Kenn mich damit nicht soo genau aus, aber ist der nicht dafür um z.B. von SW5 auf SW6 zu migrieren?  
Hau den doch mal raus, bevor du das Update installierst.  
Wenn du das Update über’s Backend machst, bekommst du ja auch Kompatibilitätswarnungen zu Plugins angezeigt. Warum über die shopware-installer.phar.php?

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [15. Februar 2024 um 09:18 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/10 "2024-02-15T09:18:40Z")

</div>

hi, hab den deinstalliert, nun bekomme ich wie auch beim Update im Adminbereich folgende Meldung (die macht mich noch Wahnsinnig…) 🙂

In Connection.php line 33:

[PDOException (42000)]  
SQLSTATE[42000]: Syntax error or access violation: 1091 Can’t DROP FOREIGN  
KEY `fk.customer_address.salutation_id`; check that it exists

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [15. Februar 2024 um 10:12 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/11 "2024-02-15T10:12:15Z")

</div>

> [@autostar-handel](#):
>
> KEY `fk.customer_address.salutation_id`; check that it exists

Dank dem alten Beitrag von Columbus habe ich es jetzt geschafft, von 6.4.20.2 auf 6.5.0.0 zu updaten mit dieser Datenbankänderung:  
**ALTER**  **TABLE** `customer_address` **ADD**  **CONSTRAINT** `fk.customer_address.salutation_id` **FOREIGN** KEY ( `salutation_id` ) **REFERENCES** `salutation` ( `id` ) **ON**  **DELETE**  **SET**  **NULL**  **ON**  **UPDATE**  **NO** ACTION;

ALTER TABLE `customer` ADD CONSTRAINT `fk.customer.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;

ALTER TABLE `order_customer` ADD CONSTRAINT `fk.order_customer.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;

ALTER TABLE `order_address` ADD CONSTRAINT `fk.order_address.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;

ALTER TABLE `newsletter_recipient` ADD CONSTRAINT `fk.newsletter_recipient.salutation_id` FOREIGN KEY ( `salutation_id` ) REFERENCES `salutation` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;

---

<div class="post-metadata">

**Author:** ![autostar-handel](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@autostar-handel](https://forum.shopware.com/u/autostar-handel)\
**Post date:** [15. Februar 2024 um 10:53 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/12 "2024-02-15T10:53:53Z")

</div>

So, nun habe ich erfolgreich von Version 6.5.0.0 auf 6.5.8.5 geupdated mit folgenden SQL-Befehlen:

ALTER TABLE `order` ADD CONSTRAINT `fk.order.created_by_id` FOREIGN KEY ( `created_by_id` ) REFERENCES `user` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;  
ALTER TABLE `order` ADD CONSTRAINT `fk.order.updated_by_id` FOREIGN KEY ( `updated_by_id` ) REFERENCES `user` ( `id` ) ON DELETE SET NULL ON UPDATE NO ACTION;

Jetzt läuft die neueste Version reibungslos und die Erweiterungen wurden von mir schrittweise aktualisiert und aktiviert. Der Migrationsassistent wurde deinstalliert.

Vielen Dank an NagelMedia und Columbus für die nützlichen Tipps und Ansätze 🥳

lg Peter

---

<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:** [16. März 2024 um 10:54 UTC](https://forum.shopware.com/t/setze-grad-sw-6-5-84-auf-und-will-von-6-4-20-2-migrieren/102937/13 "2024-03-16T10:54:30Z")

</div>

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