Nach Update auf 6.7.8.0 / 6.7.8.1 werden keine Status Mails mehr verschickt

Nach dem Update auf die Version 6.7.8.0 werden keine Status-Mails mehr verschickt.
Auf einem Shared Hosting System kommt beim Aufruf des Cron Jobs

php bin/console messenger:consume failed async low_priority --time-limit=240 --memory-limit=512M

Signals are not supported. Make sure that the „pcntl“ extension is installed and that „pcntl_*“ functions are not disabled by your php.ini’s „disable_functions“ directive.

Was aber auf einem Shared Hosting nicht aktiv ist.

Vor dem Update lief der Cron sauber durch.

Kann das jemand bestätigen?
Hat jemand schon eine Lösung gefunden?

@shyim hatte in irgendeinem anderen thread darüber gesprochen dass das wohl da rein gerutscht ist aber in 6.8 dann definitiv notwendig sein wird - sorry aber ich weiß den thread gerade nicht. Sprich da kommt glaube noch eine minor die das wieder zurück rollt bis 6.8

1 „Gefällt mir“

Das hat nur den WebUpdater betroffen und das wurde bereits wieder korrigiert.

Mit Cronjob ist mir nichts bekannt. Von welcher Version hast du den aktualisiert?

kannst du den command mit -vvv ausführen damit man genau weiß woher das kommt. Eigentlich war pcntl schon immer notwendig :thinking:

Shopware Version vorher war 6.7.6.2

php.ini -d memory_limit=1024M -d max_execution_time=600 -f bin/console messenger:consume async low_priority failed --time-limit=240 --memory-limit=512M -vvv ..

In Application.php line 121:

[Symfony\Component\Console\Exception\RuntimeException]
Signals are not supported. Make sure that the „pcntl“ extension is installe
d and that „pcntl_*“ functions are not disabled by your php.ini’s „disable_
functions“ directive.

Exception trace:
at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/console/Application.php:121
Symfony\Component\Console\Application->getSignalRegistry() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/console/Application.php:1032
Symfony\Component\Console\Application->doRunCommand() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/framework-bundle/Console/Application.php:123
Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/console/Application.php:356
Symfony\Component\Console\Application->doRun() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/framework-bundle/Console/Application.php:77
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/console/Application.php:195
Symfony\Component\Console\Application->run() at /var/www/virtual/meinshop.de/htdocs/vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:49
Symfony\Component\Runtime\Runner\Symfony\ConsoleApplicationRunner->run() at /var/www/virtual/meinshop.de/htdocs/vendor/autoload_runtime.php:32
require_once() at /var/www/virtual/meinshop.de/htdocs/bin/console:18

messenger:consume [-l|–limit LIMIT] [-f|–failure-limit FAILURE-LIMIT] [-m|–memory-limit MEMORY-LIMIT] [-t|–time-limit TIME-LIMIT] [–sleep SLEEP] [-b|–bus BUS] [–queues QUEUES] [–no-reset] [–all] [–exclude-receivers EXCLUDE-RECEIVERS] [–keepalive [KEEPALIVE]] [–] […]

Der Fehler tritt nur auf wenn der Aufruf über den Cron erfolgt.
Beim Aufruf über die Console kommt kein Fehler und es wird alles abgearbeitet und die Status - Mails werden versendet

Der Cronjob ruft ggf. eine andere PHP-Version auf, die eine andere ini Datei hat. Das mal prüfen.

Ist buggi in Symfony selbst, hab mal ein PR aufgemacht: [Messenger] Use SignalRegistry::isSupported() in ConsumeMessagesCommand by shyim · Pull Request #63691 · symfony/symfony · GitHub

Könntest du diese Datei in deinem vendor ordner ändern und schauen ob es dann behoben ist?

2 „Gefällt mir“

Symfony hat den PR gemerged, dauert aber vermutlich noch 1-2 Wochen bis die das veröffentlichen :sweat_smile:

1 „Gefällt mir“