OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Oro Imap clear inactive mailbox interupted

This topic contains 4 replies, has 3 voices, and was last updated by  ychetverikov 6 years, 2 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
  • #32590

    Rio
    Participant

    Hello Masters,

    I got new issue from prod.log, but actually the email synchronized just worked well
    the issue is reproduce the error something like this ::

    “message_priority”:0,”job_id”:4255,”job_name”:”oro.imap.clear_inactive_mailbox”,”job_data”:[]}

    And it’s reproduce repeatly every 10 seconds, finally I decided to stop/cancelled the queue job because the status always running link

    My question is Is there any something miss when I set up email synchronization? Please give suggestion :)

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #32591

    Viacheslav Bemza
    Participant

    Hello, Rio.

    Can you provide a full error body? Or it would be better if you provide log file with such errors.

    #32592

    Rio
    Participant

    Hi Viacheslav,

    Finally I just cancelled the message job from backend administrator, and there is no more reproduce error on prod.log anymore :D

    #32593

    Rio
    Participant

    Hi Viachelav,

    The error came again related this issue. Here is the log in our prod.logs

    app.ERROR: Consuming interrupted by exception. “A new entity was found through the relationship
    ‘Oro\Bundle\UserBundle\Entity\User#organization’ that was not configured to cascade persist operations for entity:
    B2BProject. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure
    cascade persist this association in the mapping for example @ManyToOne(..,cascade={“persist”}).” {“exception”:
    “[object] (Doctrine\\ORM\\ORMInvalidArgumentException(code: 0): A new entity was found through the relationship
    ‘Oro\\Bundle\\UserBundle\\Entity\\User#organization’ that was not configured to cascade persist operations for entity:
    B2BProject. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure
    cascade persist this association in the mapping for example @ManyToOne(..,cascade={\”persist\”}). at /opt/bitnami/
    apache2/htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)”} {“processor”:”Oro\\Bundle
    \\ImapBundle\\Async\\ClearInactiveMailboxMessageProcessor”,”message_id”:”oro.5a5d80b29e6622.13318557″,”message_body”:
    “[]”,”message_properti{“oro.message_queue.client.topic_name”:”oro.imap.clear_inactive_mailbox”,”oro.message_queue
    .client.processor_name”:”oro_imap.async.clear_inactive_mailbox_message_processor”,”oro.message_queue.client.queue_name”
    :”oro.default”,”oro.security.token”:”organizationId=1;userId=2;userClass=Oro\\Bundle\\UserBundle\\Entity\\User;roles=
    ROLE_ADMINISTRATOR”,”oro-redeliver-count”:974},”message_headers”:{“content_type”:null,”message_id”:”oro.5a5d80b29e6622.13318557″,”timestamp”:0},”message_priority”:0,”job_id”:92680,
    “job_name”:”oro.imap.clear_inactive_mailbox”,”job_data”:[]}

    [2018-01-16 14:19:21] console.ERROR: An error occurred while running command “‘oro:message-queue:consume’ –env=prod”.
    A new entity was found through the relationship ‘Oro\Bundle\UserBundle\Entity\User#organization’ that was not
    configured to cascade persist operations for entity: B2BProject. To solve this issue: Either explicitly call
    EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for
    example @ManyToOne(..,cascade={“persist”}). {“exit_code”:0,”exception”:”[object] (Doctrine\\ORM\\ORMInvalidArgumentException
    (code: 0): A new entity was found through the relationship ‘Oro\\Bundle\\UserBundle\\Entity\\User#organization’ that
    was not configured to cascade persist operations for entity: B2BProject. To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={\”persist\”}). at /opt/bitnami/apache2/htdocs/vendor/doctrine/orm/lib/Doctrine/ORM/ORMInvalidArgumentException.php:92)”,”arguments”:{“command”:”oro:message-queue:consume”},”options”:{“env”:”prod”}} []

    I just removed from system > job … but anybody knows how to solve it properly …:)

    Thanks in advance

    #32594

    ychetverikov
    Participant

    Hi, Rio!
    Could you please take a moment to read the documentation.
    You can solve this exception by:
    – Calling EntityManager#persist($newObject) on the new object
    – Using cascade=persist on the association that contains the new object.

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

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

Back to top