Dear Maintainer,
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
I am dist-updating my Debian system. I get a failure for the installation
of Mailman3-web
root@tagol~# dpkg --configure mailman3-web
Setting up mailman3-web (0+20240312-1) ...
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
I tried replacing the set -e with set -x in
/var/lib/dpkg/info# e mailman3-web.postinst
Then I get
root@tagol/var/lib/dpkg/info# dpkg --configure mailman3-web
Setting up mailman3-web (0+20240312-1) ...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mailman3-web.postinst configure 0+20200530-2.1
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
Running
root@tagol/var/lib/dpkg/info# /usr/share/debconf/frontend /var/lib/dpkg/info/mailman3-web.postinst configure 0+20200530-2.1
yields nothing
root@tagol/var/lib/dpkg/info# dpkg --configure mailman3-web |& tee log.dpkg.config.mailman3web.5
Setting up mailman3-web (0+20240312-1) ...
+ . /usr/share/debconf/confmodule
+ [ ! ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [ ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/mailman3-web.postinst configure 0+20200530-2.1
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
Same thing.
root@tagol~# systemctl restart mailman3-web.service
root@tagol~#
The web interface page loads
https://folks.email/mailman3/postorius/lists/bibnez.folks.email/
but when I go to sign-in I get
Internal Server Error: /mailman3/accounts/login/
OfflineGenerationError at /accounts/login/
You have offline compression enabled but key
+"5dc9242d199e3c2224564016de526a9d8e46b5d332709d1fde99964e8821452c" is missing from offline
+manifest. You may need to run "python manage.py compress". Here is the original content:
I go ahead and run
root@tagol/usr/share/mailman3-web# ./manage.py compress
Compressing... Error parsing template socialaccount/signup.html: socialaccount/base.html
done
Compressed 2 block(s) from 78 template(s) for 1 context(s).
It turns out this issue was discussed on the mailing list
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/MGY6JA6O7BWGR2KNKD3PQTMW7ZY7NHS3/
I tried to downgrade
root@tagol~# dpkg -i mailman3-web_0+20200530-2.1_all.deb
dpkg: warning: downgrading mailman3-web from 0+20240312-1 to 0+20200530-2.1
(Reading database ... 121410 files and directories currently installed.)
Preparing to unpack mailman3-web_0+20200530-2.1_all.deb ...
Unpacking mailman3-web (0+20200530-2.1) over (0+20240312-1) ...
Setting up mailman3-web (0+20200530-2.1) ...
Installing new version of config file /etc/cron.d/mailman3-web ...
dpkg: error processing package mailman3-web (--install):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
So I upgrade again
root@tagol/usr/share/mailman3-web# apt upgrade
The following packages were automatically installed and are no longer required:
libabsl20220623 libaio1 linux-image-6.6.15-amd64 python3-editables python3-pyrsistent
Use 'apt autoremove' to remove them.
Upgrading:
mailman3-web
Summary:
Upgrading: 1, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Download size: 25.9 kB
Space needed: 2,048 B / 11.2 TB available
Continue? [Y/n] y
Get:1 http://mirror.hetzner.com/debian/packages testing/main amd64 mailman3-web all 0+20240312-1 [25.9 kB]
Fetched 25.9 kB in 0s (141 kB/s)
Preconfiguring packages ...
mailman3-web failed to preconfigure, with exit status 20
(Reading database ... 121410 files and directories currently installed.)
Preparing to unpack .../mailman3-web_0+20240312-1_all.deb ...
Unpacking mailman3-web (0+20240312-1) over (0+20200530-2.1) ...
Setting up mailman3-web (0+20240312-1) ...
Installing new version of config file /etc/cron.d/mailman3-web ...
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Removing these two lines
root@tagol/etc/mailman3# diff mailman-web.py mailman-web.py~
53,54c53,54
< 'allauth.account',
< 'allauth.socialaccount'
---
restarting mailman3-web, magically seems to get the web interface to
work. But the error on install still persists.
root@tagol/etc/mailman3# apt upgrade
Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
1 not fully installed or removed.
Space needed: 0 B / 11.2 TB available
Continue? [Y/n]
Setting up mailman3-web (0+20240312-1) ...
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 20
Errors were encountered while processing:
mailman3-web
Error: Sub-process /usr/bin/dpkg returned an error code (1)
Let me know if there is anything I can do to help.