Hello,
I've seen some similar problems, but have not yet found anything that would work for me.
I just installed Mailman3-full from debian stable repository (Mailman 3.2.1 to be precise). Mailman itself is working, also are all mailing lists imported from Mailman 2.1. But I just can not get the web interface of Postorius to work.
I did manage to get it running through apache2 after I figured out what I had to remove from the old site config and replace it with the stuff in the automatically created config. Upon loading the site, I was able to log in and verify the mail address, but it kept showing that it wasn't able to connect to the REST API.
I double and triple checked, that mailman-web.py and mailman-hyperkitty.cfg contain the same API key (api_key in hyperkitty and SECRET_KEY and MAILMAN_ARCHIVER_KEY in mailman web), but that didn't help. I also saw a recommendation, that it can cause problems, when the API key uses symbols like / so I switched it to _ in all three places, but that didn't help. The configuration for mailman, mailman-web and hyperkitty all are set to using https, switching them to http doesn't solve any of the problems.
Meanwhile, the site only shows "Internal Server Error" even though I did not change anything. But probably not that relevant while it can't be used either way. What I can provide on logs:
/usr/share/mailman3-web/manage.py mmclient
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> client.system
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/mailmanclient/restbase/connection.py", line 95, in call
response, content = Http().request(url, method, data_str, headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1513, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1263, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1186, in _conn_request
conn.connect()
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1049, in connect
raise socket_err
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1010, in connect
sock.connect((self.host, self.port))
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib/python3/dist-packages/mailmanclient/client.py", line 74, in system
return self._connection.call('system/versions')[1]
File "/usr/lib/python3/dist-packages/mailmanclient/restbase/connection.py", line 109, in call
raise MailmanConnectionError('Could not connect to Mailman API')
mailmanclient.restbase.connection.MailmanConnectionError: Could not connect to Mailman API
From /var/log/mailman3/mailman.log of the last restart:
Aug 08 15:28:56 2021 (5322) in runner caught SIGTERM. Stopping.
Aug 08 15:28:56 2021 (5322) in runner exiting.
Aug 08 15:28:57 2021 (5322) in runner caught SIGTERM. Stopping.
Aug 08 15:28:57 2021 (5321) command runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5321) command runner exiting.
Aug 08 15:28:57 2021 (5320) bounces runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5320) bounces runner exiting.
Aug 08 15:28:57 2021 (5319) archive runner caught SIGTERM. Stopping.
Aug 08 15:28:57 2021 (5323) lmtp runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5323) lmtp runner exiting.
Aug 08 15:28:58 2021 (5319) archive runner exiting.
Aug 08 15:28:57 2021 (5329) virgin runner caught SIGTERM. Stopping.
Aug 08 15:28:57 2021 (5330) digest runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5330) digest runner exiting.
Aug 08 15:28:58 2021 (5329) virgin runner exiting.
Aug 08 15:28:58 2021 (5324) nntp runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5318) Master watcher caught SIGTERM. Exiting.
Aug 08 15:28:59 2021 (5318) Master watcher caught SIGTERM. Exiting.
Aug 08 15:28:59 2021 (5323) lmtp runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5324) nntp runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5320) bounces runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5329) virgin runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5324) nntp runner exiting.
Aug 08 15:28:59 2021 (5326) pipeline runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5319) archive runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5330) digest runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5325) out runner caught SIGTERM. Stopping.
Aug 08 15:28:59 2021 (5328) retry runner caught SIGTERM. Stopping.
Aug 08 15:29:00 2021 (5327) rest runner caught SIGTERM. Stopping.
Aug 08 15:28:58 2021 (5327) rest runner caught SIGTERM. Stopping.
Aug 08 15:29:01 2021 (5327) rest runner caught SIGTERM. Stopping.
Aug 08 15:29:01 2021 (5325) out runner exiting.
Aug 08 15:29:03 2021 (5326) pipeline runner exiting.
Aug 08 15:29:03 2021 (5327) rest runner exiting.
Aug 08 15:29:11 2021 (5328) retry runner exiting.
Aug 08 15:29:48 2021 (5318) Master stopped
Aug 08 15:30:30 2021 (5545) Master started
Aug 08 15:30:34 2021 (5546) archive runner started.
Aug 08 15:30:34 2021 (5549) in runner started.
Aug 08 15:30:34 2021 (5550) lmtp runner started.
Aug 08 15:30:34 2021 (5554) rest runner started.
Aug 08 15:30:35 2021 (5553) pipeline runner started.
Aug 08 15:30:35 2021 (5552) out runner started.
Aug 08 15:30:36 2021 (5551) nntp runner started.
Aug 08 15:30:36 2021 (5547) bounces runner started.
Aug 08 15:30:36 2021 (5556) virgin runner started.
So everything seems to be starting smoothly.
An excerpt from /var/log/mailman3/web/mailman-web.log:
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 364, in execute_from_\
command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 308, in execute
settings.INSTALLED_APPS
File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python3/dist-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/share/mailman3-web/settings.py", line 486, in <module>
from settings_local import *
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 859, in get_code
File "<frozen importlib._bootstrap_external>", line 916, in get_data
PermissionError: [Errno 13] Permission denied: '/usr/share/mailman3-web/settings_local.py'
[uwsgi-daemons] throttling "python3 manage.py qcluster" for 25 seconds
not sure where the Permission denied comes from/what permissions should be. /usr/share/mailman3-web/settings_local.py is a symlink owned by root to /etc/mailman3/mailman-web.py owned by list:list with 640 permission.
The apache2 error log contains nothing from the last restart of mailman3 and mailman3-web and trying to load the web page, the only interesting lines to the end of the log are
[Sun Aug 08 14:40:33.642119 2021] [proxy:error] [pid 2248:tid 140583379425024] (111)Connection refused: AH02454: uwsgi: attempt to connect to Unix domain socket /run/mailman3-web/uwsgi.sock (localhost) failed
[Sun Aug 08 14:40:33.644627 2021] [:error] [pid 2248:tid 140583379425024] [client 134.61.97.39:11893] AH10101: failed to make connection to backend: httpd-UDS:0
[Sun Aug 08 14:54:22.555229 2021] [proxy:error] [pid 2248:tid 140583379425024] (111)Connection refused: AH02454: uwsgi: attempt to connect to Unix domain socket /run/mailman3-web/uwsgi.sock (localhost) failed
[Sun Aug 08 14:54:22.555293 2021] [:error] [pid 2248:tid 140583379425024] [client 134.61.97.39:11913] AH10101: failed to make connection to backend: httpd-UDS:0
[Sun Aug 08 14:58:24.376278 2021] [mpm_event:notice] [pid 2247:tid 140583610946688] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Aug 08 14:58:34.534966 2021] [mpm_event:notice] [pid 3696:tid 140070763447424] AH00489: Apache/2.4.48 (Debian) OpenSSL/1.1.1d mod_wsgi/4.6.5 Python/3.7 configured -- resuming normal operations
[Sun Aug 08 14:58:34.535159 2021] [core:notice] [pid 3696:tid 140070763447424] AH00094: Command line: '/usr/sbin/apache2'