phpList version 3.2.5 (c) 2000-2017 phpList Ltd, http://www.phplist.com
phpList - 60951 bounces to fetch from the mailbox
phpList - Please do not interrupt this process
phpList - Database error 2006 while doing query MySQL server has gone away
phpList - Database error 2006 while doing query MySQL server has gone away
(repeats thousands of lines)
I have also tried editing function processPop($server, $user, $password) in admin/processbounces.php :
from: return processMessages($link, 100000);
into: return processMessages($link, 500);
Something I saw duncanc suggest in a very old thread.
@kaon You have way too many bounces for phplist to process, so I suggest that you delete them from the mailbox and start accumulating again.
This might indicate that the mysql server has a very short timeout period. Possibly you could increase that but your hosting company might not allow that.
And yet sometimes it works, and sometimes partially. Here’s what I find in the cron job output file:
phpList version 3.2.5 (c) 2000-2017 phpList Ltd, http://www.phplist.com
phpList - 58952 bounces to fetch from the mailbox
phpList - Please do not interrupt this process
phpList - 25 done
phpList - 50 done
phpList - 75 done
phpList - 100 done
phpList - 125 done
phpList - 150 done
phpList - 175 done
phpList - 200 done
phpList - 225 done
phpList - 250 done
phpList - 275 done
phpList - 300 done
phpList - Database error 2006 while doing query MySQL server has gone away
phpList - Database error 2006 while doing query MySQL server has gone away
I have set the ‘return processMessages($link, 500)’ to 500, and cron is every half hour. I hope it can get thru the backlog like this. I only just noticed that processbounces had been stuck for the past ~1 year.
UPDATE: I noticed that subsequent cron outputs showed the same output as the above, without any decrement of the “58952 bounces to fetch”. So I reduced the processbounces batch size from 500 to 250 to see what would happen… then I get ONE fully successful run (250 bounces), and then I get this:
phpList version 3.2.5 (c) 2000-2017 phpList Ltd, http://www.phplist.com
phpList - 58702 bounces to fetch from the mailbox
phpList - Please do not interrupt this process
phpList - 25 done
phpList - 50 done
phpList - Database error 2006 while doing query MySQL server has gone away
phpList - Database error 2006 while doing query MySQL server has gone away
So it seems like there is a constraint within PHPList / MySQL rather than from the pop mailbox.
Is there something I can clear / reset in the DB?
@kaon I though the wait_timeout might be low but it is not.
I suggest deleting the bulk of the emails from the mailbox directly,maybe keep a few thousand. There will be a lot of repeated bounces for email addresses so there is no point in trying to process them all.
Change the number of bounces that phplist handles in one run to a value that seems to work, say 50, and run the cron job more often.