Hi Mark,
Great thanks to you and everyone in this discussion.
Mark Sapiro <mark@msapiro.net> 於 2019年10月30日 週三 23:13 寫道:
On 10/30/19 12:52 AM, Franklin Weng wrote:
If I use
base_url: https://lists.slat.org/mailman3/hyperkitty/
The log became
Oct 30 15:25:50 2019 (6256) HyperKitty failure on https://lists.slat.org/mailman3/hyperkitty/api/mailman/urls: <html><title>Auth required</title><body>
<h1>Authorization Required</h1>
</body></html> (401)
In my mailman-web.py:
MAILMAN_ARCHIVER_KEY = 'my-key,same as in mailman-hyperkitty.cfg' MAILMAN_ARCHIVER_FROM = ('127.0.0.1', '::1')
Not sure what to change here.
There have been other reports of authorization failures even though the keys match. See the last few posts at < https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/M...
. The solution there was to change both the api_key setting in /etc/mailman3/mailman-hyperkitty.cfg and the MAILMAN_ARCHIVER_KEY setting in /etc/mailman3/mailman-web.py to new values.
I didn't change the key. When I follow the thread and print the keys getting from web and in the settings I found that one with single quote and the other not. In the mailman-web.py the value of MAILMAN_ARCHIVER_KEY should be single quoted, **but** the api_key in [general] SHOULD NOT single quoted.
Therefore I set my hyperkitty base URL to https://lists.slat.org/mailman's/hyperkitty/ and removed the quote in mailman-hyperkitty.cfg it finally works.
Maybe adding a comment to explain it a bit more would help later people not to step on the mine again.
Thanks for your help!
Regards, Franklin