"Something went wrong" HTTP Error 500: {"title": "500 Internal Server Error"}

Thanks for any help in advance!
server: Used this guide: https://docs.mailman3.org/en/latest/install/virtualenv.html#nginx-configurat... ubuntu 24.04 Django UWSGI Gunicorn Nginx SQLite DB
Ive had a look at historical posts and I think this might be related to this issue: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/I...
but Im not exactly sure. I only have one list on the server and I am encountering this issue. All other pages work fine. This is is the output of the mailman log:
2025-03-21 16:49:30 [FALCON] [ERROR] GET /3.1/lists/csdopstest.test.com/archivers => Traceback (most recent call last): File "falcon/app.py", line 440, in falcon.app.App.__call__ File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/rest/lists.py", line 425, in on_get archiver_set = IListArchiverSet(self._mlist) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/zope/component/_api.py", line 167, in adapter_hook return sitemanager.queryAdapter(object, interface, name, default) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/zope/interface/registry.py", line 363, in queryAdapter return self.adapters.queryAdapter(object, interface, name, default) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/database/transaction.py", line 106, in wrapper return function(args[0], config.db.store, *args[1:], **kws) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/mailinglist.py", line 647, in __init__ for archiver in config.archivers: File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/config/config.py", line 284, in archivers archiver = call_name(class_path) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/mailman/utilities/modules.py", line 70, in call_name return named_callable(*args, **kws) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.12/site-packages/mailman_hyperkitty/__init__.py", line 60, in __init__ self._load_conf() File "/opt/mailman/venv/lib/python3.12/site-packages/mailman_hyperkitty/__init__.py", line 87, in _load_conf self._conf["api_key"] = archiver_config.get("general", "api_key") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/configparser.py", line 777, in get return self._interpolation.before_get(self, section, option, value, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/configparser.py", line 367, in before_get self._interpolate_some(parser, option, L, value, section, defaults, 1) File "/usr/lib/python3.12/configparser.py", line 414, in _interpolate_some raise InterpolationSyntaxError( configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%#$%sfdgs'
Should I try the fix in the post mentioned above or is this a different issue?
Cheers

zachr@mta.ca writes:
Ive had a look at historical posts and I think this might be related to this issue: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/I...
Pretty sure that is NOT the issue. This is quite different:
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%#$%sfdgs'
Somewhere in your Mailman configurations, probably in /etc/mailman3/mailman.cfg, you will find the string '%# $%sfdgs' (possibly with different or no quotes), likely in a line something like
API_KEY = '%#$%sfdgs'
or
API_KEY: '%#$%sfdgs'
Change that to '%%#$%%sfdgs' (ie, double both of the '%' characters) and restart mailman (or mailmanweb if you found it in settings.py).

Stephen J. Turnbull wrote on 3/24/2025 1:50 PM:
Pretty sure that is NOT the issue. This is quite different:
configparser.InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%#$%sfdgs'
Somewhere in your Mailman configurations, probably in /etc/mailman3/mailman.cfg, you will find the string '%# $%sfdgs' (possibly with different or no quotes), likely in a line something like
API_KEY = '%#$%sfdgs'
or
API_KEY: '%#$%sfdgs'
Change that to '%%#$%%sfdgs' (ie, double both of the '%' characters) and restart mailman (or mailmanweb if you found it in settings.py).
Hi Stephen,
Does Mailman need interpolation active in its ConfigParser? Does it make sense to disable interpolation in the ConfigParser so other users don't run into the same issue? Apparently this was a change from python 2 to python 3. A la, https://stackoverflow.com/a/62592195/18693299
--[Lance]

Lance A. Brown writes:
Does Mailman need interpolation active in its ConfigParser? Does it make sense to disable interpolation in the ConfigParser so other users don't run into the same issue? Apparently this was a change from python 2 to python 3. A la,
Interpolation is not new; the ability to disable it is. Changing this would likely break existing configurations assuming interpolation is on. I don't know if it needs to be active in the parser -- it would require a lot of work to confirm it's not. There definitely are interpolatable strings in the configuration files, and it's certainly possible that there would be more hard-coded in the source code.
Steve
participants (3)
-
Lance A. Brown
-
Stephen J. Turnbull
-
zachr@mta.ca