Page MenuHomePhabricator

Mailman3 bounce runner crashed: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'
Open, LowPublic

Description

Aug 13 20:37:12 lists1001 mailman3[22520]: Traceback (most recent call last):
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/mailman3/bin/runner", line 11, in <module>
Aug 13 20:37:12 lists1001 mailman3[22520]:     load_entry_point('mailman==3.3.3', 'console_scripts', 'runner')()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
Aug 13 20:37:12 lists1001 mailman3[22520]:     return self.main(*args, **kwargs)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
Aug 13 20:37:12 lists1001 mailman3[22520]:     rv = self.invoke(ctx)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
Aug 13 20:37:12 lists1001 mailman3[22520]:     return ctx.invoke(self.callback, **ctx.params)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
Aug 13 20:37:12 lists1001 mailman3[22520]:     return callback(*args, **kwargs)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
Aug 13 20:37:12 lists1001 mailman3[22520]:     return f(get_current_context(), *args, **kwargs)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/bin/runner.py", line 188, in main
Aug 13 20:37:12 lists1001 mailman3[22520]:     runner.run()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/core/runner.py", line 136, in run
Aug 13 20:37:12 lists1001 mailman3[22520]:     self._do_periodic()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/runners/bounce.py", line 100, in _do_periodic
Aug 13 20:37:12 lists1001 mailman3[22520]:     self._send_warnings()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/runners/bounce.py", line 116, in _send_warnings
Aug 13 20:37:12 lists1001 mailman3[22520]:     self._processor.send_warnings_and_remove()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 50, in wrapper
Aug 13 20:37:12 lists1001 mailman3[22520]:     rtn = function(*args, **kws)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper
Aug 13 20:37:12 lists1001 mailman3[22520]:     return function(args[0], config.db.store, *args[1:], **kws)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/model/bounce.py", line 224, in send_warnings_and_remove
Aug 13 20:37:12 lists1001 mailman3[22520]:     self._send_warnings()
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper
Aug 13 20:37:12 lists1001 mailman3[22520]:     return function(args[0], config.db.store, *args[1:], **kws)
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/model/bounce.py", line 269, in _send_warnings
Aug 13 20:37:12 lists1001 mailman3[22520]:     for member in manager.memberships_pending_warning():
Aug 13 20:37:12 lists1001 mailman3[22520]:   File "/usr/lib/python3/dist-packages/mailman/model/member.py", line 266, in memberships_pending_warning
Aug 13 20:37:12 lists1001 mailman3[22520]:     if (member.last_warning_sent + interval) <= now():
Aug 13 20:37:12 lists1001 mailman3[22520]: TypeError: unsupported operand type(s) for +: 'NoneType' and 'datetime.timedelta'

Event Timeline

Mentioned in SAL (#wikimedia-operations) [2021-08-14T03:54:35Z] <legoktm[m]> restarting mailman3 on lists1001, bounce runner crashed (T288880)

jcrespo added a subscriber: jcrespo.

I am going to guess this falls into the "followups with low prio unless it happens again". Please correct me otherwise.