Campaigns not sending - crons not running?

Dilbert

Member
This is my first send since upgrading to 2.x.

It looks like my crons are set up correctly:

DescriptionCronjob
Campaigns sender, runs each minute.* * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php send-campaigns >/dev/null 2>&1
Queue handler, runs each minute.* * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php queue >/dev/null 2>&1
Transactional email sender, runs once at 2 minutes.*/2 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php send-transactional-emails >/dev/null 2>&1
Bounce handler, runs once at 10 minutes.*/10 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php bounce-handler >/dev/null 2>&1
Feedback loop handler, runs once at 20 minutes.*/20 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
Delivery/Bounce processor, runs once at 3 minutes.*/3 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
Various tasks, runs each hour.0 * * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php hourly >/dev/null 2>&1
Daily cleaner, runs once a day.0 0 * * * /opt/cpanel/ea-php74/root/usr/bin/php -q /home/pathlabt/public_html/newsletter/apps/console/console.php daily >/dev/null 2>&1


Current Cron Jobs​

MinuteHourDayMonthWeekdayCommandActions
*****/usr/local/bin/ea-php70 /home/pathlabt/public_html/help/tasks.phpEdit Delete
*****/usr/local/bin/ea-php70 /home/pathlabt/public_html/help/tasks2.phpEdit Delete
*****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php send-campaigns >/dev/null 2>&1Edit Delete
*/2****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php send-transactional-emails >/dev/null 2>&1Edit Delete
*/10****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php bounce-handler >/dev/null 2>&1Edit Delete
*/20****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php feedback-loop-handler >/dev/null 2>&1Edit Delete
*/3****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1Edit Delete
00***/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php daily >/dev/null 2>&1Edit Delete
0****/usr/local/bin/ea-php70 -q /home/pathlabt/public_html/newsletter/apps/console/console.php hourly >/dev/null 2>&1Edit Delete

The admin section is listing cron errors. Did they change with 2.x?

  • The "send-campaigns" command did not run in the last 12 hours. Please check your cron jobs and make sure they are properly set!
  • The "queue" command did not run in the last 12 hours. Please check your cron jobs and make sure they are properly set!
  • The "send-transactional-emails" command did not run in the last 12 hours. Please check your cron jobs and make sure they are properly set!
  • The "bounce-handler" command did not run in the last 1 day. Please check your cron jobs and make sure they are properly set!
  • The "feedback-loop-handler" command did not run in the last 1 day. Please check your cron jobs and make sure they are properly set!
  • The "process-delivery-and-bounce-log" command did not run in the last 1 day. Please check your cron jobs and make sure they are properly set!
  • The "hourly" command did not run in the last 1 day. Please check your cron jobs and make sure they are properly set!
  • The "daily" command did not run in the last 2 days. Please check your cron jobs and make sure they are properly set!
Thank you
 
I saw another post that suggested pausing / unpausing. I tried that.
Some are now listed as Pending - Sending, others are listed as Sending (0%).
 
MailWizz needs PHP >= 7.2 in order to work, your cron jobs seem to target 7.0, so edit them and instead of /usr/local/bin/ea-php70 use /usr/local/bin/ea-php72 or /usr/local/bin/ea-php74
 
Oddly these crons have been like this for a while. I am on 7.4 and before upgrading from 1.x to 2.x they were working.

Anyhow, thanks for pointing this out. I have updated the crons, they are running, the warnings at the top of the dashboard are gone. I have deleted the ones that were stuck, created a new one, it is stuck at Sending (0%).

Thoughts?
 
debug the send-campaigns command like explained here: https://kb.mailwizz.com/articles/debug-send-campaigns-command/

Send the output here to see where is the issue.
[root@web ~]# /usr/local/bin/ea-php74 -q /home/pathlabt/public_html/newsletter/apps/console/console.php send-campaigns --verbose=1
[2021-10-12 11:32:26] - Starting the work for this batch...
[2021-10-12 11:32:26] - Loading 1 campaigns, starting with offset 0...
[2021-10-12 11:32:26] - Found 1 campaigns and now starting processing them...
[2021-10-12 11:32:26] - Starting pre-checks for campaigns...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Starting...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Populating customer data...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Pre-counting campaign subscribers...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Pre-counting campaign subscribers, start counting...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Pre-counting campaign subscribers, finished counting in 0.00040 seconds...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Finding campaign max subscribers count and adjusting quota left...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Currently quota left is 9223372036854775807 and campaign available subscribers for this batch is 29...
[2021-10-12 11:32:26] - [Worker 0] Campaign id 6550 pre-checks: Done!
[2021-10-12 11:32:26] - Campaigns pre-checks are done now, it took 0.04023 seconds!
[2021-10-12 11:32:26] - Campaign Worker #0 looking into the campaign with ID: 6550
[2021-10-12 11:32:26] - This campaign belongs to Cliff Reeves(uid: oa942at1bf424).
[2021-10-12 11:32:26] - Changing the campaign status into PROCESSING!
[2021-10-12 11:32:26] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available! Campaign UID: zm35447lpdfc4
[2021-10-12 11:32:26] - This cycle completed in 0.06110 seconds and used 2 MB of memory!
[2021-10-12 11:32:26] - CPU usage in last minute: 1.07, in last 5 minutes: 0.98, in last 15 minutes: 1.03!
[root@web ~]#
 
How did the delivery server get Disabled, and how do I enable it again? The Enable button does not do anything, the Update button give an error:

Error 500!​



Server type not allowed.​


1634038607148.png
 

Attachments

  • 1634038499345.png
    1634038499345.png
    34.9 KB · Views: 9
OK, I created a new server to send, it seems to be working now. I didn't see that the sending server I had was not working. I assume this is a change?
 
Back
Top