Mailman web stopped working
After a lengthy power failure I had to reboot a machine that has been running for several years. the WEB-UI does not seem to be able to see mailman-core. I have looked for log entries that might explain what the issue is and I am stumped to even find logs that will update when I get an error on the browser. Mailman is definitely running, postgres is running and mailman web is running. if I go to the lists page I see lists, if I try to access a specific list I get Server error: An error occurred while processing your request.
I looked in /var/logs/mailman /opt/mailman/web/mailmanweb
All I can find is:
django.urls.exceptions.NoReverseMatch: Reverse for 'list_unsubscription_requests' not found. 'list_unsubscription_requests' is not a valid view function or pattern name.
16688 ERROR 2023-09-12 13:56:58,430 1760 django.request Internal Server Error: /mailman3/lists/goodstein.goodstein.org/
File "/opt/mailman/venv/lib64/python3.8/site-packages/haystack/admin.py", line 8, in <module>
from django.utils.translation import ungettext
ImportError: cannot import name 'ungettext' from 'django.utils.translation' (/opt/mailman/venv/lib64/python3.8/site-packages/django/utils/translation/__init__.py)
Also I have to run mailman from "mailman start" because the systemctl returns this:
● mailman3.service - GNU Mailing List Manager
Loaded: loaded (/etc/systemd/system/mailman3.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2023-09-12 10:06:31 EDT; 13s ago
Process: 31159 ExecStart=/opt/mailman/venv/bin/mailman start (code=exited, status=1/FAILURE)
CPU: 806ms
Sep 12 10:06:31 mail mailman[31159]: Error in atexit._run_exitfuncs:
Sep 12 10:06:31 mail mailman[31159]: Traceback (most recent call last):
Sep 12 10:06:31 mail mailman[31159]: File "/usr/lib64/python3.8/logging/__init__.py", line 2126, in shutdown
Sep 12 10:06:31 mail mailman[31159]: h.flush()
Sep 12 10:06:31 mail mailman[31159]: File "/opt/mailman/venv/lib64/python3.8/site-packages/mailman/core/logging.py", line 67, in flush
Sep 12 10:06:31 mail mailman[31159]: if self._stream:
Sep 12 10:06:31 mail mailman[31159]: AttributeError: 'ReopenableFileHandler' object has no attribute '_stream'
Sep 12 10:06:31 mail systemd[1]: mailman3.service: Control process exited, code=exited, status=1/FAILURE
Sep 12 10:06:31 mail systemd[1]: mailman3.service: Failed with result 'exit-code'.
Sep 12 10:06:31 mail systemd[1]: Failed to start GNU Mailing List Manager.
Please tell me where to start looking or adjusting.
Edited by Mark Sapiro