Email setup errors

please what dose the following errors mean?
first:
{‘retry’: 0, ‘log’: <function log at 0x7f53649fb2a8>, ‘site’: u’ebkar’, ‘event’: u’all’, ‘method_name’: u’pull_from_email_account’, ‘method’: <function pull_from_email_account at 0x7f5364a261b8>, ‘user’: u’Administrator’, ‘kwargs’: {‘email_account’: u’Replies’}, ‘async’: True, ‘job_name’: u’pull_from_email_account|Replies’}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 61, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 439, in pull_from_email_account
email_account.receive()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py”, line 191, in receive
incoming_mails = email_server.get_messages()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 126, in get_messages
self.retrieve_message(message_meta, i+1)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 194, in retrieve_message
self.pop.dele(msg_num)
File “/usr/lib/python2.7/poplib.py”, line 240, in dele
return self._shortcmd(‘DELE %s’ % which)
File “/usr/lib/python2.7/poplib.py”, line 160, in _shortcmd
return self._getresp()
File “/usr/lib/python2.7/poplib.py”, line 136, in _getresp
raise error_proto(resp)
error_proto: U7h9YZvqyA53Hl69x7ND7mAHvLqfmoM48Ej+I47X7+P/lXJIhZtpim+M2K7xW+eHRKR8yF57ZH9w

second:

Error in retrieving email.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 174, in retrieve_message
msg = self.pop.retr(msg_num)
File “/usr/lib/python2.7/poplib.py”, line 232, in retr
return self._longcmd(‘RETR %s’ % which)
File “/usr/lib/python2.7/poplib.py”, line 167, in _longcmd
return self._getlongresp()
File “/usr/lib/python2.7/poplib.py”, line 152, in _getlongresp
line, o = self._getline()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/receive.py”, line 429, in _getline
ret = self._super._getline(self, *args, **kwargs)
File “/usr/lib/python2.7/poplib.py”, line 375, in _getline
self._fillBuffer()
File “/usr/lib/python2.7/poplib.py”, line 365, in _fillBuffer
localbuf = self.sslobj.read()
File “/usr/lib/python2.7/ssl.py”, line 643, in read
v = self._sslobj.read(len)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/rq/timeouts.py”, line 51, in handle_death_penalty
‘value ({0} seconds)’.format(self._timeout))
JobTimeoutException: Job exceeded maximum timeout value (300 seconds)

Where exactly are you getting this error message? Please provide steps, so that we can try to replicate it.

1 Like

@dufani1

In the case of second error, RQ worker responsible for regularly pulling emails in your ERPNext Inbox is getting timed out. This can because of two primary reasons,

  • Email server from which RQ is trying to pull the mail is responding properly
  • Internet connection between the two is intermittent.

Clueless about why did you get the first error ?

1 Like

Thank you :slight_smile: