On 2/21/21 3:09 AM, Marco Marinello wrote:
Dear all,
I've setup my own instance of Hyperkitty working as archiver of a Mailman 3 server. It works fine but, sometimes, I get an email of a Django error:
Internal Server Error: /hyperkitty/list/my@lists.domain.eu/pop-threads
KeyError at /hyperkitty/list/my@lists.domain.eu/pop-threads 'file'
The above is not the issue. It results from Django trying to look up a log file in the LOGGING configuration.
Request Method: GET Django Version: 2.2.12 Python Executable: /usr/bin/python3 Python Version: 3.7.3 Traceback:
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response 115. response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response 113. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.7/dist-packages/hyperkitty/lib/view_helpers.py" in inner 129. if not is_mlist_authorized(request, mlist):
File "/usr/local/lib/python3.7/dist-packages/hyperkitty/lib/view_helpers.py" in is_mlist_authorized 146. if mlist.list_id in get_subscriptions(request.user):
File "/usr/local/lib/python3.7/dist-packages/django_mailman3/lib/mailman.py" in get_subscriptions 130. _get_value, 60, version=2) # 1 minute
File "/usr/local/lib/python3.7/dist-packages/django/core/cache/backends/base.py" in get_or_set 167. default = default()
File "/usr/local/lib/python3.7/dist-packages/django_mailman3/lib/mailman.py" in _get_value 122. for member in mm_user.subscriptions
File "/usr/local/lib/python3.7/dist-packages/mailmanclient/restobjects/user.py" in subscriptions 66. 'members/find', data={'subscriber': address})
File "/usr/local/lib/python3.7/dist-packages/mailmanclient/restbase/connection.py" in call 112. error_msg, response, None)
During handling of the above exception (HTTP Error 500: <html> <head> <title>Internal Server Error</title> </head> <body> <h1><p>Internal Server Error</p></h1>
</body> </html>
What's happening is HyperKitty is trying to determine if the request comes from a list member, and that throws an exception resulting in the 500. What's in Mailman core's mailman.log? Is Mailman core's REST API even accessible from this HyperKitty instance.
If not, you can't support private archives and will probably have other issues?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan