# Help with automatic Campaigns!

**URL:** <https://forum.mautic.org/t/help-with-automatic-campaigns/26761>\
**Category:** Product Support\
**Tags:** mautic-3, mautic-4\
**Created:** [January 15, 2023, 10:18pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761 "2023-01-15T22:18:49Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 15, 2023, 10:18pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/1 "2023-01-15T22:18:49Z")

</div>

**Your software**  
My Mautic version is: not sure  
My PHP version is: 7.4.33  
My Database type and version is:5.7.40-cll-lve

**Your problem**  
My problem is:

My Mautic is sending normal all test emails and New Segment Emails but not starting the automatic campaign I set up with the template emails. I use trigger then subscriber or import manually but the campaign never starts. Actually, nothing automatically starts.

These errors are showing in the log:

Steps I have tried to fix the problem: Trying to set up the cron job, but still nothing works.

Is anyone that can give me a tutorial for that?

Thank in advances

---

<div class="post-metadata">

**Author:** ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)\
**Post date:** [January 15, 2023, 10:37pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/2 "2023-01-15T22:37:49Z")

</div>

Hi, did you setup the cron jobs to run your segments, triggers etc’… like this?

**Updating Contact Segments**

> `php /path/to/mautic/app/console mautic:segments:update`

**Updating Campaigns**

> `php /path/to/mautic/app/console mautic:campaigns:rebuild`

**Sending Email**

> `php /path/to/mautic/app/console mautic:emails:send`

There is a youtube video that helped me set them right.

I set mine on IIS and theuser privileges needed some work before starting to work properly.  
Then I had issues with cloudflare blocking several valid urls.

---

<div class="post-metadata">

**Author:** ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)\
**Post date:** [January 15, 2023, 10:50pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/3 "2023-01-15T22:50:54Z")

</div>

[![](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/3c091b2cc5feadd3bd9ebb60964ff67e514e02f5.jpeg "Mautic Tutorial - Mautic Cron Job Setup") ](https://www.youtube.com/watch?v=d7MQyXVxAv8)

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 15, 2023, 10:51pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/4 "2023-01-15T22:51:53Z")

</div>

Yes , I did. I actually followed same video!!

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 15, 2023, 10:52pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/5 "2023-01-15T22:52:58Z")

</div>

> [@kongocat](#):
>
> theuser privileges needed some work before starting to work properly.

What extra work exactly?

Thanks you.  
Chris

---

<div class="post-metadata">

**Author:** ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)\
**Post date:** [January 16, 2023, 10:12am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/6 "2023-01-16T10:12:09Z")

</div>

I dont really remember exactly. On windows server I had to change the user to a one with more previliges. Then changed the timing of jobs as they maybe blocked each other. I am not sure what did the trick and still set to run every 1-2 minutes the actual log shows that things happen within 5-6 minutes.

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 16, 2023, 10:22am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/7 "2023-01-16T10:22:24Z")

</div>

Hi @chris37

Can you put a screenshot of your campaign for us to see.

Do you have access to the logs or can you check the logs inside the Mautic UI.

If you can also put a screenshot of your cronjob

Thanks

---

<div class="post-metadata">

**Author:** ![kongocat](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/kongocat/32/8931_2.png) [@kongocat](https://forum.mautic.org/u/kongocat)\
**Post date:** [January 16, 2023, 10:38am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/8 "2023-01-16T10:38:31Z")

</div>

I remember, I run the jobs from the command line to see errors / output.  
I understood the correct way to put the parameters for the job and added -f after php.exe before the file

> path to php.exe -f path-to-php-script.

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 16, 2023, 11:26am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/9 "2023-01-16T11:26:23Z")

</div>

Hello Mikew,

Thank you for taking my attention.

1. Here is the screenshot of the campaign.

 ![Screenshot 2023-01-16 at 1.16.15 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/1a13b2da07b6d7aa2d044b3cf8da65e0ec517f6e.png)

1. Here is the screenshot of the cronjob

 ![Screenshot 2023-01-16 at 1.18.56 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/5/50ec45f90b2922f0c85b9a5f471a29ee7cf8f203.png)

I apologize because I cover some details, the blue is color cover is just my public folder name and the orange cover is the subdomain I have the mautic installed.

Everything looks fine but i don’t find a way to make the automatic campaign start. I am new to this as i found it just 2 days ago.

Thanks in advances for your help.  
Chris

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 16, 2023, 11:38am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/10 "2023-01-16T11:38:46Z")

</div>

in your beginning of the campaign is it being started by a segment or a form being filled out.

Do you have access to your server via ssh?

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 16, 2023, 12:13pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/11 "2023-01-16T12:13:13Z")

</div>

Hello Mikey

I started by segment

 ![Screenshot 2023-01-16 at 2.06.51 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/e2769406cd85ffee987ca1666348b3d13421ec20.png)

About that access to your server via ssh? I am not sure, I have Cpanel access!!

I added the cronjob using that

 ![Screenshot 2023-01-16 at 2.12.34 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/e/ecd4821ed764ccd19dc4b45c7cb8488dd7b0318a.png)

---

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [January 16, 2023, 5:14pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/12 "2023-01-16T17:14:07Z")

</div>

what do you see in the campaign preview screen when you look at actions?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0180d95ae7a584e9e482b7478f34a9d01799384d.png)

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 16, 2023, 5:27pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/13 "2023-01-16T17:27:20Z")

</div>

Hi, I see that,

 ![Screenshot 2023-01-16 at 7.26.51 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/046f5a756f8c3bad917f2f47e54673d5c47a2ab6.png)

---

<div class="post-metadata">

**Author:** ![chris37](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/chris37/32/9115_2.png) [@chris37](https://forum.mautic.org/u/chris37)\
**Post date:** [January 17, 2023, 5:26pm UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/14 "2023-01-17T17:26:12Z")

</div>

Hello @mikew  
I hope you doing well.

Did you see any issues with my set up?

Thanks  
Chris

---

<div class="post-metadata">

**Author:** ![rcarabelli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/rcarabelli/32/6807_2.png) [@rcarabelli](https://forum.mautic.org/u/rcarabelli)\
**Post date:** [January 24, 2023, 1:35am UTC](https://forum.mautic.org/t/help-with-automatic-campaigns/26761/15 "2023-01-24T01:35:48Z")

</div>

Have you populated your segment first? How many persons are in that segment? That was an error I kept doing for weeks.
