On 7/7/22 8:12 AM, tim@thecutts.org wrote:
Hi everyone,
As we all know, mailman3 got dropped from Ubuntu 22. So I updated the operating system anyway, and decided to switch to a virtualenv setup, keeping the old Debian/Ubuntu database and log locations etc.
With some lumps and bumps, this has gone OK; the web interface appears to be working, and I can use the mailman CLI to manipulate the lists. So far so good.
However, there do seem to be two problems, which might be linked:
- If I send a message to my test list, it does not get sent on to any members. I can see the lmtp delivery to mailman. But nothing comes out again. I can see the two test messages in the “shunt” directory
Look in mailman.log. There will be exceptions and tracebacks associated with the shunted messages. What are these?
- Trying to look in the archives for my mailing lists does not work. On the web, I get "An error occurred while processing your request.”, and the log file seems to show a schema error in the hyper kitty table:
ERROR 2022-07-07 13:18:41,634 116894 django.request Internal Server Error: /mailman3/archives/list/fairhaven-members@thecutts.org/ Traceback (most recent call last): File "/opt/mailman/venv/lib/python3.10/site-packages/django/db/backends/utils.py", line 86, in _execute return self.cursor.execute(sql, params) psycopg2.errors.UndefinedColumn: column hyperkitty_mailinglist.archive_rendering_mode does not exist LINE 1: ...e_policy", "hyperkitty_mailinglist"."created_at", "hyperkitt... ^
Do I need to run a database migration manually? If so, how? I’m not very familiar with Django, it seems a bit hideously complex to me.
Yes. You need to run your Django admin command however you invoke it with the 'migrate' option. e.g. with your venv activated
django-admin migrate
or
python manage.py migrate
or ???
Are these issues likely to be related, or do I have two things going on here?
The shunted messages are not related to the Django migration issues.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan