Cannot find a valid server to send the campaign email

sendmedialtd

Active Member
Hey,

Strange problem here..... i have 2 campaigns sending, but they seems to have stopped sending at 8am this morning. When i run the script i see the following:

[2018-03-20 14:11:25] - Loading 1000 campaigns, starting with offset 0...
[2018-03-20 14:11:25] - Found 2 campaigns and now starting processing them...
[2018-03-20 14:11:25] - Since PCNTL is active, we will send 5 campaigns in parallel and for each campaign, 50 batches of subscribers in parallel.
[2018-03-20 14:11:25] - Temporary changing the campaign status into PROCESSING!
[2018-03-20 14:11:25] - Restoring the campaign status to SENDING!
[2018-03-20 14:11:25] - Temporary changing the campaign status into PROCESSING!
[2018-03-20 14:11:25] - Restoring the campaign status to SENDING!
[2018-03-20 14:11:25] - Campaign Worker #1 looking into the campaign with ID: 177
[2018-03-20 14:11:25] - Campaign Worker #1 looking into the campaign with ID: 183
[2018-03-20 14:11:25] - This campaign belongs to Mike LASTNAME(uid: rz053r5k8zd6a).
[2018-03-20 14:11:25] - This campaign belongs to Mike LASTNAME(uid: rz053r5k8zd6a).
[2018-03-20 14:11:25] - Changing the campaign status into PROCESSING!
[2018-03-20 14:11:25] - Changing the campaign status into PROCESSING!
[2018-03-20 14:11:25] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: lm845w09mq812
[2018-03-20 14:11:26] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: he913nmmcn90d

[2018-03-20 14:11:28] - This cycle completed in 3.06 seconds and used 2 MB of me mory!
[2018-03-20 14:11:28] - CPU usage in last minute: 0.09, in last 5 minutes: 0.12, in last 15 minutes: 0.08!

I've checked and read this thread (https://kb.mailwizz.com/articles/ca...borting-until-a-delivery-server-is-available/) and none of that applies to me, all the delivery servers are active and all of them are assigned to the correct user. The campaigns where sending fine before but for what ever reason since 8am they have stopped sending and im getting this error message (see above).

Can anyone help me please as I'm not sure what to do about this as never experienced it before.

Thanks,
Mike
 
ok so it seems it may have something to do with the Daily Quota of the delivery servers. Which again doesnt make sence, as in total theres 20 delivery servers, as im still warming the IPs up i have them set at a maximum of 10 emails per hour with a maximum of 250 emails per day per delivery server. Now only 1,500 emails (across the delivery servers) had been sent so why would it stop sending the emails? I've removed the daily quota from all the delivery servers by doing a quick SQL query for the affected delivery servers and it seems to be running again.

So a few issues here:

a) If its the daily quota causing the issue when why is it telling me theres not a valid delivery server, instead shouldnt it be telling me that the delivery server is over its daily quota?
b) how is it over quota when theres only 1500 emails in total that have been sent meaning it shouldnt be over quota?
c) is there a conflict with having both hourly quota and daily quota set on each delivery server?
 
Hmmm ok something is wrong here, so the emails are sending but they are sending way to many emails. Now that i removed the daily quota but still have the hourly quota in place at 10 per hour its just sent more than 50 emails from the same delivery server even though it has a 10/per hour quota on it.

Looking at the delivery reports i can see that around 1250 emails have just been sent from 30 delivery servers, each delivery server has a hourly quota of 10. So it should only have sent out 300 emails, but instead its just sent out 1250. I'm having to pause the email sending as something is not right here.

Any help please?
 
I'm currently out and will be for the next 2 and a half hours. I'll message you on Skype later, if your there I'll give you login details and server access as I trust you since you've had full access before :)
 
Update: After a number of different tests we was unable to find an initial fix for the issue. Twisted1919 has been working hard for the past 6 hours to change the source code to fix the issue. This issue has now been fixed and can confirm will be released in the next version. Although a fix has been created Twisted1919 will be continuing the work on the code to improve performance ready for the next release.

Issue: I'm not sure if this effects everyone or just some servers, it seems when having PCNTL enabled and you have quotas in place on the delivery servers that the delivery servers went over their quotas by as much as x5. When having PCNTL turned off the quotas worked fine.

Cause: From first stage testing it was found the issue was being caused by the emails sending too quickly (depending on the performance of your server) therefore MailWizz not being able to count quick enough how many emails had been sent via each delivery server before the Quotas had been reached.
 
Last edited:
not sure if this effects everyone or just some servers, it seems when having PCNTL enabled and you have quotas in place on the delivery servers that the delivery servers went over their quotas by as much as x5. When having PCNTL turned off the quotas worked fine.
Yes, this was an ooold issue (several posts on the forum so far without solution), thx for working on this to both of you!
So far a "solution" was to give the system some time between switching, but only without pcntl. Fast switches or during pcntl it always overran or did not select the next DS.
As @sendmedialtd says, we had a data race in the quota counters under certain circumstances, pretty hard to track/reproduce, but finally we nailed it :D
So even this has been fixed?
Will be so happy to test this!
:)
 
I am facing same issue,
Already read KB help of mailwizz

Already try this-
https://kb.mailwizz.com/articles/debug-send-campaigns-command/

Already try
https://kb.mailwizz.com/articles/ca...borting-until-a-delivery-server-is-available/


Restart cron and all not helped,
Many time rebooted server,



[root@vmi181209 ~]# /usr/bin/php -q /var/www/html/apps/console/console.php send-campaigns --verbose=1

PHP Warning: Module 'zip' already loaded in Unknown on line 0

[2018-08-01 11:09:42] - Starting the work for this batch...

[2018-08-01 11:09:42] - Loading 5 campaigns, starting with offset 0...

[2018-08-01 11:09:42] - Found 5 campaigns and now starting processing them...

[2018-08-01 11:09:42] - Campaign Worker #0 looking into the campaign with ID: 31

[2018-08-01 11:09:42] - This campaign belongs to Peter walk(uid: nz801rgd4k70b).

[2018-08-01 11:09:42] - Changing the campaign status into PROCESSING!

[2018-08-01 11:09:42] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: dx522qvl3h6c7

[2018-08-01 11:09:42] - Campaign Worker #0 looking into the campaign with ID: 32

[2018-08-01 11:09:42] - This campaign belongs to Peter walk(uid: nz801rgd4k70b).

[2018-08-01 11:09:42] - Changing the campaign status into PROCESSING!

[2018-08-01 11:09:42] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: ss938rftpx665

[2018-08-01 11:09:42] - Campaign Worker #0 looking into the campaign with ID: 33

[2018-08-01 11:09:42] - This campaign belongs to Peter walk(uid: nz801rgd4k70b).

[2018-08-01 11:09:42] - Changing the campaign status into PROCESSING!

[2018-08-01 11:09:42] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: np584gg65d8b4

[2018-08-01 11:09:42] - Campaign Worker #0 looking into the campaign with ID: 34

[2018-08-01 11:09:42] - This campaign belongs to Peter walk(uid: nz801rgd4k70b).

[2018-08-01 11:09:42] - Changing the campaign status into PROCESSING!

[2018-08-01 11:09:42] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: jb8978yzmca98

[2018-08-01 11:09:42] - Campaign Worker #0 looking into the campaign with ID: 35

[2018-08-01 11:09:42] - This campaign belongs to Peter walk(uid: nz801rgd4k70b).

[2018-08-01 11:09:42] - Changing the campaign status into PROCESSING!

[2018-08-01 11:09:42] - Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: al955xjsteab7

[2018-08-01 11:09:42] - This cycle completed in 0.14 seconds and used 6 MB of memory!

[2018-08-01 11:09:42] - CPU usage in last minute: 0.00, in last 5 minutes: 0.01, in last 15 minutes: 0.05!

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

There is nothing any limit in backend i am already check,

No limit of hourly and daily on delivery server,
No limit from backend delivery server,
Not selected for transaction Email only,
and many more i have already checked,


I am checking mailwizz blog for solution from last 4 hour and no solution.

Can Any one help me to solve this ?

2018/08/01 10:48:01 [error] [application] Cannot find a valid server to send the campaign email, aborting until a delivery server is available!Campaign UID: dx522qvl3h6c7
 
@Mohit1946 - the reason is in the kb article, it has to be one of those, nothing else.
If you still have issues, open a support ticket so we can have a look, but renew your support first.
 
Back
Top