Can confirm this also occurs when upgrading from mantic to noble.

The issue appears to be caused by a breaking change introduced in
version 1.3.10 (2023-10-21)[1], which is the version of python3-django-
postorius in noble.

Adding "allauth.account.middleware.AccountMiddleware" to the MIDDLEWARE
list in /usr/share/mailman3/settings.py fixes the issue, but I then run
into other incompatibility errors.  First there is this:

   File 
"/opt/mailman/mm/venv_rel/lib/python3.9/site-packages/hyperkitty/lib/renderer.py",
 line 6, in <module>
        from mistune.plugins.extra import plugin_url
   ModuleNotFoundError: No module named 'mistune.plugins.extra'

which appears to be an upstream issue[2] that is harder to solve on our
end because it requires a downgrade to of python-mistune to 2.x, whereas
noble ships with 3.0.2.

I briefly tested with the referencing code (in /usr/lib/python3/dist-
packages/hyperkitty/lib/renderer.py) patched out.  The mailman3 web
application then does come up, but now spews periodic errors to the log
that suggest that a database migration should have run:

    10:11:10 [Q] ERROR Could not create task from schedule
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 
89, in _execute
        return self.cursor.execute(sql, params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    psycopg2.errors.UndefinedColumn: column 
django_q_schedule.intended_date_kwarg does not exist
    LINE 1: ..._schedule"."task", "django_q_schedule"."cluster", "django_q_...

Here is where I stopped chasing this down, but there may be light at the
end of the tunnel: the Debian maintainer yesterday committed a snapshot
of the latest upstream[3], which is supposed to fix the allauth issue[4]
as well as several others.

For now, I'll try rolling back to the mantic packages, which worked
great (with patches for #2060293, #2060276, and #2060753).  Owww this
package could really use some TLC :).

Cheers
Marco

[1] https://pypi.org/project/django-mailman3/
[2] https://gitlab.com/mailman/hyperkitty/-/issues/437
[3] 
https://salsa.debian.org/mailman-team/mailman-suite/-/commit/edf7873dce29e102c03a2be01133a6c00f8994c0
[4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1062707.


** Bug watch added: gitlab.com/mailman/hyperkitty/-/issues #437
   https://gitlab.com/mailman/hyperkitty/-/issues/437

** Bug watch added: Debian Bug tracker #1062707
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1062707

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2062960

Title:
  ubuntu 24.04 mailman3-web fails install on clean system

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mailman-suite/+bug/2062960/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to