Scheduler Log Error

I am getting continuous scheduler log errors since ERPNext installed. Same error every 5 mins.

Method
frappe.email.bulk.flush

Error
Method: all, Handler: frappe.email.bulk.flush
Traceback (innermost last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/tasks.py”, line 89, in scheduler_task
frappe.get_attr(handler)()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/bulk.py”, line 235, in flush
smtpserver = SMTPServer()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 117, in init
self.setup_email_account(append_to)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 120, in setup_email_account
self.email_account = get_outgoing_email_account(raise_exception_not_set=False, append_to=append_to)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py”, line 62, in get_outgoing_email_account
email_account.default_sender = email.utils.formataddr((email_account.name,
AttributeError: ‘NoneType’ object has no attribute ‘name’

This is already fixed. You need to update your setup.

I did bench update --upgrade. But its still not correct.

Was there any error during update?

You can also try running bench restart to restart the processes.

I am having the same error as above.
Have tried all three:

bench update
bench update --upgrade
bench restart

We’re still getting the above error every 5 minutes. There were no errors during installation.

1 Like

No errors. Didn’t try bench restart earlier, but did it recently. But no change. Still the same.

I also have this similar error in Scheduler Log.

It looks like this was fixed in release v6.11.0

After running bench update my errors disappeared.
I also did a bench update --upgrade and a bench restart for good measure.