Comment 0 for bug 1999197

Revision history for this message
AlainKnaff (kubuntu-misc) wrote : mailman3 package missing in jammy

When upgrading from Ubuntu 20.04.05 (focal) to 22.04.01 (jammy), mailman3 and mailman3-full packages are de-installed during upgrade. Strangely enough mailman3-web still makes it.

Of course, this results in a non-functional mailman3 installation (just a front-end without the backend).

Adding back the focal repositories and manually reinstalling mailman3 and mailman3-full 3.2.2-1 from focal into jammy gets mailman3 mostly up and running again (i.e. correctly distributes mails to lists).

Rest API password (i.e. admin_pass from /etc/mailman3/mailman.cfg needs to be copied to MAILMAN_REST_API_PASS in /etc/mailman3/mailman-web.py).

After doing this, front end *mostly* works.

However, lists cannot be viewed when logged in as admin, instead the following error is displayed:

Something went wrong
HTTP Error 404: {"title": "404 Not Found"}

Event downgrading mailman3-web from 0+20200530-2 to 0+20180916-10 and then rebooting does not help.

When this happens, the following is logged to /var/log/mailman3/web/mailman-web.log:

[pid: 749|app: 0|req: 9/9] 127.0.0.1 () {60 vars in 1359 bytes} [Fri Dec 9 00:21:22 2022] GET /mailman3/postorius/lists/ => generated 8958 bytes in 56 msecs (HTTP/1.1 200) 7 headers in 220 bytes (1 switches on core 0)
ERROR 2022-12-09 00:21:25,565 749 postorius Un-handled exception: HTTP Error 404: {"title": "404 Not Found"}
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/generic.py", line 74, in dispatch
    return super(MailingListView, self).dispatch(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/postorius/views/list.py", line 301, in get
    primary_email = set_preferred(request.user, mm_user)
  File "/usr/lib/python3/dist-packages/postorius/utils.py", line 77, in set_preferred
    mm_user.preferred_address = primary_email.email
  File "/usr/lib/python3/dist-packages/mailmanclient/restobjects/user.py", line 57, in __setattr__
    super(User, self).__setattr__(name, value)
  File "/usr/lib/python3/dist-packages/mailmanclient/restbase/base.py", line 131, in __setattr__
    return super(RESTObject, self).__setattr__(name, value)
  File "/usr/lib/python3/dist-packages/mailmanclient/restobjects/user.py", line 145, in preferred_address
    response, content = self._connection.call(url, {'email': email})
  File "/usr/lib/python3/dist-packages/mailmanclient/restbase/connection.py", line 160, in call
    raise HTTPError(params.get('url'), response.status_code,
urllib.error.HTTPError: HTTP Error 404: {"title": "404 Not Found"}
WARNING 2022-12-09 00:21:25,569 749 django.request Not Found: /mailman3/postorius/lists/lilux-info.lilux.lu/
WARNING 2022-12-09 00:21:25,569 749 django.request Not Found: /mailman3/postorius/lists/lilux-info.lilux.lu/
[pid: 749|app: 0|req: 10/10] 127.0.0.1 () {60 vars in 1399 bytes} [Fri Dec 9 00:21:25 2022] GET /mailman3/postorius/lists/lilux-info.lilux.lu/ => generated 6374 bytes in 192 msecs (HTTP/1.1 404) 7 headers in 227 bytes (1 switches on core 1)