OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM Error on 'oro:message-queue:consume' command.

This topic contains 3 replies, has 2 voices, and was last updated by  Andrey Yatsenko 5 years, 9 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #30914

    irina.k.melnikova
    Participant

    Hello,

    I have faced strange error ‘The EntityManager is closed’ without any details or potential failure reason while executing ‘oro:message-queue:consume’ command.

    Could please advise how to solve it? Logs are attached.

    Thank you.

    [2018-06-07 08:01:48] console.ERROR: An error occurred while running command “‘oro:cron:email-body-sync'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:cron:email-body-sync”}} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18bc1b3907f4.78697675″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206024}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18bc1b3907f4.78697675″,”timestamp”:1528347675},”message_priority”:2,”job_id”:1206024,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 08:31:47] console.ERROR: An error occurred while running command “‘oro:cron:email-body-sync'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:cron:email-body-sync”}} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18c31d6a3f92.84429950″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206084}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18c31d6a3f92.84429950″,”timestamp”:1528349469},”message_priority”:2,”job_id”:1206084,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 09:02:12] console.ERROR: An error occurred while running command “‘oro:cron:email-body-sync'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:cron:email-body-sync”}} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18c9f3e16e90.30476828″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206150}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18c9f3e16e90.30476828″,”timestamp”:1528351219},”message_priority”:2,”job_id”:1206150,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 09:32:17] console.ERROR: An error occurred while running command “‘oro:cron:email-body-sync'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:cron:email-body-sync”}} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18d0f259fdc7.10688513″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206213}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18d0f259fdc7.10688513″,”timestamp”:1528353010},”message_priority”:2,”job_id”:1206213,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 09:32:17] app.ERROR: Consuming interrupted by exception. “The EntityManager is closed.” {“exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18d0f259fdc7.10688513″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206213}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18d0f259fdc7.10688513″,”timestamp”:1528353010},”message_priority”:2,”job_id”:1206213,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 09:32:17] console.ERROR: An error occurred while running command “–env=prod –no-debug ‘oro:message-queue:consume'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:message-queue:consume”},”options”:{“env”:”prod”,”no-debug”:true}} []
    [2018-06-07 10:01:48] console.ERROR: An error occurred while running command “‘oro:cron:email-body-sync'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:cron:email-body-sync”}} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18d81bd70132.70606237″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206273}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18d81bd70132.70606237″,”timestamp”:1528354843},”message_priority”:2,”job_id”:1206273,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 10:01:48] app.ERROR: Consuming interrupted by exception. “The EntityManager is closed.” {“exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”} {“processor”:”Oro\\Bundle\\CronBundle\\Async\\CommandRunnerProcessor”,”message_id”:”oro.5b18d81bd70132.70606237″,”message_body”:”{\”command\”:\”oro:cron:email-body-sync\”,\”arguments\”:[],\”jobId\”:1206273}”,”message_properties”:{“oro.message_queue.client.topic_name”:”oro.cron.run_command.delayed”,”oro.message_queue.client.processor_name”:”oro_cron.async.command_runner_processor”,”oro.message_queue.client.queue_name”:”oro.default”},”message_headers”:{“content_type”:”application/json”,”message_id”:”oro.5b18d81bd70132.70606237″,”timestamp”:1528354843},”message_priority”:2,”job_id”:1206273,”job_name”:”oro:cron:run_command:oro:cron:email-body-sync.delayed”,”job_data”:[]}
    [2018-06-07 10:01:48] console.ERROR: An error occurred while running command “–env=prod –no-debug ‘oro:message-queue:consume'”. The EntityManager is closed. {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMException(code: 0): The EntityManager is closed. at /var/www/crm.int.portaone.com/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:144)”,”arguments”:{“command”:”oro:message-queue:consume”},”options”:{“env”:”prod”,”no-debug”:true}} []

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘OroCRM’ is closed to new topics and replies.

Back to top