Adding Mass Subscribe custom template error
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
On 1/28/25 12:31, Arte Chambers via Mailman-users wrote:
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)
It appears you are setting the template in Postorius and there is an issue with your setting for POSTORIUS_TEMPLATE_BASE_URL. It looks like this is something like
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000/'
and that connection is timing out. Try setting just the scheme and host for access to Postorius. I.e., if you access Postorius at a URL like https://www.example.com/mailman3/, try
POSTORIUS_TEMPLATE_BASE_URL = 'https://www.example.com/'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Where can I find the setting
POSTORIUS_TEMPLATE_BASE_URL
Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Tue, Jan 28, 2025 at 6:22 PM Mark Sapiro <mark@msapiro.net> wrote:
On 1/28/25 12:31, Arte Chambers via Mailman-users wrote:
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)
It appears you are setting the template in Postorius and there is an issue with your setting for POSTORIUS_TEMPLATE_BASE_URL. It looks like this is something like
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000/'
and that connection is timing out. Try setting just the scheme and host for access to Postorius. I.e., if you access Postorius at a URL like https://www.example.com/mailman3/, try
POSTORIUS_TEMPLATE_BASE_URL = 'https://www.example.com/'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com
On 1/29/25 09:41, Arte Chambers via Mailman-users wrote:
Where can I find the setting
POSTORIUS_TEMPLATE_BASE_URL
It is in your Django settings. Where these are depends on your installation, but these are usually in files named settings.py and settings_local.py.
If you installed following https://docs.mailman3.org/en/latest/install/virtualenv.html the default is in mailman_web/settings/mailman.py but you would override the default in /etc/mailman3/settings.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Ok I did install using the https://docs.mailman3.org/en/latest/install/virtualenv.html
I added
POSTORIUS_TEMPLATE_BASE_URL='https://www.example.com/'
to /etc/mailman3/settings.py and restarted mailman services
However I'm still getting the same error from mailman.log
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost',
port=8000): Read timed out. (read timeout=5)
[29/Jan/2025:19:18:08 +0000] "POST /3.1/members HTTP/1.1" 400 128 "-" "GNU
Mailman REST client v3.3.5"
[29/Jan/2025:19:18:08 +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"
[29/Jan/2025:19:18:08 +0000] "GET /3.1/lists/
testing@list.louisvillecommunitygrocery.com/held/count HTTP/1.1" 200 73 "-"
"GNU Mailman REST client v3.3.5"
Not sure if I'm editing the correct config file.
Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Wed, Jan 29, 2025 at 1:27 PM Mark Sapiro <mark@msapiro.net> wrote:
On 1/29/25 09:41, Arte Chambers via Mailman-users wrote:
Where can I find the setting
POSTORIUS_TEMPLATE_BASE_URL
It is in your Django settings. Where these are depends on your installation, but these are usually in files named settings.py and settings_local.py.
If you installed following https://docs.mailman3.org/en/latest/install/virtualenv.html the default is in mailman_web/settings/mailman.py but you would override the default in /etc/mailman3/settings.py
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com
On 1/29/25 11:20, Arte Chambers via Mailman-users wrote:
Ok I did install using the https://docs.mailman3.org/en/latest/install/virtualenv.html
I added
POSTORIUS_TEMPLATE_BASE_URL='https://www.example.com/'
I hope you didn't add the above literally without replacing www.example.com with your actual host name.
It should be
POSTORIUS_TEMPLATE_BASE_URL = 'list.louisvillecommunitygrocery.com'
to /etc/mailman3/settings.py and restarted mailman services
However I'm still getting the same error from mailman.log
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8000): Read timed out. (read timeout=5)
I don't understand why it should still be trying to connect to
localhost:8000. Also, I don't understand why localhost:8000 times out.
What is your setting for localhost in /etc/hosts? it should be
127.0.0.1
. If it is ::1
that could be the issue.
Not sure if I'm editing the correct config file.
/etc/mailman3/settings.py should be correct.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks! Looks resolved however I'm not 100% sure which steps fixed it:
My Steps:
cat /etc/hosts
127.0.1.1 list.louisvillecommunitygrocery.com list
127.0.0.1 localhost
Updated
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000/'
POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com'
Restarted mailman3 AND mailmanweb service
Updated /etc/mailman3/gunicorn.conf adding workers=9
Restarted mailman3 AND mailmanweb service
Deleted custom template from Postorious
Created new custom template from Postorious
Added test user to list
User was added with no errors and also received the custom Template.
Thanks Mark, Gerald
Bonus question: how should I calculate how many workers I should have on my system?
Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Wed, Jan 29, 2025 at 2:36 PM <vogt@spamcop.net> wrote:
Sounds somewhat like the problem I have had:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/M...
The problem for me was that I am using gunicorn but did not increase the
number of workers…
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Wed, Jan 29, 2025 at 2:54 PM Mark Sapiro <mark@msapiro.net> wrote:
On 1/29/25 11:20, Arte Chambers via Mailman-users wrote:
Ok I did install using the https://docs.mailman3.org/en/latest/install/virtualenv.html
I added
POSTORIUS_TEMPLATE_BASE_URL='https://www.example.com/'
I hope you didn't add the above literally without replacing www.example.com with your actual host name.
It should be
POSTORIUS_TEMPLATE_BASE_URL = 'list.louisvillecommunitygrocery.com'
to /etc/mailman3/settings.py and restarted mailman services
However I'm still getting the same error from mailman.log
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8000): Read timed out. (read timeout=5)
I don't understand why it should still be trying to connect to localhost:8000. Also, I don't understand why localhost:8000 times out. What is your setting for localhost in /etc/hosts? it should be
127.0.0.1
. If it is::1
that could be the issue.Not sure if I'm editing the correct config file.
/etc/mailman3/settings.py should be correct.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com
Correct I used list.louisvillecommunitygrocery.com
On Wed, Jan 29, 2025, 2:58 PM Arte Chambers <paul.m.robey@gmail.com> wrote:
Thanks! Looks resolved however I'm not 100% sure which steps fixed it:
My Steps:
cat /etc/hosts 127.0.1.1 list.louisvillecommunitygrocery.com list 127.0.0.1 localhost
Updated
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost:8000/' POSTORIUS_TEMPLATE_BASE_URL = 'https://example.com'
Restarted mailman3 AND mailmanweb service
Updated /etc/mailman3/gunicorn.conf adding workers=9
Restarted mailman3 AND mailmanweb service
Deleted custom template from Postorious
Created new custom template from Postorious
Added test user to list
User was added with no errors and also received the custom Template.
Thanks Mark, Gerald
Bonus question: how should I calculate how many workers I should have on my system?
Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Wed, Jan 29, 2025 at 2:36 PM <vogt@spamcop.net> wrote:
Sounds somewhat like the problem I have had:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/M...
The problem for me was that I am using gunicorn but did not increase the
number of workers…
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com Thank you, Paul 'Arte Chambers' Robey 502-408-6922
On Wed, Jan 29, 2025 at 2:54 PM Mark Sapiro <mark@msapiro.net> wrote:
On 1/29/25 11:20, Arte Chambers via Mailman-users wrote:
Ok I did install using the https://docs.mailman3.org/en/latest/install/virtualenv.html
I added
POSTORIUS_TEMPLATE_BASE_URL='https://www.example.com/'
I hope you didn't add the above literally without replacing www.example.com with your actual host name.
It should be
POSTORIUS_TEMPLATE_BASE_URL = 'list.louisvillecommunitygrocery.com'
to /etc/mailman3/settings.py and restarted mailman services
However I'm still getting the same error from mailman.log
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8000): Read timed out. (read timeout=5)
I don't understand why it should still be trying to connect to localhost:8000. Also, I don't understand why localhost:8000 times out. What is your setting for localhost in /etc/hosts? it should be
127.0.0.1
. If it is::1
that could be the issue.Not sure if I'm editing the correct config file.
/etc/mailman3/settings.py should be correct.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to paul.m.robey@gmail.com
On 1/29/25 11:58, Arte Chambers via Mailman-users wrote:
Bonus question: how should I calculate how many workers I should have on my system?
On lists.mailman3.org (server for this list) we use 4. on mail.python.org (server for about 200 lists) we use 6.
Those numbers are pretty arbitrary.
See https://docs.gunicorn.org/en/latest/design.html#how-many-workers for their recommendation.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Sounds somewhat like the problem I have had:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/M...
The problem for me was that I am using gunicorn but did not increase the number of workers…
participants (3)
-
Arte Chambers
-
Mark Sapiro
-
vogt@spamcop.net