# Quick cron jobs check

**URL:** <https://forum.mautic.org/t/quick-cron-jobs-check/32535>\
**Category:** Product Support\
**Created:** [June 25, 2024, 10:06am UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535 "2024-06-25T10:06:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kleanth](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@kleanth](https://forum.mautic.org/u/kleanth)\
**Post date:** [June 25, 2024, 10:06am UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535/1 "2024-06-25T10:06:26Z")

</div>

**Your software**  
My Mautic version is:  
My PHP version is:  
My Database type and version is:

**Your problem**  
My problem is:Campaigns dont seem to get triggered on auto when contacts are added to a segment, but when i run the manual command on the server they do.

These errors are showing in the log:

Steps I have tried to fix the problem:  
I have added this cron jobs and maybe i have mistaken smth thats why im asking for a quick look at them : \*/5 \* \* \* \* php /var/www/html/bin/console mautic:segments:update

# Mautic Campaign Triggers

\*/5 \* \* \* \* php /var/www/html/bin/console mautic:campaigns:trigger

# Mautic Campaign Updates

0 \* \* \* \* php /var/www/html/bin/console mautic:campaigns:update

# Mautic Emails Send

\*/5 \* \* \* \* php /var/www/html/bin/console mautic:emails:send

# Mautic Emails Fetch

\*/10 \* \* \* \* php /var/www/html/bin/console mautic:emails:fetch

# Mautic Forms Cleanup

0 0 \* \* \* php /var/www/html/bin/console mautic:forms:cleanup  
Thank you in advance!

---

<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:** [June 26, 2024, 1:22pm UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535/2 "2024-06-26T13:22:14Z")

</div>

Hello, if you have terminal access try to test the crons or check your paths.  
Also check if your segments are being populated with that cron.

You are filling the campaigns with users from segments once each hour and sending messages each 5 minutes.

So the thing might be your path to mautic or to run php

---

<div class="post-metadata">

**Author:** ![kleanth](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@kleanth](https://forum.mautic.org/u/kleanth)\
**Post date:** [June 26, 2024, 1:53pm UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535/3 "2024-06-26T13:53:35Z")

</div>

Thanks for your reply  
Yes i do have access to terminal and when i run the commands from the terminal like manually they get executed in place and pretty quickly thats why i asked to take a look at the way i have written the cron jobs, i have tried it countless times and the let the cron jobs for a whole day but they dont get triggered to send the emails.  
Also what do you mean by the path to run php? should that be included into the cron jobs as well?

---

<div class="post-metadata">

**Author:** ![kleanth](https://avatars.discourse-cdn.com/v4/letter/k/d9b06d/32.png) [@kleanth](https://forum.mautic.org/u/kleanth)\
**Post date:** [June 26, 2024, 11:31pm UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535/4 "2024-06-26T23:31:57Z")

</div>

im ashamed to admit this but at the end it was just a permission error i needed to include sudo before running the command, stupid but if anyone needs it ill leave it here.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [June 28, 2024, 11:32am UTC](https://forum.mautic.org/t/quick-cron-jobs-check/32535/5 "2024-06-28T11:32:09Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
