# The receiver "doctrine" does not exist

**URL:** <https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313>\
**Category:** Mautic 5 Install/Upgrade Support\
**Created:** [March 19, 2025, 7:22pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313 "2025-03-19T19:22:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [March 19, 2025, 7:22pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/1 "2025-03-19T19:22:32Z")

</div>

**Your software**  
My Mautic version is: 5.1.0  
My PHP version is: 8.2.23  
My Database type and version is:  
11.4.3-MariaDB-ubu2204

**Your problem**  
My problem is:  
I have this error every 2-3 sec in log

[2025-03-19T18:46:02.447684+00:00] console.CRITICAL: Error thrown while running command “messenger:consume doctrine --time-limit=3600”. Message: “The receiver “doctrine” does not exist. Valid  
receivers are: email, hit, failed.” {“exception”:“[object] (Symfony\Component\Console\Exception\RuntimeException(code: 0): The receiver "doctrine" does not exist. Valid receivers are: em  
ail, hit, failed. at /var/www/html/vendor/symfony/messenger/Command/ConsumeMessagesCommand.php:169)”,“command”:“messenger:consume doctrine --time-limit=3600”,“message”:“The receiver "doctrine" does not exist. Valid receivers are: email, hit, failed.”} {“hostname”:“mautic-1”,“pid”:611963}

These errors are showing in the log:  
prod-2025-03-19.php

Steps I have tried to fix the problem:

I dont know .

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [March 25, 2025, 9:51pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/3 "2025-03-25T21:51:39Z")

</div>

How did you set your cron jobs?  
Looks like the command is wrong…

If you want to consume emails from the queue, this is the correct call:

```auto
messenger:consume email

```

You may want to use this as inspiration:

> **[GitHub - twentyZen/mautic-cronjobs: This script and environment file helps to manage...](https://github.com/twentyZen/mautic-cronjobs)**
>
> This script and environment file helps to manage cron jobs for Mautic.

---

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [March 31, 2025, 6:14pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/4 "2025-03-31T18:14:43Z")

</div>

I dont know how it was started and not able to find.

```auto
cat /var/spool/cron/crontabs/root
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.mFi3xE/crontab installed on Mon Dec 16 21:29:56 2024)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
* * * * * php /var/www/html/bin/console mautic:segments:update
* * * * * php /var/www/html/bin/console mautic:campaigns:update
* * * * * php /var/www/html/bin/console mautic:campaigns:trigger
*/10 * * * * /var/www/html/var/lock/consume_mautic.sh >> /var/www/html/var/logs/mautic_consume.log 2>&1

```

i thought its in sh script, but no.

---

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [April 22, 2025, 4:16pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/5 "2025-04-22T16:16:28Z")

</div>

> [@dirk\_s](#):
>
> `email`

anyone? Any ideas?

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 22, 2025, 6:33pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/6 "2025-04-22T18:33:20Z")

</div>

yep - did you check the provided link to the script?

---

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [April 23, 2025, 11:12am UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/7 "2025-04-23T11:12:52Z")

</div>

Hi, yes. But this is a cron management for new cron tasks. Im just trying to find where is that wrong “doctrine” located.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 23, 2025, 12:18pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/8 "2025-04-23T12:18:35Z")

</div>

> [@YooHooXia](#):
>
> Valid receivers are: email, hit, failed.

Look into your error message: “Valid receivers are: email, hit, failed.”  
What do you try to achieve with `messenger:consume doctrine` ?

---

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [April 23, 2025, 1:04pm UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/9 "2025-04-23T13:04:13Z")

</div>

issue not in the what i want to achieve, i want to find that string and remove it to stop errors.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [April 24, 2025, 7:05am UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/10 "2025-04-24T07:05:06Z")

</div>

Then its maybe triggered via a different cron.Cron jobs can be managed in different places. Did you install Mautic from github with composer or any other image? Its definitely related to your individual installation.

---

<div class="post-metadata">

**Author:** ![YooHooXia](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/yoohooxia/32/13832_2.png) [@YooHooXia](https://forum.mautic.org/u/YooHooXia)\
**Post date:** [April 24, 2025, 10:49am UTC](https://forum.mautic.org/t/the-receiver-doctrine-does-not-exist/35313/11 "2025-04-24T10:49:58Z")

</div>

i think it was installed via composer, at least some additional modules like for mautic+sendgrid.  
I’ve tried grep for doctrine in web dir, /etc/cron\*, /var/spool/cron/\* - nothing similar to “messenger:consume doctrine”. Maybe it was changed in src files - is there any path to check files consistency?
