ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

EmailAccount' object has no attribute 'no_smtp_authentication'


#1

I am getting this error when trying to reauthenticate my email after upgrade to V11

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 61, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 1019, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 296, in _save
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 876, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 772, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1048, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 1031, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 766, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 73, in validate
self.check_smtp()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 137, in check_smtp
if self.password and not self.no_smtp_authentication:
AttributeError: ‘EmailAccount’ object has no attribute ‘no_smtp_authentication’

How can i fix this?


#2

did you run bench update --patch?


#3

Yes i did


#5

Try executing following in the console (bench console):

frappe.reload_doc("email", "doctype", "email_account", force=True)
frappe.db.commit()

And then try again after clearing cache (bench clear-cache) and rebooting bench (bench restart).


E-mail Enable Outgoing Error
#6

I executed and got this:

and then i ran a quick setup on my test VPS instance and found this in the email settings page:

I checked that box and my email configuration was saved successfully.
I checked the problem instance and found that this option does not exist:

My guess is this is where the issue is?


#7

I’ve update my reply:


#8

I’ve tried this and it gives me the syntax error: unexpected token “email”


#9

You need to run in in bench console. Please read carefully.


#10

sorry i missed that part. Ran it in bench console and issue resolved. Thanks a lot.


#11

This worked for me as well. My issue manifested after I switched from V11 dev to V11 master. Every 4 minutes I would have a frappe.email.queue.flush error.


#12

My problem was solved with this.
Thanks a lot.


#13