send-bug-notifications.py can't handle rejections due to oversized messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Colin Watson |
Bug Description
has been script_activity alerting for some hours now.
Am seeing entries in the log like this:
2012-01-15 21:18:16 ERROR Unhandled exception
-> http://
2012-01-15 21:18:16 ERROR Error while building email notifications.
-> http://
2012-01-15 21:20:13 INFO Logging INFO and higher messages to /srv/launchpad.
2012-01-15 21:20:13 INFO Creating lockfile: /var/lock/
which may account for failing to successfully complete; yet other runs appear to complete successfully, so tis rather odd.
Additionally, while it is running and processing at least some of the time; scriptactivity seems devoid of starter information:
launchpad_prod_1=# SELECT date_started, date_completed FROM scriptactivity WHERE name= 'send-bug-
-------
2012-01-15 11:45:31.402454 | 2012-01-15 11:45:43.339172
2012-01-15 11:40:42.31134 | 2012-01-15 11:41:01.144317
2012-01-15 11:35:28.838547 | 2012-01-15 11:35:45.528171
2012-01-15 11:30:36.711617 | 2012-01-15 11:30:43.799517
I'd expect to see a new entry for each startup; just a lack of date_completed.
Related branches
- William Grant (community): Approve (code)
-
Diff: 290 lines (+143/-47)3 files modifiedcronscripts/send-bug-notifications.py (+1/-44)
lib/lp/bugs/scripts/bugnotification.py (+68/-2)
lib/lp/bugs/scripts/tests/test_bugnotification.py (+74/-1)
Changed in launchpad: | |
importance: | Undecided → Critical |
tags: | added: canonical-losa-lp |
summary: |
- cronscripts/send-bug-notifications.py is failing to successfully - complete + send-bug-notifications.py can't handle rejections due to oversized + messages |
tags: | added: email |
Changed in launchpad: | |
assignee: | nobody → Colin Watson (cjwatson) |
status: | Triaged → In Progress |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
The error was as follows:
SMTPSenderRefused: (552, '5.3.4 Message size exceeds fixed limit', '<email address hidden>')
Steve and I used https:/ /pastebin. canonical. com/58139/ to find the offending message (turned out to be message 11441321). We confirmed this with https:/ /pastebin. canonical. com/58140/. The message is about 18M characters in size where everything else is ~500.
Our quick fix for the problem was to mark the bugnotification linked to the message as date_emailed = now() at time zone 'UTC'. However, send-bug- notifications. py should at least OOPS when it encounters this problem, rather than just exiting.