OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce problem oro:message-queue:consume crash

This topic contains 7 replies, has 5 voices, and was last updated by  oro_newbie 3 years, 11 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
  • #32431

    ales
    Participant

    DEBUG: Set logger to the context {“extension”:”Oro\Component\MessageQueue\Consumption\Extension\LoggerExtension”}
    INFO: Start consuming
    DEBUG: Switch to a queue oro.default
    DEBUG: SELECT updated_at FROM oro_message_queue_state WHERE id = :id {“extension”:”Oro\Bundle\MessageQueueBundle\Consumption\Extension\ResettableExtensionWrapper”} {“id”:”cache”}
    INFO: Update the consumer state time. {“extension”:”Oro\Bundle\MessageQueueBundle\Consumption\Extension\ConsumerHeartbeatExtension”}
    DEBUG: UPDATE oro_message_queue_state SET updated_at = ? WHERE id = ? {“extension”:”Oro\Bundle\MessageQueueBundle\Consumption\Extension\ConsumerHeartbeatExtension”} [“2017-11-30 09:56:06″,”consumers”]
    DEBUG: Make sure the queue “oro.default” exists on a broker side. {“extension”:”Oro\Bundle\MessageQueueBundle\Consumption\Extension\ResettableExtensionWrapper”}
    ERROR: Consuming interrupted by exception. “Expected numeric content. content:””” {“extension”:”Oro\Component\MessageQueue\Consumption\Dbal\Extension\RedeliverOrphanMessagesDbalExtension”} {“exception”:”[object] (LogicException(code: 0): Expected numeric content. content:\”\” at /opt/bitnami/apache2/htdocs/vendor/oro/platform/src/Oro/Component/MessageQueue/Consumption/Dbal/DbalPidFileManager.php:89)”}

    [LogicException]
    Expected numeric content. content:””

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #32432

    ibratsilo
    Moderator

    Hi, could you please clarify some things:
    1. What OS are you using?
    2. Haven’t you change config for “pid_file_dir”?
    3. Can you check if “/tmp/oro-message-queue” accessible during consumer run?

    #32433

    ales
    Participant

    1. SMP Debian – google cloud
    2. No
    3 I can not find folder.

    #32434

    irina.k.melnikova
    Participant

    The same issue. Any update?

    #32435

    Yurii Muratov
    Participant

    Hello, @irina.k.melnikova.

    I just have download latest Bitnami virtual mashine image and test it. In my instance, consumer works without errors so that is why could you please describe, how did you install your allpication.

    Thanks.

    #32436

    Yurii Muratov
    Participant

    Hello again, @irina.k.melnikova.

    I’ve looked at the code and unfortunately for now i do not know exact reason of this issue.

    But i have some guess why this issue may happens, for example, getmypid function returns false at https://github.com/oroinc/platform/blob/master/src/Oro/Component/MessageQueue/Consumption/Dbal/DbalPidFileManager.php#L50. In this case, an empty pid files will be created in /tmp/oro-message-queue. And this leads to further repeating failures.

    To be able to run consumers, please clean oro-message-queue directory that should be located at your system tmp directory (by default, this directory is /tmp) from the files that exists at this directory. After that, you will be able to run consumers.

    #32437

    irina.k.melnikova
    Participant

    Hello,

    I have created the same ticket https://oroinc.com/b2b-ecommerce/forums/topic/crush-of-oromessage-queueconsume-command where I added some logs related to this issue.

    Yes, you were right. Deleting an empty pid file solved the problem.

    Thank you!

    #37469

    oro_newbie
    Participant

    Thanks Yuri. That helped a lot! This happened when I changed my supervisord.conf directory to /tmp/ and then switched it back. I think it was stuck to that folder.

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

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

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No