Redis backend errors due to incorrect aioredis version dependency
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix-mta-sts-resolver (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Attempting to enable the redis backend of postfix-
$ cat /etc/mta-
cache:
type: redis
options:
url: 'redis:
results in this error:
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
evloop.
File "uvloop/loop.pyx", line 1501, in uvloop.
File "/usr/lib/
await cache.setup()
File "/usr/lib/
self._pool = aioredis.
AttributeError: module 'aioredis' has no attribute 'from_url'
From version 1.1.0 to 1.1.2 of postfix-
$ lsb_release -rd
Description: Ubuntu 22.04 LTS
Release: 22.04
$ apt-cache policy postfix-
postfix-
Installed: 1.1.2-1
Candidate: 1.1.2-1
Version table:
*** 1.1.2-1 500
500 http://
100 /var/lib/
Expected result: working redis backend
Actual result: python stacktrace error as detailed above and service fails to start
The functionality worked fine in Ubuntu 20.04 (though the config file options required were slightly different for that version of postfix-