Mautic Community Forums

Cron jobs for Mautic 4.1.0

MAUTIC 4.1.0

My PHP version is : 7.4.25

My MySQL/MariaDB version is:
10.3.31-MariaDB-0ubuntu0.20.04.1

Your problem
My problem is :
Campaigns are not sending mail sequence

Steps I have tried to fix the problem :
I tried to fix cron jobs, but can’t find any tutorial online to make a fix for Mautic 4.
Can anyone help me to fix cron jobs?

please paste your crondjobs here

Hey,
Here is the folder: /var/spool/cron/crontabs, file root.

and here are the cron jobs.

DO NOT EDIT THIS FILE - edit the master and reinstall.

(/tmp/crontab.Qt2maQ/crontab installed on Sat Dec 11 18:48:51 2021)

(Cron version – $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)

Edit this file to introduce tasks to be run by cron.

Each task to run has to be defined through a single line

indicating with different fields when the task will be run

and what command to run for the task

To define the time you can provide concrete values for

minute (m), hour (h), day of month (dom), month (mon),

and day of week (dow) or use ‘*’ in these fields (for ‘any’).

Notice that tasks will be started based on the cron’s system

daemon’s notion of time and timezones.

Output of the crontab jobs (including errors) is sent through

email to the user the crontab file belongs to (unless redirected).

For example, you can run a backup of all your user accounts

at 5 a.m every week with:

0 5 * * 1 tar -zcf /var/backups/home.tgz /home/

For more information see the manual pages of crontab(5) and cron(8)

m h dom mon dow command

          • php /var/www/html/bin/consol mautic:segments:update > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:webhooks:process > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:leadlists:update > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:campaigns:update > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:campaigns:trigger > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:social:monitoring > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:email:process > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:fetch:email > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:iplookup:download > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:campaigns:rebuild > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:broadcasts:send > /dev/null 2>&1
          • php /var/www/html/bin/console mautic:import > /dev/null 2>&1

Just realize this line is wrong and I fixed it:

          • php /var/www/html/bin/consol mautic:segments:update > /dev/null 2>&1

to:

          • php /var/www/html/bin/console mautic:segments:update > /dev/null 2>&1

Started the campaign again and
still not sending mails.

bin/console mautic:email:send
And
bin/console swiftmailer:email:send