# Campaign Not Triggering

**URL:** <https://forum.mautic.org/t/campaign-not-triggering/7637>\
**Category:** Product Support\
**Created:** [February 22, 2017, 7:18pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637 "2017-02-22T19:18:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 22, 2017, 7:18pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/1 "2017-02-22T19:18:34Z")

</div>

Hi Team,  
  
  
  
I am running 2.6.1 and the campaign won’t trigger.

1. Created a test contact  
2. Added to test segment  
3. Created email  
4. Sent out test email successfully  
5. Created a test campaign  
6. Made sure I selected the correct segment that the contact is in.  
7. Saved the campaign and published.  
  
  
  
My cron jobs are running fine as always…but nothing goes out.  
  
  
  
Any ideas?

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 22, 2017, 7:18pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/2 "2017-02-22T19:18:34Z")

</div>

Hi Team,

I am running 2.6.1 and the campaign won’t trigger.

1. Created a test contact
2. Added to test segment
3. Created email
4. Sent out test email successfully
5. Created a test campaign
6. Made sure I selected the correct segment that the contact is in.
7. Saved the campaign and published.

My cron jobs are running fine as always…but nothing goes out.

Any ideas?

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [February 22, 2017, 8:37pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/3 "2017-02-22T20:37:04Z")

</div>

Check your Configuration \> Email and check if you have send immediately or queue

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 22, 2017, 9:19pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/4 "2017-02-22T21:19:16Z")

</div>

Yes, my email setting has always been set to “Send Immediately”

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [February 22, 2017, 9:35pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/5 "2017-02-22T21:35:31Z")

</div>

what is your cron job list

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 2:02am UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/6 "2017-02-23T02:02:17Z")

</div>

Here are my crons. I am getting email notifications…they are definitely running, but campaigns emails not going out. Also the email widget never updates. I tried having the email go out, immediately, then 30 mins, and then an hour later…after each time I updated the campaign and waiting…nothing ever gets triggered, but in my email the trigger crons says events were triggered…but nothing ever triggers.

5,35 \* \* \* \* /usr/bin/php /home/admin/public\_html/cwmarketing.co/app/console mautic:segments:update

\*/10 \* \* \* \* /usr/bin/php /home/admin/public\_html/cwmarketing.co/app/console mautic:campaigns:rebuild

\*/5 \* \* \* \* /usr/bin/php /home/admin/public\_html/cwmarketing.co/app/console mautic:campaigns:trigger

\*/5 \* \* \* \* /usr/bin/php /home/admin/public\_html/cwmarketing.co/app/console mautic:emails:send

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 3:33am UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/7 "2017-02-23T03:33:52Z")

</div>

Yes, I am running PHP v 5.6.27

Regards

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 4:46am UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/8 "2017-02-23T04:46:09Z")

</div>

Yes…running PHP -v command via SSH confirms I am running PHP 5.6.27.

Regards

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 3:37pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/9 "2017-02-23T15:37:21Z")

</div>

Any ideas on why campaign is not triggering?

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 4:07pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/10 "2017-02-23T16:07:30Z")

</div>

You’ve probably already checked this, but here’s how to double check that you’ve specified the correct absolute path to your app/console. From a SSH terminal, try running one of your cron jobs to see if you receive the output from Symfony:

```auto
php /home/admin/public_html/cwmarketing.co/app/console mautic:segments:update
```

You can also try adding the `--env=prod` argument to the end of each line in your cron job file.

Is there anything sent to your system (root) inbox by the cron daemon? It may provide some clues why your campaigns are not triggering.

What do you see when you run this command?

```auto
cat /var/mail/root
```

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 4:32pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/11 "2017-02-23T16:32:46Z")

</div>

outputs  
campaign rebuild  
Rebuilding contacts for campaign 5  
2 total contact(s) to be added in batches of 300  
0/2 [\>---------------------------] 0%  
1/2 [==============\>-------------] 50%  
2/2 [============================] 100%  
0 total contact(s) to be removed in batches of 300  
2 contact(s) affected

campaign trigger

Triggering events for campaign 5  
Triggering first level events  
2 total events(s) to be processed in batches of 100  
0/2 [\>---------------------------] 0%  
1/2 [==============\>-------------] 50%  
2/2 [============================] 100%  
2 event(s) executed

But nothing goes out…the first event is to send an email in the campaign

![](https://snag.gy/mHk1sO.jpg)

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 5:16pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/12 "2017-02-23T17:16:35Z")

</div>

Looks like your crons are running fine.

Most likely this isn’t it, but Mautic has two types of emails you can specify in the “Send email” Action.  
Transactional vs Marketing

Marketing emails will only send once to the same contact, no matter how many times they run through a campaign including that email. Transactional emails will send every time a contact runs through a campaign that calls for sending that email. It’s a long shot, but maybe what happened is the campaign action triggered when your crons/email gateway was not working, making Mautic think that particular email was sent to that user before.

For testing purposes, try a) opting in a brand new contact to the segment and/or b) switching the email type to Transactional.

If not, it looks like we’d ideally need access to your instance or server to diagnose further.

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 6:46pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/13 "2017-02-23T18:46:54Z")

</div>

Thanks…the email is a Transnational type. The email never goes out.  
 ![](https://snag.gy/PcCZsh.jpg)

How to connect offline for diagnosing my instance/server?

Regards

---

<div class="post-metadata">

**Author:** ![Dez](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Dez](https://forum.mautic.org/u/Dez)\
**Post date:** [February 23, 2017, 7:45pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/14 "2017-02-23T19:45:55Z")

</div>

I haven’t read the entire thread, but have you tried changing:

```
/usr/bin/php

```

to

```
/opt/php5627/bin/php 

```

Changing the front part of the cron to the php number worked for me. I am using php7 so I have:  
/opt/php70/bin/php

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 8:41pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/15 "2017-02-23T20:41:52Z")

</div>

My cron is running but the campaign won’t trigger.

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 8:45pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/16 "2017-02-23T20:45:51Z")

</div>

Sent you a PM @chuckwilliams10

---

<div class="post-metadata">

**Author:** ![chuckwilliams10](https://avatars.discourse-cdn.com/v4/letter/c/dfb087/32.png) [@chuckwilliams10](https://forum.mautic.org/u/chuckwilliams10)\
**Post date:** [February 23, 2017, 9:27pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/17 "2017-02-23T21:27:49Z")

</div>

This is weird…I added a new test contact…and the campaign triggered, but the it did not for the initial 2 test contacts…weird… I close this for now and will continue testing. Thanks for everyone’s help.

---

<div class="post-metadata">

**Author:** ![autoize](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/autoize/32/105_2.png) [@autoize](https://forum.mautic.org/u/autoize)\
**Post date:** [February 23, 2017, 9:30pm UTC](https://forum.mautic.org/t/campaign-not-triggering/7637/18 "2017-02-23T21:30:31Z")

</div>

Glad you seem to have solved it for now.  
If the problem makes a comeback, please don’t hesitate to come back to the community.  
Good luck with launching your campaigns using Mautic!
