Hallo,
ich habe häufig das Problem, dass nach dem Bearbeiten und Speichern von Bestellungen über den Adminbereich, Bestellungen nicht mehr vorhanden sind. Manchmal passiert es beim Erstellen von Dokumenten, manchmal auch beim Ausfüllen von bspw. Custom Fields an der Bestellung.
Mir ist aufgefallen, dass bei diesen Bestellungen, in der Datenbank kein Datensatz mehr mit der Live-Version-ID existiert. Zum Wiederherstellen nehme ich dann den letzten inkrementierten Datensatz, den ich von dieser Bestellungen finden kann und trage dort, sowie in den referenzierten Datensätzen, die Live-Version-ID „0fa91ce3e96a4bc2be4bd9ce752c3425“ ein. Danach ist die Bestellung dann wieder da.
Ich denke, hier liegt ein grundsätzliches Problem beim Klonen/Versionieren von Datensätzen vor. InnoDB garantiert die Integrität von Daten, was bei diesem Ansatz offensichtlich nur noch teilweise der Fall ist. Dass ein bzw. aufeinander folgende REST Calls einen Bestelldatensatz zerstören, darf auf keinen Fall passieren. Selbst wenn ein fremdes Plugin in den Ablauf eingreift, darf es allenfalls zu einem Abbruch kommen.
Ich konnte zu diesem Problem bisher nichts finden. Ist jemandem dieses oder ähnliches Problem bekannt?
Log-Einträge:
[2022-04-05T15:24:35.891179+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T15:24:35.891179+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T15:24:35.892026+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T15:24:35.900390+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T17:15:32.183246+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T17:15:32.183303+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T17:15:32.184248+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
[2022-04-05T17:15:32.215131+00:00] request.CRITICAL: Uncaught PHP Exception RuntimeException: "Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found." at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php line 339 {"exception":"[object] (RuntimeException(code: 0): Cannot create new version. order by id (49b8b4f95f02e055801da3b4f58e28b7) not found. at /var/www/vendor/shopware/core/Framework/DataAbstractionLayer/VersionManager.php:339)"} []
HTTP-Logs:
XXX.XXX.XXX.XXX - - [05/Apr/2022:13:45:04 +0200] "GET /api/_action/state-machine/order/49b8b4f95f02e055801da3b4f58e28b7/state HTTP/2.0" 200 1017 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:20:20 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 215 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:20:20 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 158 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:20:20 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 158 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:20:20 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 158 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:39 +0200] "POST /api/_action/version/06de18d87531485fa52e2ed7a25546b2/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 403 333 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:39 +0200] "POST /api/_action/version/0fa91ce3e96a4bc2be4bd9ce752c3425/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 248 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:39 +0200] "POST /api/_action/version/0fa91ce3e96a4bc2be4bd9ce752c3425/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 224 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:39 +0200] "POST /api/_action/version/0fa91ce3e96a4bc2be4bd9ce752c3425/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 224 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:48 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 182 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:48 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 159 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:48 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 159 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:23:48 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 200 159 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 285 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 693 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 693 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 693 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:14:32:49 +0200] "PATCH /api/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 693 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 213 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:15:24:35 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:31 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 251 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:31 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:31 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:31 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 401 190 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:32 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:32 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:32 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"
XXX.XXX.XXX.XXX - - [05/Apr/2022:17:15:32 +0200] "POST /api/_action/version/order/49b8b4f95f02e055801da3b4f58e28b7 HTTP/2.0" 500 199 "https://www.example.org/admin" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0"