Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

celpprunner failed due to send email exception #95

Closed
coleslaw481 opened this issue Oct 26, 2016 · 1 comment
Closed

celpprunner failed due to send email exception #95

coleslaw481 opened this issue Oct 26, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@coleslaw481
Copy link
Contributor

celpprunner just failed cause blastnfilter task exited cause the end email sent was too large for the smtp server and it raised a SMTPDataError as seen in the log below.

2016-10-22 06:36:59,772 ERROR d3r.celpprunner Error caught exception
Traceback (most recent call last):
File "/usr/bin/celpprunner.py", line 167, in run_tasks
task.run()
File "/usr/lib/python2.6/site-packages/d3r/celpp/blastnfilter.py", line 382, i
n run
self.end()
File "/usr/lib/python2.6/site-packages/d3r/celpp/task.py", line 447, in end
self._send_end_email()
File "/usr/lib/python2.6/site-packages/d3r/celpp/task.py", line 316, in send
end_email
self._send_email(msg)
File "/usr/lib/python2.6/site-packages/d3r/celpp/task.py", line 341, in _send_email
email_list, mime_msg.as_string())
File "/usr/lib64/python2.6/smtplib.py", line 720, in sendmail
raise SMTPDataError(code, resp)
SMTPDataError: (552, '5.3.4 Error: message file too big')

@coleslaw481 coleslaw481 self-assigned this Oct 26, 2016
@coleslaw481 coleslaw481 added this to the 1.6.2 milestone Oct 26, 2016
coleslaw481 added a commit that referenced this issue Oct 26, 2016
… fix truncates the standard error and standard out from external processes when its put in email
@coleslaw481
Copy link
Contributor Author

Fixed. bedc39f..21d3470 master -> master

Modified task.py to catch any exceptions from _send_end_email() method in task.py and also modified task.py to truncate standard error and standard output from external command invocations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant