No transport supports the given Messenger DSN

Error message

Uncaught PHP Exception Symfony\Component\Messenger\Exception\InvalidArgumentException: "No transport supports the given Messenger DSN. Run "composer require symfony/redis-messenger" to install Redis transport." at TransportFactory.php line 54
{"exception":"[object] (Symfony\\Component\\Messenger\\Exception\\InvalidArgumentException(code: 0): No transport supports the given Messenger DSN. Run \"composer require symfony/redis-messenger\" to install Redis transport.
at /var/www/vhosts/creoline-demo.com/httpdocs/vendor/symfony/messenger/Transport/TransportFactory.php:54)"

The error is caused when Redis is configured in Shopware 6 and the Composer package symfony/redis-messenger is missing. Shopware has removed this package from its standard dependencies.



Solution

Execute the following command in the Shopware 6 application directory of your server:

composer require symfony/redis-messenger