Email not sending,, Sending (0%)

enginewizz

New Member
Hi, there

I have php 7.3 installed, and cronjob installed using ubuntu 16.04
and camp is not sending, tried to remove >/dev/null 2>&1 but still had no luck,

i tried with or without "root" on each of command but still had no luck

# Campaigns sender, runs each minute.
* * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns >/dev/null 2>&1

# Transactional email sender, runs once at 2 minutes.
*/2 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php send-transactional-emails >/dev/null 2>&1

# Bounce handler, runs once at 10 minutes.
*/10 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php bounce-handler >/dev/null 2>&1

# Feedback loop handler, runs once at 20 minutes.
*/20 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php feedback-loop-handler >/dev/null 2>&1

# Delivery/Bounce processor, runs once at 3 minutes.
*/3 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1

# Various tasks, runs each hour.
0 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php hourly >/dev/null 2>&1

# Daily cleaner, runs once a day.
0 0 * * * root /usr/bin/php -q /var/www/html/apps/console/console.php daily >/dev/null 2>&1


Please help!
Thanks
 
Hi, there

I have php 7.3 installed, and cronjob installed using ubuntu 16.04
and camp is not sending, tried to remove >/dev/null 2>&1 but still had no luck,
Do you have any validated delivery server ? Backend->Delivery Servers?

i tried with or without "root" on each of command but still had no luck
You can see the list of the needed crons in the Backend->Miscellaneous->Cronjobs List

Also to see exactly what is happening you can debug the send campaigns command by following this article: https://kb.mailwizz.com/articles/debug-send-campaigns-command/
 
Hi, Thanks for your reply!

Yes, i have validated my server by confirming through my personal email.

but when i tried to sending from campaign, it is stuck at sending(0%)

I just check app log, and found

2021/05/04 04:23:48 [error] [exception.CHttpException.400] [85.214.85.206] CHttpException: The CSRF token could not be verified. in /var/www/html/apps/common/framework/web/CHttpRequest.php:1378
Stack trace:
#0 /var/www/html/apps/common/framework/base/CComponent.php(561): CHttpRequest->validateCsrfToken(Object(CEvent))
#1 /var/www/html/apps/common/framework/base/CApplication.php(212): CComponent->raiseEvent('onbeginrequest', Object(CEvent))
#2 /var/www/html/apps/common/framework/base/CApplication.php(183): CApplication->onBeginRequest(Object(CEvent))
#3 /var/www/html/apps/init.php(229): CApplication->run()
#4 /var/www/html/index.php(18): require_once('/var/www/html/a...')
#5 {main}
REQUEST_URI=/

and,,

2021/05/05 00:05:02 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8
2021/05/05 00:06:01 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8
2021/05/05 00:07:01 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8
2021/05/05 00:08:01 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8
2021/05/05 00:09:02 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8
2021/05/05 00:10:01 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: es343wk11kaf8

Also

2021/05/05 11:09:51 [error] [exception.CHttpException.404] [1xxxxxxxxx1] CHttpException: The requested page does not exist. in /var/www/html/apps/backend/controllers/Delivery_serversController.php:402
Stack trace:
#0 [internal function]: Delivery_serversController->actionConfirm('c28b2fd9f4669c9...')
#1 /var/www/html/apps/common/framework/web/actions/CAction.php(115): ReflectionMethod->invokeArgs(Object(Delivery_serversController), Array)
#2 /var/www/html/apps/common/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(Object(Delivery_serversController), Object(ReflectionMethod), Array)
#3 /var/www/html/apps/common/framework/web/CController.php(308): CInlineAction->runWithParams(Array)
#4 /var/www/html/apps/common/framework/web/filters/CFilterChain.php(134): CController->runAction(Object(CInlineAction))
#5 /var/www/html/apps/common/framework/web/CController.php(291): CFilterChain->run()
#6 /var/www/html/apps/common/framework/web/CController.php(265): CController->runActionWithFilters(Object(CInlineAction), Array)
#7 /var/www/html/apps/common/framework/web/CWebApplication.php(282): CController->run('confirm')
#8 /var/www/html/apps/common/framework/web/CWebApplication.php(141): CWebApplication->runController('delivery_server...')
#9 /var/www/html/apps/common/framework/base/CApplication.php(185): CWebApplication->processRequest()
#10 /var/www/html/apps/init.php(229): CApplication->run()
#11 /var/www/html/backend/index.php(18): require_once('/var/www/html/a...')
#12 {main}
REQUEST_URI=/backend/index.php/delivery-servers/confirm/key/c28b2fd9f4669c94a0915775309c8724e31b9b89
---
 
Last edited:
Yes,, i will try that again and send the campaign at 8 :10
and will let you know what the output is,,

But the thing is from cronjob history, every status showing success though,,
 
send-campaignsindexSuccess0.1 seconds4 MB5/5/21, 8:11 AM

this is what i got from cronjob history, but from campaign im still getting Sending (0%) and no mails delivered..

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#


# Campaigns sender, runs each minute.
* * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns --verbose=1


# Transactional email sender, runs once at 2 minutes.
*/2 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php send-transactional-emails >/dev/null 2>&1


# Bounce handler, runs once at 10 minutes.
*/10 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php bounce-handler >/dev/null 2>&1


# Feedback loop handler, runs once at 20 minutes.
*/20 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php feedback-loop-handler >/dev/null 2>&1


# Delivery/Bounce processor, runs once at 3 minutes.
*/3 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1


# Various tasks, runs each hour.
0 * * * * root /usr/bin/php -q /var/www/html/apps/console/console.php hourly >/dev/null 2>&1


# Daily cleaner, runs once a day.
0 0 * * * root /usr/bin/php -q /var/www/html/apps/console/console.php daily >/dev/null 2>&1
 
Last edited:
Btw i also get

  • The "daily" command did not run in the last 2 days. Please check your cron jobs and make sure they are properly set!
this mssg at the top inside inside yellow box when i go to dashboard

Thanks
 
I got it fixed,,
Delivery server got deactivated due to changing some info, my bad,, didn't know i had to re-validate,,
Everything is good now!



Thanks for your help!
Regards.
 
Last edited:
Back
Top