ERPNext Foundation ERPNext Cloud Chat Blog Discuss Frappé* Donate

Error log - Want to know the meaning of this error


#1

Error:-

{‘retry’: 0, ‘log’: <function log at 0x7fe00b4aa9b0>, ‘site’: u’erpnext’, ‘event’: u’all’, ‘method_name’: u’pull_from_email_account’, ‘method’: <function pull_from_email_account at 0x7fe00b3600c8>, ‘user’: u’Administrator’, ‘kwargs’: {‘email_account’: u’Replies’}, ‘async’: True, ‘job_name’: u’pull_from_email_account|Replies’}
Traceback (most recent call last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 97, in execute_job
method(**kwargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 707, in pull_from_email_account
email_account.receive()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 258, in receive
emails = email_server.get_messages()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/receive.py”, line 105, in get_messages
if not self.connect():
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/receive.py”, line 44, in connect
return self.connect_imap()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/receive.py”, line 52, in connect_imap
self.imap = Timed_IMAP4_SSL(self.settings.host, timeout=frappe.conf.get(“pop_timeout”))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/email/receive.py”, line 550, in init
self._super.init(self, *args, **kwargs)
File “/opt/bitnami/python/lib/python2.7/imaplib.py”, line 1168, in init
IMAP4.init(self, host, port)
File “/opt/bitnami/python/lib/python2.7/imaplib.py”, line 202, in init
typ, dat = self.capability()
File “/opt/bitnami/python/lib/python2.7/imaplib.py”, line 376, in capability
typ, dat = self._simple_command(name)
File “/opt/bitnami/python/lib/python2.7/imaplib.py”, line 1090, in _simple_command
return self._command_complete(name, self._command(name, *args))
File “/opt/bitnami/python/lib/python2.7/imaplib.py”, line 914, in _command_complete
raise self.abort(‘command: %s => %s’ % (name, val))
abort: command: CAPABILITY => socket error: EOF


#2

Hi

A web search finds this https://docs.python.org/2/library/imaplib.html

and this example code https://github.com/python/cpython/blob/2.7/Lib/imaplib.py

Now follow the call sequence in your error traceback, for eg search on ‘_command_complete’

So your bitnami server and mail service provider connected over the network ok, then next the ERPNext mail client authenticated ok.

But during the mail pull request service capability process, the socket EOF means the mail server process failed to respond. Best check and confirm your mail settings with your mail service provider, the mail provider may not support the capability that you request.