# Campaign contacts cannot be added when it starts

**URL:** <https://forum.mautic.org/t/campaign-contacts-cannot-be-added-when-it-starts/32126>\
**Category:** Product Support\
**Created:** [May 22, 2024, 7:22am UTC](https://forum.mautic.org/t/campaign-contacts-cannot-be-added-when-it-starts/32126 "2024-05-22T07:22:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![johntech](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/johntech/32/6553_2.png) [@johntech](https://forum.mautic.org/u/johntech)\
**Post date:** [May 22, 2024, 7:22am UTC](https://forum.mautic.org/t/campaign-contacts-cannot-be-added-when-it-starts/32126/1 "2024-05-22T07:22:36Z")

</div>

**Your software**  
My Mautic version is:4.4.9  
My PHP version is: 7.4.28  
My Database type and version is:10.5.21-MariaDB

**Your problem**  
My problem is: My campaign is working fine all the time just last two weeks I found the campaign didn’t start because the contacts were not added.

And below is coming from the logs:  
2024-05-22 01:16:05] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 1 {“hostname”:“[vmi741720.contaboserver.net](http://vmi741720.contaboserver.net)”,“pid”:13938}  
[2024-05-22 01:18:07] mautic.WARNING: Command `mautic:campaigns:trigger` exited with status code 1 {“hostname”:“[vmi741720.contaboserver.net](http://vmi741720.contaboserver.net)”,“pid”:14125}

Below is my contab: \*/2 \* \* \* \* /bin/bash /usr/local/bin/mauticcrons.sh  
This is the details of the sh file.

 ![截屏2024-05-22 15.24.50](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/a/a7ba625cffd9b712d34824e388bbd53ba06ab85c.png)

Any one know what’s happening?  
By the way, I have another mautic instance with exact same cron setting and no problem.

---

<div class="post-metadata">

**Author:** ![johntech](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/johntech/32/6553_2.png) [@johntech](https://forum.mautic.org/u/johntech)\
**Post date:** [May 25, 2024, 5:32am UTC](https://forum.mautic.org/t/campaign-contacts-cannot-be-added-when-it-starts/32126/2 "2024-05-25T05:32:18Z")

</div>

I tested it by command and foud it below issues, the campaign will loop and never end.

 ![截屏2024-05-25 11.32.25](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/c/c07dc19ceb6db0a11d055cdf7a5f6c54201de2f0.png)

And there is error when running the full scrips as below  
Script with pid 1318 in progress.  
Script in progress. Can force execution by using --bypass-locking.

So I follow this solution and replace the files and solved it.

> [@Campaign can't add 1 contact on rebuild and hangs](https://forum.mautic.org/t/campaign-cant-add-1-contact-on-rebuild-and-hangs/28668):
>
> Your software My Mautic version is: 4.4.9 My PHP version is: 7.4.3 My Database type and version is: 8.0.31-0ubuntu0.20.04.1 Your problem My problem is: When I run php bin/console mautic:campaigns:rebuild -vvv, the campaign fails to add a single contact, and then hangs forever. These errors are showing in the log: Rebuilding contacts for campaign 34 1 total contact(s) to be added in batches of 300 50,103/50,103 [============================] 100% Steps I have tried to fix the problem: Tu…

Hope this can help anyone with same issues.
