First, my apologies for not taking note of your MAILMAN_ARCHIVER_FROM setting in your OP.
On 11/22/22 08:52, Hirayama, Pat wrote:
Steve wrote:
- Does settings.py have "from settings_local import *" in it?
Yes. I assume that overrides the MAILMAN_ARCHIVER_FROM and other related settings defined at the top of the settings.py file? Or should I update settings.py based on what is in settings_local.py?
Assuming the from settings_local import *
is at the end of
settings.py, anything defined in settings_local.py will override the
definition in settings.py. There's no need to change settings.py.
- Are there multiple copies of settings.py lying around?
Well, there are these:
./usr/local/lib/python3.8/site-packages/rest_framework/settings.py
./usr/local/lib/python3.8/site-packages/postorius/doc/settings.py
./usr/local/lib/python3.8/site-packages/django_q/tests/settings.py
./usr/local/lib/python3.8/site-packages/django_extensions/settings.py
./usr/local/lib/python3.8/site-packages/mailmanclient/restobjects/settings.py
./usr/local/lib/python3.8/site-packages/example_project/settings.py
Only the last has MAILMAN_ARCHIVER_FROM defined in it, but I was assuming from the example_project subdirectory name that this was just a sample file, and besides, "from settings_local import *" is also set in it.
Yes, those are all samples.
The
ERROR 2022-11-22 00:25:40,365 7 hyperkitty.views.mailman Access to the
archiving API endpoint was forbidden from IP 172.31.0.1, your
MAILMAN_ARCHIVER_FROM setting may be misconfigured
message comes from https://gitlab.com/mailman/hyperkitty/-/blob/master/hyperkitty/views/mailman... which only occurs if '172.31.0.1' is not in MAILMAN_ARCHIVER_FROM. Given that it is in MAILMAN_ARCHIVER_FROM as defined in settings_local.py, the only thing I can conclude is that the Django settings actually used is not the settings.py you think it is.
I don't know offhand even what wsgi service is used in the docker container or how it is configured, but it needs to set its working directory to the directory containing settings.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan