On 3/12/19 4:11 AM, Saswat Mishra wrote: > I am sending the detailed issue from the console keeping DEBUG = True . I > have already tried updating dependencies but that did not work. Is this > problem regarding Postorius and Hyperkitty using same smpt port ? (as > mentioned in the documentation that this might create issue ) > > > > ERROR: Internal Server Error: /postorius/lists/ > Traceback (most recent call last): > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 34, in inner > response = get_response(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py", > line 126, in _get_response > response = self.process_exception_by_middleware(e, request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py", > line 124, in _get_response > response = wrapped_callback(request, *callback_args, **callback_kwargs) > File "/root/mailman/postorius/src/postorius/views/list.py", line 696, in > list_index > return list_index_authenticated(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py", > line 21, in _wrapped_view > return view_func(request, *args, **kwargs) > File "/root/mailman/postorius/src/postorius/views/list.py", line 652, in > list_index_authenticated > choosable_domains = _get_choosable_domains(request) > File "/root/mailman/postorius/src/postorius/views/list.py", line 558, in > _get_choosable_domains > domains = Domain.objects.all() > File "/root/mailman/postorius/src/postorius/models.py", line 77, in all > return getattr(get_mailman_client(), self.resource_name_plural) > File "/root/mailman/mailmanclient/src/mailmanclient/client.py", line 190, > in domains > response, content = self._connection.call('domains') > File > "/root/mailman/mailmanclient/src/mailmanclient/restbase/connection.py", > line 102, in call > response.content, response, None) > urllib.error.HTTPError: HTTP Error 500: b'A server error occurred. Please > contact the administrator.'
The traceback up to here is the issue. the REST server is returning a 500 in response to a call having to do with 'domains'. This comes from postorius/views/list.py trying to get a list of all domains. Is there any more or different information in Mailman's var/logs/mailman.log? > During handling of the above exception, another exception occurred: There are very few things in the following that are relevant - see below: > Traceback (most recent call last): > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 34, in inner > response = get_response(request) > File "/root/mailman/postorius/src/postorius/middleware.py", line 39, in > __call__ > return self.get_response(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 36, in inner > response = response_for_exception(request, exc) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 90, in response_for_exception > response = handle_uncaught_exception(request, > get_resolver(get_urlconf()), sys.exc_info()) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 125, in handle_uncaught_exception > return debug.technical_500_response(request, *exc_info) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py", > line 89, in technical_500_response > reporter = ExceptionReporter(request, exc_type, exc_value, tb) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py", > line 254, in __init__ > self.template_info = getattr(self.exc_value, 'template_debug', None) > File "/usr/lib/python3.6/tempfile.py", line 618, in __getattr__ > file = self.__dict__['file'] > KeyError: 'file' This KeyError comes from Django's error handler and is not relevant to the issue. The rest of this looks like a replay of the above except at the very end > ERROR: Internal Server Error: /postorius/lists/ > Traceback (most recent call last): > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 34, in inner > response = get_response(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py", > line 126, in _get_response > response = self.process_exception_by_middleware(e, request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/base.py", > line 124, in _get_response > response = wrapped_callback(request, *callback_args, **callback_kwargs) > File "/root/mailman/postorius/src/postorius/views/list.py", line 696, in > list_index > return list_index_authenticated(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/contrib/auth/decorators.py", > line 21, in _wrapped_view > return view_func(request, *args, **kwargs) > File "/root/mailman/postorius/src/postorius/views/list.py", line 652, in > list_index_authenticated > choosable_domains = _get_choosable_domains(request) > File "/root/mailman/postorius/src/postorius/views/list.py", line 558, in > _get_choosable_domains > domains = Domain.objects.all() > File "/root/mailman/postorius/src/postorius/models.py", line 77, in all > return getattr(get_mailman_client(), self.resource_name_plural) > File "/root/mailman/mailmanclient/src/mailmanclient/client.py", line 190, > in domains > response, content = self._connection.call('domains') > File > "/root/mailman/mailmanclient/src/mailmanclient/restbase/connection.py", > line 102, in call > response.content, response, None) > urllib.error.HTTPError: HTTP Error 500: b'A server error occurred. Please > contact the administrator.' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 34, in inner > response = get_response(request) > File "/root/mailman/postorius/src/postorius/middleware.py", line 39, in > __call__ > return self.get_response(request) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 36, in inner > response = response_for_exception(request, exc) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 90, in response_for_exception > response = handle_uncaught_exception(request, > get_resolver(get_urlconf()), sys.exc_info()) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/core/handlers/exception.py", > line 125, in handle_uncaught_exception > return debug.technical_500_response(request, *exc_info) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py", > line 89, in technical_500_response > reporter = ExceptionReporter(request, exc_type, exc_value, tb) > File > "/root/mailman/venv3/lib/python3.6/site-packages/Django-2.1.7-py3.6.egg/django/views/debug.py", > line 254, in __init__ > self.template_info = getattr(self.exc_value, 'template_debug', None) > File "/usr/lib/python3.6/tempfile.py", line 618, in __getattr__ > file = self.__dict__['file'] > KeyError: 'file' > ERROR: "GET /postorius/lists/ HTTP/1.1" 500 134330 where this says it was a GET of /postorius/lists/ that produced the error. -- Mark Sapiro <m...@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-Developers mailing list -- mailman-developers@python.org To unsubscribe send an email to mailman-developers-le...@python.org https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3 Security Policy: https://wiki.list.org/x/QIA9