# A first Campaign is not triggering

**URL:** <https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628>\
**Category:** Product Support\
**Created:** [October 27, 2015, 11:59am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628 "2015-10-27T11:59:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 27, 2015, 11:59am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/1 "2015-10-27T11:59:00Z")

</div>

Hello everyone,  
  
Well yesterday I’ve have created a first testing campaign but it just didn’t work and I really don’t understand why. I’ve created a lead, a list, 2 email templates and then the campaign. I’ve published the campaign but it seems to me that it didn’t trigger the email and all the steps in my campaign. Any advice?  
  
  
  
Just so you know, I tried to send the email manually and it worked well, so I dont’ think the problem is in the mailing service configuration. I have also tried to publich and unpublish the campaign many times but nothing really happened.  
  
  
  
By the way it’s really easy to create all the stuff…but I’m getting crazy cuz it just doesn’t  
  
work.  
  
  
  
thank you for any information you can provide

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 27, 2015, 11:59am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/2 "2015-10-27T11:59:00Z")

</div>

Hello everyone,  
Well yesterday I’ve have created a first testing campaign but it just didn’t work and I really don’t understand why. I’ve created a lead, a list, 2 email templates and then the campaign. I’ve published the campaign but it seems to me that it didn’t trigger the email and all the steps in my campaign. Any advice?

Just so you know, I tried to send the email manually and it worked well, so I dont’ think the problem is in the mailing service configuration. I have also tried to publich and unpublish the campaign many times but nothing really happened.

By the way it’s really easy to create all the stuff…but I’m getting crazy cuz it just doesn’t  
work.

thank you for any information you can provide

---

<div class="post-metadata">

**Author:** ![tiagorodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagorodrigues/32/476_2.png) [@tiagorodrigues](https://forum.mautic.org/u/tiagorodrigues)\
**Post date:** [October 27, 2015, 1:21pm UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/3 "2015-10-27T13:21:14Z")

</div>

Hey Gleyve, are you ok? 😃 You need to set up cronjobs to work properly.

Check this out - \> [https://www.mautic.org/docs/setup/index.html](https://www.mautic.org/docs/setup/index.html)

Bye =D

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 27, 2015, 3:31pm UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/4 "2015-10-27T15:31:00Z")

</div>

Hmmm…I thought that cron jobs wouldn’t be necessary for immediately send setup as I did. I’ll what you suggested. Thank you so much Tiago…I’ll leave a feedback.

---

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)\
**Post date:** [October 27, 2015, 10:14pm UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/5 "2015-10-27T22:14:05Z")

</div>

I have exact same problem. Spending hours to fix that issue, nothing so far.

This was my campaign:

Campaign form \> Modify lead’s list (and) Adjust lead points (and) \> Send email

Nothing works there. I see leads gathered under Campaign form but campaign was not triggered.

Then I created standalone Form and apply same rules:

Modify lead’s list - WORKED  
Adjust lead points - WORKED  
Send email - NOT WORKED

I tested email connection and email came, so no problem with email service (Elastic Emails).đ

Anyone?

---

<div class="post-metadata">

**Author:** ![nerdrico](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nerdrico](https://forum.mautic.org/u/nerdrico)\
**Post date:** [October 27, 2015, 10:41pm UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/6 "2015-10-27T22:41:32Z")

</div>

Same problem here. My cronjobs are setup, but no email was send…

In the manual way, a no-campagn email was send property.

---

<div class="post-metadata">

**Author:** ![tiagorodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagorodrigues/32/476_2.png) [@tiagorodrigues](https://forum.mautic.org/u/tiagorodrigues)\
**Post date:** [October 28, 2015, 1:17am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/7 "2015-10-28T01:17:06Z")

</div>

[quote=4207:@Nick]I have exact same problem. Spending hours to fix that issue, nothing so far.

This was my campaign:

Campaign form \> Modify lead’s list (and) Adjust lead points (and) \> Send email

Nothing works there. I see leads gathered under Campaign form but campaign was not triggered.

Then I created standalone Form and apply same rules:

Modify lead’s list - WORKED  
Adjust lead points - WORKED  
Send email - NOT WORKED

I tested email connection and email came, so no problem with email service (Elastic Emails).đ

Anyone?[/quote]

Did you configure Cron jobs?  
What’s your hosting company and hosting plan?

[quote=4208:@nerdrico]Same problem here. My cronjobs are setup, but no email was send…

In the manual way, a no-campagn email was send property.[/quote]

Could you please copy here how are your cronjobs configured?

Tips:  
I have a shared hosting and the only way to make it work was using the commands below with ‘-f’  
mautic:campaigns:update  
mautic:campaigns:trigger

so my cronjobs are now like (in this order, exactly):  
…app/console mautic:leadlists:update --env=prod  
…app/console mautic:campaigns:update -f --env=prod  
…app/console mautic:campaigns:trigger -f --env=prod  
…app/console mautic:email:process --env=prod

Hostgator shared server.

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 1:39am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/8 "2015-10-28T01:39:00Z")

</div>

I’ve created the cron job and it didn’t word as well.  
I’m have hostgator reseller account and my cronjob were firstly configured as below:  
(Just 2 cron jobs cuz I’m using immediately sending instead of queue so I dont’ think I need other cron jobs)

php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:update  
php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:trigger

Well it didn’t work, so I tried the cron jobs with ‘-f’ as Suggested by my fellow countryman Tiago, and it still doesn’t work.

php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:update -f --env=prod  
php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:trigger -f --env=prod

---

<div class="post-metadata">

**Author:** ![tiagorodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagorodrigues/32/476_2.png) [@tiagorodrigues](https://forum.mautic.org/u/tiagorodrigues)\
**Post date:** [October 28, 2015, 1:45am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/9 "2015-10-28T01:45:20Z")

</div>

[quote=4223:@gleyvepascoa]I’ve created the cron job and it didn’t word as well.  
I’m have hostgator reseller account and my cronjob were firstly configured as below:  
(Just 2 cron jobs cuz I’m using immediately sending instead of queue so I dont’ think I need other cron jobs)

php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:update  
php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:trigger

Well it didn’t work, so I tried the cron jobs with ‘-f’ as Suggested by my fellow countryman Tiago, and it still doesn’t work.

php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:update -f --env=prod  
php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:trigger -f --env=prod[/quote]

Hostgator doesn’t use “php” for cron, you need to change to /opt/php55/bin/php  
in your case should be:

/opt/php55/bin/php /home/adaptro/public\_html/mautic/app/console mautic:leadlists:update --env=prod  
/opt/php55/bin/php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:update -f --env=prod  
/opt/php55/bin/php /home/adaptro/public\_html/mautic/app/console mautic:campaigns:trigger -f --env=prod

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 1:47am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/10 "2015-10-28T01:47:47Z")

</div>

Trying it out right now 🙂  
Come back very soon!

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 1:57am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/11 "2015-10-28T01:57:33Z")

</div>

I have to wait the time to the job run and trigger right? I’m waiting, if it doesn’t work I really don’t know…🙂  
I my case I setup as every 25 minutes which is the mininum allowed by hostgator as I could understand.

---

<div class="post-metadata">

**Author:** ![tiagorodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagorodrigues/32/476_2.png) [@tiagorodrigues](https://forum.mautic.org/u/tiagorodrigues)\
**Post date:** [October 28, 2015, 2:00am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/12 "2015-10-28T02:00:03Z")

</div>

[quote=4226:@gleyvepascoa]I have to wait the time to the job run and trigger right? I’m waiting, if it doesn’t work I really don’t know…🙂  
I my case I setup as every 25 minutes which is the mininum allowed by hostgator as I could understand.[/quote]  
It’s not the minimum, set \* \* \* \*

It’ll run every minute.

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 2:05am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/13 "2015-10-28T02:05:48Z")

</div>

Tiago, my PHP Version is 5.4.45, so I put:

‘/opt/php54/bin/php’ instead of ‘/opt/php55/bin/php’ and I also changed the timing to \* \* \* \*

Let’s see what happens, if it works we might help other people with this discussion here.

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 2:13am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/14 "2015-10-28T02:13:50Z")

</div>

Yeahhhh…It worked, thank you so much Tiago!

---

<div class="post-metadata">

**Author:** ![tiagorodrigues](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/tiagorodrigues/32/476_2.png) [@tiagorodrigues](https://forum.mautic.org/u/tiagorodrigues)\
**Post date:** [October 28, 2015, 2:14am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/15 "2015-10-28T02:14:57Z")

</div>

=D Thanks to all the guys who helped me too, like @escopecz

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 2:22am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/16 "2015-10-28T02:22:08Z")

</div>

Sure, these guys are great. Now I’m gonna spread the good news…mautic works! Awesome!

---

<div class="post-metadata">

**Author:** ![nerdrico](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nerdrico](https://forum.mautic.org/u/nerdrico)\
**Post date:** [October 28, 2015, 2:29am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/17 "2015-10-28T02:29:07Z")

</div>

Off course @tiagorodrigues . Bellow my cronjobs (Godaddy linux host):

/usr/bin/php /home/nerdrico/public\_html/niles/app/console mautic:leadlists:update --env=prod  
/usr/bin/php /home/nerdrico/public\_html/niles/app/console mautic:campaigns:update --env=prod  
/usr/bin/php /home/nerdrico/public\_html/niles/app/console mautic:campaigns:trigger --env=prod  
/usr/bin/php /home/nerdrico/public\_html/niles/app/console mautic:email:process --env=prod

---

<div class="post-metadata">

**Author:** ![gleyvepascoa](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gleyvepascoa/32/37_2.png) [@gleyvepascoa](https://forum.mautic.org/u/gleyvepascoa)\
**Post date:** [October 28, 2015, 2:34am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/18 "2015-10-28T02:34:53Z")

</div>

@nerdrico Try to search your host support page, at least for me hostgator support page helped me a lot.  
It’s also important to double ckeck if your campaign workflow is correctly configured cuz even with the correct cron jobs, I realized I had and erros in my campaign workflow.

For example:  
[http://support.hostgator.com/articles/cpanel/what-do-i-put-for-the-cron-job-command](http://support.hostgator.com/articles/cpanel/what-do-i-put-for-the-cron-job-command)  
[http://support.hostgator.com/articles/cpanel/how-do-i-create-and-delete-a-cron-job](http://support.hostgator.com/articles/cpanel/how-do-i-create-and-delete-a-cron-job)

---

<div class="post-metadata">

**Author:** ![nerdrico](https://avatars.discourse-cdn.com/v4/letter/n/91b2a8/32.png) [@nerdrico](https://forum.mautic.org/u/nerdrico)\
**Post date:** [October 28, 2015, 2:37am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/19 "2015-10-28T02:37:10Z")

</div>

Yeah. I will call to Godaddy tomorrow morning to ask that.

About my workflow, I check a lot of times. Change the actions to test, but the problem is really the schedule e-mails. 😕

---

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.mautic.org/u/Nick)\
**Post date:** [October 28, 2015, 3:27am UTC](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628/20 "2015-10-28T03:27:03Z")

</div>

@tiagorodrigues This is my plan at Small Orange: Cloud VPS Hosting - Level 2 Cloud VPS

And I am using Elastic Email as my email service provider

I am not really sure what exactly to do with Cron jobs. I think I need exact steps 🙂

Thank you for your help guys!

[Next page](https://forum.mautic.org/t/a-first-campaign-is-not-triggering/2628.md?page=2)
