Ich habe für ein Projekt den 6.4.10.x am laufen.
Seit einiger Zeit bekomme ich diese Meldung im Backend:
Durch die Frish Tools und den Status im Backend sehe ich auch das diese nicht zuverlässig laufen!
Nun meine Frage wie finde ich heraus wo es gerade hängt?
Hoffe mal auf gute Tipps!
In der Datenbank gibt es eine Tabelle, müsste irgendwas mit messages bzw. queed lauten. Dort solltest du etwas mehr Informationen erhalten.
Also dort sind gut 50.800 Datensätzen. Dies scheint sich nicht von der /var/log/prod-2022-04-27.log zu unterscheiden.
Scheinbar scheint es am Google Export zu liegen. Aber wenn ich dieses auf Live stelle und die URL aufrufe geht dieser ohne Probleme. Es wird die Zeile 8 angemerkt aber diese erzeugt im Live Modus die Zeile
< language >de-DE< /language >
Sehr oft sehe ich dies hier:
Messages:
Failed rendering string template using Twig: Failed rendering string template using Twig: Impossible to access an attribute („locale“) on a null variable in „b58c86f362510e04e75f7c5416b1aacd“ at line 8.
Context:
{„source“: „core“, „environment“: „prod“, „additionalData“: {„exception“: „Shopware\Core\Content\ProductExport\Exception\RenderHeaderException: Failed rendering string template using Twig: Failed rendering string template using Twig: Impossible to access an attribute ("locale") on a null variable in "b58c86f362510e04e75f7c5416b1aacd" at line 8. in /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/Service/ProductExportRenderer.php:70\nStack trace:\n#0 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/ScheduledTask/ProductExportPartialGenerationHandler.php(189): Shopware\Core\Content\ProductExport\Service\ProductExportRenderer->renderHeader(Object(Shopware\Core\Content\ProductExport\ProductExportEntity), Object(Shopware\Core\System\SalesChannel\SalesChannelContext))\n#1 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/ScheduledTask/ProductExportPartialGenerationHandler.php(159): Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGenerationHandler->finalizeExport(Object(Shopware\Core\Content\ProductExport\ProductExportEntity), ‚export/PL-DE-GS…‘)\n#2 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Handler/AbstractMessageHandler.php(16): Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGenerationHandler->handle(Object(Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGeneration))\n#3 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php(96): Shopware\Core\Framework\MessageQueue\Handler\AbstractMessageHandler->__invoke(Object(Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGeneration))\n#4 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/SendMessageMiddleware.php(74): Symfony\Component\Messenger\Middleware\HandleMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#5 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Middleware/RetryMiddleware.php(41): Symfony\Component\Messenger\Middleware\SendMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#6 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/FailedMessageProcessingMiddleware.php(34): Shopware\Core\Framework\MessageQueue\Middleware\RetryMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#7 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/DispatchAfterCurrentBusMiddleware.php(68): Symfony\Component\Messenger\Middleware\FailedMessageProcessingMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#8 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/RejectRedeliveredMessageMiddleware.php(48): Symfony\Component\Messenger\Middleware\DispatchAfterCurrentBusMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#9 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/AddBusNameStampMiddleware.php(37): Symfony\Component\Messenger\Middleware\RejectRedeliveredMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#10 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/MessageBus.php(77): Symfony\Component\Messenger\Middleware\AddBusNameStampMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#11 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Monitoring/MonitoringBusDecorator.php(37): Symfony\Component\Messenger\MessageBus->dispatch(Object(Symfony\Component\Messenger\Envelope), Array)\n#12 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/RoutableMessageBus.php(54): Shopware\Core\Framework\MessageQueue\Monitoring\MonitoringBusDecorator->dispatch(Object(Symfony\Component\Messenger\Envelope), Array)\n#13 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Worker.php(158): Symfony\Component\Messenger\RoutableMessageBus->dispatch(Object(Symfony\Component\Messenger\Envelope))\n#14 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Worker.php(107): Symfony\Component\Messenger\Worker->handleMessage(Object(Symfony\Component\Messenger\Envelope), ‚default‘)\n#15 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Command/ConsumeMessagesCommand.php(225): Symfony\Component\Messenger\Worker->run(Array)\n#16 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Command/Command.php(298): Symfony\Component\Messenger\Command\ConsumeMessagesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#17 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(1033): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#18 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#19 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(299): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#20 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#21 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#22 /var/www/html/SW-Projektleder-Projekt/bin/console(69): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))\n#23 {main}“}}
Habe es nun von Hand auf de-DE geändert nun scheint dieses Problem weg zu sein.
Aber nun kommt folgendes:
Es scheint auch wieder am Google Export zu legen.
Meiner Meinung nach im Produktzeilen Template auf Zeile 8 mit den Media Link der dort erstellt wird.
Message:
Failed rendering string template using Twig: Failed rendering string template using Twig: Impossible to access an attribute („media“) on a null variable in „9151508e30457b93de7f53a0430d5caf“ at line 8.
Context:
{„source“: „core“, „environment“: „prod“, „additionalData“: {„exception“: „Shopware\Core\Content\ProductExport\Exception\RenderProductException: Failed rendering string template using Twig: Failed rendering string template using Twig: Impossible to access an attribute ("media") on a null variable in "9151508e30457b93de7f53a0430d5caf" at line 8. in /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/Service/ProductExportRenderer.php:124\nStack trace:\n#0 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/Service/ProductExportGenerator.php(196): Shopware\Core\Content\ProductExport\Service\ProductExportRenderer->renderBody(Object(Shopware\Core\Content\ProductExport\ProductExportEntity), Object(Shopware\Core\System\SalesChannel\SalesChannelContext), Array)\n#1 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Content/ProductExport/ScheduledTask/ProductExportPartialGenerationHandler.php(130): Shopware\Core\Content\ProductExport\Service\ProductExportGenerator->generate(Object(Shopware\Core\Content\ProductExport\ProductExportEntity), Object(Shopware\Core\Content\ProductExport\Struct\ExportBehavior))\n#2 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Handler/AbstractMessageHandler.php(16): Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGenerationHandler->handle(Object(Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGeneration))\n#3 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php(96): Shopware\Core\Framework\MessageQueue\Handler\AbstractMessageHandler->__invoke(Object(Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportPartialGeneration))\n#4 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/SendMessageMiddleware.php(74): Symfony\Component\Messenger\Middleware\HandleMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#5 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Middleware/RetryMiddleware.php(41): Symfony\Component\Messenger\Middleware\SendMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#6 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/FailedMessageProcessingMiddleware.php(34): Shopware\Core\Framework\MessageQueue\Middleware\RetryMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#7 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/DispatchAfterCurrentBusMiddleware.php(68): Symfony\Component\Messenger\Middleware\FailedMessageProcessingMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#8 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/RejectRedeliveredMessageMiddleware.php(48): Symfony\Component\Messenger\Middleware\DispatchAfterCurrentBusMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#9 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Middleware/AddBusNameStampMiddleware.php(37): Symfony\Component\Messenger\Middleware\RejectRedeliveredMessageMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#10 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/MessageBus.php(77): Symfony\Component\Messenger\Middleware\AddBusNameStampMiddleware->handle(Object(Symfony\Component\Messenger\Envelope), Object(Symfony\Component\Messenger\Middleware\StackMiddleware))\n#11 /var/www/html/SW-Projektleder-Projekt/vendor/shopware/core/Framework/MessageQueue/Monitoring/MonitoringBusDecorator.php(37): Symfony\Component\Messenger\MessageBus->dispatch(Object(Symfony\Component\Messenger\Envelope), Array)\n#12 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/RoutableMessageBus.php(54): Shopware\Core\Framework\MessageQueue\Monitoring\MonitoringBusDecorator->dispatch(Object(Symfony\Component\Messenger\Envelope), Array)\n#13 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Worker.php(158): Symfony\Component\Messenger\RoutableMessageBus->dispatch(Object(Symfony\Component\Messenger\Envelope))\n#14 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Worker.php(107): Symfony\Component\Messenger\Worker->handleMessage(Object(Symfony\Component\Messenger\Envelope), ‚default‘)\n#15 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/messenger/Command/ConsumeMessagesCommand.php(225): Symfony\Component\Messenger\Worker->run(Array)\n#16 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Command/Command.php(298): Symfony\Component\Messenger\Command\ConsumeMessagesCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#17 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(1033): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#18 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/framework-bundle/Console/Application.php(96): Symfony\Component\Console\Application->doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#19 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(299): Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand(Object(Symfony\Component\Messenger\Command\ConsumeMessagesCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#20 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/framework-bundle/Console/Application.php(82): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#21 /var/www/html/SW-Projektleder-Projekt/vendor/symfony/console/Application.php(171): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))\n#22 /var/www/html/SW-Projektleder-Projekt/bin/console(69): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput))\n#23 {main}“}}