Help Help! Over 200 thousand of task forum fail notification

Help Help! Over 200 thousand of task forum fail notification

by Selma Limbo -
Number of replies: 2
We've different Moodle instances on one server.  We create a different instance each year for new intake.  Our 2024 Moodle has been having multiple forum_task_user_ notification fail errors and Moodle has been going off and only starts when apache2 is Restart.  I am not sure the notifications are causing the overload.  We do not have an SMTP server configured and at the start of the semester,  lecturers are mostly using forum activities.  


We are on Moodle 4.1

Ubuntu:  20.04

48 cores and 100G of Ram.  


Can someone assist please?  I am very desperate as our Moodle is off. Can I delete this from the database?  How do i stop this notifications from being processed via a cron?  


Average of ratings: -
In reply to Selma Limbo

Re: Help Help! Over 200 thousand of task forum fail notification

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
> Our 2024 Moodle has been having multiple forum_task_user_ notification fail errors and Moodle has been going off and only starts when apache2 is Restart.

The question is, do you want to send that mail notifications backlog or do you want to flush them? There is this:
// When working with production data on test servers, no emails or other messages
// should ever be send to real users
// $CFG->noemailever = true; // NOT FOR PRODUCTION SERVERS!

To my understanding it stops Moodle sending any new mail notifications but does not flush the backlog. Anybody knows?

> I am not sure the notifications are causing the overload.  We do not have an SMTP server configured and at the start of the semester,  lecturers are mostly using forum activities.  

What did you plan? Run forums without mail notifications? Sound illogical to me.

In reply to Selma Limbo

Re: Help Help! Over 200 thousand of task forum fail notification

by Ken Task -
Picture of Particularly helpful Moodlers
"We do not have an SMTP server configured and at the start of the semester,  lecturers are mostly using forum activities."

Your solution is probably to set up an SMTP relay.   Right now, without it, server is using sendmail client via phpMailer and that, more than likely, is failing to deliver as receiving mail servers aren't accepting.

If you have ssh/shell access to server check server logs - there might be error_log files in directories of moodle code where the error is occuring and there might be an operating system maillog you could reference to see what's going on.


'SoS', Ken