Message held for moderation crashes mailman when used with MySQL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mailman3 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Incomplete
|
Undecided
|
Unassigned | ||
Cosmic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
There is a known problem when the version of mailman in 18.04LTS is used with a MySQL database.
Resulting in a 500 error in postorius when going to "Held Messages" and a traceback in the logs, ending with:
json.decoder.
According to Mark Sapiro:
> The issue is in storing a pickled representation of the json encoding of
> 'rule_misses'. This gets very long if you have lots of header filters,
> and with at least the mysql backend gets truncated in the database which
> causes the Unterminated string error.
> This is <https:/
> fixed by <https:/
> fix in in Mailman core version 3.2.0
See the thread at https://<email address hidden>
Also the related bug report at https:/
I note from /usr/share/
For productive setups, SQLite3 is *not* recommended as database backend.
PostgreSQL or MySQL should be used instead. The database configuration can
be automated by installing 'dbconfig-pgsql' or 'dbconfig-mysql' and running
'dpkg-reconfigure mailman3'. A respective local or remote database server
has to be available in this case.
Perhaps the easiest "fix" for 18.04 (certainly not my preference, I'd prefer an actual bug fix) is to put somewhere a recommendation to only use PostreSQL for production setups.
Or I'm wondering if a DB model change to boost the size of the relevant varchar column in the DB would be a possible workaround with minimal impact?
Thanks,
Alex
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: mailman3 3.1.1-9
ProcVersionSign
Uname: Linux 4.15.0-47-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
Date: Sun Apr 7 10:54:31 2019
InstallationDate: Installed on 2018-02-10 (420 days ago)
InstallationMedia: Ubuntu-Server 16.04.3 LTS "Xenial Xerus" - Release amd64 (20170801)
PackageArchitec
SourcePackage: mailman3
UpgradeStatus: Upgraded to bionic on 2018-08-22 (227 days ago)
tags: | removed: server-triage-discuss |
Thank you for the report, this really is an ugly error.
I'll tag up the bug as fixed in Cosmic and later already, but need to discuss how to proceed in this case. The upstream discussion mentioned having a lot of "header filters".
You might help me understand, is that something the people commonly have or something that creeps up over time?