This topic contains 1 reply, has 2 voices, and was last updated by Andrey Yatsenko 4 years, 10 months ago.
-
Topic
-
Hello,
ORO Platform version: 2.6.31
When I have more than one instance of consumers running by supervisor:
123456789[program:platform_message_consumer]command=php /home/oropl/public_html/app/console oro:message-queue:consume --env=prodprocess_name=%(program_name)s_%(process_num)02dnumprocs=4autostart=trueautorestart=truestartsecs=0user=rootredirect_stderr=trueI get lots of these errors:
An exception occurred while executing ‘DELETE FROM oro_message_queue WHERE id=:messageId LIMIT 1’ with params [\”2541\”]:\n\nSQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction at /home/oropl/public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:115
An error occurred while running command “‘oro:message-queue:consume’ –env=prod”. An exception occurred while executing ‘DELETE FROM oro_message_queue WHERE id=:messageId LIMIT 1’ with params [“2541”]: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction {“exit_code”:0,”exception”:”[object] (Doctrine\\DBAL\\Exception\\DriverException(code: 0)
When I change it to only one instance of consumer problem is resolved.
Is this an issue?
Thanks
The forum ‘OroPlatform – Installation/Technical Issues or Problems’ is closed to new topics and replies.