Jan. 28, 2025
8:31 p.m.
I am trying to test some different templates however after adding a new template I get an error when adding new list members. The member is added to the list however the welcome message isn't sent to the user.
I'm getting the following error when using mass subscription on a testing list with a custom template loaded for [list:user:notice:welcome]
HTTP Error 400: HTTPConnectionPool(host='localhost', port=8000): Read timed
out. (read timeout=5)
The template has the text "Testing Template" I'm not sure why it's timing out but when I remove the custom template it works as expected.
The user is added to the list however doesn't get the custom welcome message.
mailman.log:
[28/Jan/2025:20:22:47 +0000] "GET /3.1/lists/
testing.list.louisvillecommunitygrocery.com HTTP/1.1" 200 482 "-" "GNU
Mailman REST client v3.3.5"
Jan 28 20:22:52 2025 (1977989) deque:
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connection.py",
line 507, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/usr/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/socket.py", line 707, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/adapters.py", line
667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/util/retry.py",
line 474, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/util/util.py", line
39, in reraise
raise value
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 369, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/workflow.py",
line 69, in __next__
return step()
^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/subscriptions.py",
line 362, in _step_do_subscription
self.member = self.mlist.subscribe(
^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/database/transaction.py",
line 106, in wrapper
return function(args[0], config.db.store, *args[1:], **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/mailinglist.py",
line 540, in subscribe
notify(SubscriptionEvent(
File
"/opt/mailman/venv/lib/python3.12/site-packages/zope/event/__init__.py",
line 33, in notify
subscriber(event)
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/membership.py",
line 183, in handle_SubscriptionEvent
send_welcome_message(mlist, member, member.preferred_language)
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/notifications.py",
line 77, in send_welcome_message
welcome_message = wrap(getUtility(ITemplateLoader).get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/template.py",
line 192, in get
contents = getUtility(ITemplateManager).get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/database/transaction.py",
line 106, in wrapper
return function(args[0], config.db.store, *args[1:], **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/template.py",
line 114, in get
contents = protocols.get(actual_uri, **auth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/utilities/protocols.py",
line 39, in get
response = requests.get(url, timeout=REQUEST_TIMEOUT, **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mailman/venv/lib/python3.12/site-packages/requests/api.py",
line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mailman/venv/lib/python3.12/site-packages/requests/api.py",
line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/sessions.py", line
589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/sessions.py", line
703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/adapters.py", line
713, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
Jan 28 20:22:52 2025 (1977989) HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 536, in _make_request
response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connection.py",
line 507, in getresponse
httplib_response = super().getresponse()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/http/client.py", line 1428, in getresponse
response.begin()
File "/usr/lib/python3.12/http/client.py", line 331, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/http/client.py", line 292, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/socket.py", line 707, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/adapters.py", line
667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/util/retry.py",
line 474, in increment
raise reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/util/util.py", line
39, in reraise
raise value
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 538, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File
"/opt/mailman/venv/lib/python3.12/site-packages/urllib3/connectionpool.py",
line 369, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/rest/members.py",
line 385, in on_post
token, token_owner, member = registrar.register(
^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/subscriptions.py",
line 584, in register
list(workflow)
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/workflow.py",
line 69, in __next__
return step()
^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/subscriptions.py",
line 362, in _step_do_subscription
self.member = self.mlist.subscribe(
^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/database/transaction.py",
line 106, in wrapper
return function(args[0], config.db.store, *args[1:], **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/mailinglist.py",
line 540, in subscribe
notify(SubscriptionEvent(
File
"/opt/mailman/venv/lib/python3.12/site-packages/zope/event/__init__.py",
line 33, in notify
subscriber(event)
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/membership.py",
line 183, in handle_SubscriptionEvent
send_welcome_message(mlist, member, member.preferred_language)
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/app/notifications.py",
line 77, in send_welcome_message
welcome_message = wrap(getUtility(ITemplateLoader).get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/template.py",
line 192, in get
contents = getUtility(ITemplateManager).get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/database/transaction.py",
line 106, in wrapper
return function(args[0], config.db.store, *args[1:], **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/model/template.py",
line 114, in get
contents = protocols.get(actual_uri, **auth)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/mailman/utilities/protocols.py",
line 39, in get
response = requests.get(url, timeout=REQUEST_TIMEOUT, **kws)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mailman/venv/lib/python3.12/site-packages/requests/api.py",
line 73, in get
return request("get", url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/mailman/venv/lib/python3.12/site-packages/requests/api.py",
line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/sessions.py", line
589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/sessions.py", line
703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File
"/opt/mailman/venv/lib/python3.12/site-packages/requests/adapters.py", line
713, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
[28/Jan/2025:20:22:52 +0000] "POST /3.1/members HTTP/1.1" 400 128 "-" "GNU
Mailman REST client v3.3.5"
[28/Jan/2025:20:22:52 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/requests/count?token_owner=moderator
HTTP/1.1" 200 73 "-" "GNU Mailman REST client v3.3.5"
[28/Jan/2025:20:22:52 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/held/count HTTP/1.1" 200 73 "-"
"GNU Mailman REST client v3.3.5"
[28/Jan/2025:20:26:15 +0000] "GET /3.1/lists/
testing.list.louisvillecommunitygrocery.com HTTP/1.1" 200 482 "-" "GNU
Mailman REST client v3.3.5"
[28/Jan/2025:20:26:15 +0000] "GET /3.1/lists/
testing.list.louisvillecommunitygrocery.com HTTP/1.1" 200 482 "-" "GNU
Mailman REST client v3.3.5"
[28/Jan/2025:20:26:15 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/requests/count?token_owner=moderator
HTTP/1.1" 200 73 "-" "GNU Mailman REST client v3.3.5"
[28/Jan/2025:20:26:15 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/held/count HTTP/1.1" 200 73 "-"
"GNU Mailman REST client v3.3.5"
[28/Jan/2025:20:26:39 +0000] "GET /3.1/lists/
testing.list.louisvillecommunitygrocery.com HTTP/1.1" 200 482 "-" "GNU
Mailman REST client v3.3.5"
[28/Jan/2025:20:26:39 +0000] "GET /3.1/lists/
testing.list.louisvillecommunitygrocery.com HTTP/1.1" 200 482 "-" "GNU
Mailman REST client v3.3.5"
[28/Jan/2025:20:26:39 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/requests/count?token_owner=moderator
HTTP/1.1" 200 73 "-" "GNU Mailman REST client v3.3.5"
[28/Jan/2025:20:26:39 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/held/count HTTP/1.1" 200 73 "-"
"GNU Mailman REST client v3.3.5"
Thank you, Paul 'Arte Chambers' Robey 502-408-6922