backtrace on bridgedb
i'm seeing this in my console once in a while after starting bridgedb by hand.
Traceback (most recent call last):
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/python/log.py", line 101, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/python/log.py", line 85, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/python/context.py", line 118, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/python/context.py", line 83, in callWithContext
return func(*args, **kw)
--- <exception caught here> ---
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/internet/posixbase.py", line 687, in _doReadOrWrite
why = selectable.doRead()
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/internet/tcp.py", line 246, in doRead
return self._dataReceived(data)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/internet/tcp.py", line 251, in _dataReceived
rval = self.protocol.dataReceived(data)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/protocols/basic.py", line 439, in dataReceived
self.lineReceived(line)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/mail/smtp.py", line 501, in lineReceived
return getattr(self, "state_" + self.mode)(line)
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/mail/smtp.py", line 748, in dataLineReceived
[m.eomReceived() for m in self.__messages], consumeErrors=True
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/twisted/mail/smtp.py", line 748, in <listcomp>
[m.eomReceived() for m in self.__messages], consumeErrors=True
File "/home/bridgedb/virtualenvs/bridgedb/lib/python3.9/site-packages/bridgedb-0.13.2+0.ga8b6e1c2.dirty-py3.9.egg/bridgedb/distributors/email/server.py", line 235, in eomReceived
if self.message.is_multipart():
builtins.AttributeError: 'NoneType' object has no attribute 'is_multipart'
i don't know if this is a known problem, and i don't have time to look back in the filed issues (sorry!)
i had to redeploy bridgedb after the bullseye upgrade (tpo/tpa/team#40692 (closed)) to keep it from crashing on start. i think it was crashing because there was python 3.7 specific stuff in the venv, while bullseye has 3.9.
and basically did:
~/bridgedb-admin/bin/deploy-production
... so now it runs seemingly correctly, but it gives that backtrace once in a while.
/cc @meskio