Re: Incorrect error log message in OutgoingRunner._dispose()
On 4/26/26 10:42 AM, Craig Leres wrote:
On 4/26/26 06:52, Mark Sapiro wrote:
Did you by chance run import21 as root or another non-mailman user resulting in template files unreadable by Mailman?
Yes and no. I ran it as a user in group mailman; the template files are owned by the user but are group mailman read/write...
Then those templates in Mailman's var/templates/LIST-ID/LC/ should be used for the list for that language as long as they are readable and not overridden by a Postorius template or other URI for the list in the template table in the database.
Was there anything in mailman.log prior to your defining a Postorius template indicating why they weren't used?
Apr 25 12:32:22 2026 (82977) Cannot connect to SMTP server 127.0.0.1 on port 25
This is a well known issue. See <https://gitlab.com/mailman/mailman/-/ work_items/582> and related issues referenced therein. ... What really bothers me about the error message is that it's reporting a SMTP connection failure when what really happened was a HTTP connection failure.
That is all part of the above referenced issues. It is a bug and should be fixed but hasn't been yet. It is caused by the low level socket error upon trying to fetch the template, ultimately being caught by the try/except in outgoing runner's sending of the message.
I'm using the default webservice port (8001) so I would not expect anything to ever be listening on 8000.
The default web service port (Postorius and HyperKitty) is 8000. Port 8001 is Mailman core's rest api.
Ah. I never noticed anything telling me the apache config needed to also listen on 8000. It's also confusing to me to call the rest api port the "web service port" (Also, I'm not running hyperkitty.)
Apache doesn't listen on port 8000. The WSGI server (uWsgi or Gunicorn or ...) listens on port 8000 and Apache listens on ports 80 and 443 as normal and proxies the mailman requests to port 8000.
Ok, I added apache config to handle 127:0.0.1:8000 and that solves the "SMTP" (HTTP) connection error and cpu bound runner.
I don't know what you did, but see <https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura...> for how Apache should proxy to port 8000.
I still can't get templates to work but I'll debug further and ask for help later if I still can't get it to work.
Do you have a WSGI server running and listening on port 8000? See <https://docs.mailman3.org/en/latest/install/virtualenv.html#setting-up-a-wsg...>. You need this for Postorius as Postorius is a Django project and Django is a WSGI application.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (1)
-
Mark Sapiro