Email setup errors

please what dose the following errors mean?
{‘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/”, line 61, in execute_job
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 439, in pull_from_email_account
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/doctype/email_account/”, line 191, in receive
incoming_mails = email_server.get_messages()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 126, in get_messages
self.retrieve_message(message_meta, i+1)
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 194, in retrieve_message
File “/usr/lib/python2.7/”, line 240, in dele
return self._shortcmd(‘DELE %s’ % which)
File “/usr/lib/python2.7/”, line 160, in _shortcmd
return self._getresp()
File “/usr/lib/python2.7/”, line 136, in _getresp
raise error_proto(resp)
error_proto: U7h9YZvqyA53Hl69x7ND7mAHvLqfmoM48Ej+I47X7+P/lXJIhZtpim+M2K7xW+eHRKR8yF57ZH9w


Error in retrieving email.
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 174, in retrieve_message
msg = self.pop.retr(msg_num)
File “/usr/lib/python2.7/”, line 232, in retr
return self._longcmd(‘RETR %s’ % which)
File “/usr/lib/python2.7/”, line 167, in _longcmd
return self._getlongresp()
File “/usr/lib/python2.7/”, line 152, in _getlongresp
line, o = self._getline()
File “/home/frappe/frappe-bench/apps/frappe/frappe/email/”, line 429, in _getline
ret = self._super._getline(self, *args, **kwargs)
File “/usr/lib/python2.7/”, line 375, in _getline
File “/usr/lib/python2.7/”, line 365, in _fillBuffer
localbuf =
File “/usr/lib/python2.7/”, line 643, in read
v =
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/rq/”, 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


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: