Package: postfix-mta-sts-resolver
Version: 1.1.2-1.1
Severity: important
Quack,
I upgraded a server to Bookworm and the service crashed with:
2023-07-04 15:05:43 INFO MAIN: Eventloop started.
Traceback (most recent call last):
File "/usr/bin/mta-sts-daemon", line 33, in <module>
sys.exit(load_entry_point('postfix-mta-sts-resolver==1.1.2',
'console_scripts', 'mta-sts-daemon')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/usr/lib/python3/dist-packages/postfix_mta_sts_resolver/daemon.py",
line 123, in main
evloop.run_until_complete(amain(cfg, evloop))
File "uvloop/loop.pyx", line 1517, in
uvloop.loop.Loop.run_until_complete
File
"/usr/lib/python3/dist-packages/postfix_mta_sts_resolver/daemon.py",
line 65, in amain
await cache.setup()
File
"/usr/lib/python3/dist-packages/postfix_mta_sts_resolver/redis_cache.py",
line 40, in setup
self._pool = aioredis.from_url(url, **opts)
^^^^^^^^^^^^^^^^^
AttributeError: module 'aioredis' has no attribute 'from_url'
This is due to `from_url` only being introduced in python3-aioredis 2.0
that is not in Debian at the moment (thus no backport to save the day).
As a side note the 'address' parameter was silently renamed in upstream
commit 2ba659c.
Moreover the trace does not appear in the systemd service log and you
need to call the binary yourself with the right user to get any useful
information, this is not very handy. I'm not sure how to fix that
though.
I have pushed branch `aioredis_before_2.0.0_fix` on Salsa that fixes the
problem, could you have a look please?
I would suggest to create a branch for bookworm to work on this fix.
Also the changelog change in 1.1.2-1.1 could be added even if
retroactively.
Regards.
\_o<
--
Marc Dequènes