On 5/28/25 01:14, Mark wrote:
Then I created a template using Postorius and updated the uri in
mailman.templates to:
file:///opt/mailman/mm/var/templates/lists/testlist.example.com/en/list:user:notice:welcome.txt
- and that works.
It's looking promising. Now I just need to modify my script that
periodically copies the data from the
"mailmanweb.postorius_emailtemplate" table to a file and updates the
uri.
On 2025-05-28 19:17, Mark Sapiro wrote:
Which says get the template from the file system at that location and
don't ask for it from Postorius at all. This would be the default
action if there were no entry for this template in the
mailman.template table at all. I.e. you now have a template in
Postorius, but it is not used.
I have jumped the gun on thinking that the template as a file was
working. It's not. It's the same story: the initial file template is
good, but it's for sure getting cached somewhere, and an updated file is
ignored. The same as when the template was being drawn from the
database.
Restarting mailman3 and mailmanweb didn't help, neither did rebooting
the server.
Looking at Gunicorn status, I see a failing connection to 127.0.0.1
which is the error message I was getting when adding a new subscriber -
with the custom Welcome template in the database (which is why I moved
it to file).
127.0.0.1 and locahost are in the ALLOWED_HOSTS and
CSRF_TRUSTED_ORIGINS of the settings.py file
I'm at a loss with this caching problem. Any other clues happily
received.
$ gunicorn --version
gunicorn (version 21.2.0)
$ gunicorn status
[2025-05-29 02:29:41 +0000] [17838] [INFO] Starting gunicorn 21.2.0
[2025-05-29 02:29:41 +0000] [17838] [ERROR] Connection in use:
('127.0.0.1', 8000)
[2025-05-29 02:29:41 +0000] [17838] [ERROR] Retrying in 1 second.
[2025-05-29 02:29:42 +0000] [17838] [ERROR] Connection in use:
('127.0.0.1', 8000)
# ps -ef | grep gunicorn
root 1522331 1521736 0 22:57 pts/1 00:00:00 grep gunicorn
mailman 1608073 1 0 May20 ? 00:01:24
/opt/mailman/venv/bin/python3 /opt/mailman/venv/bin/gunicorn -c
/etc/mailman3/gunicorn.conf mailman_web.wsgi:application
mailman 1608075 1608073 1 May20 ? 02:24:20
/opt/mailman/venv/bin/python3 /opt/mailman/venv/bin/gunicorn -c
/etc/mailman3/gunicorn.conf mailman_web.wsgi:application
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@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/XLW4XEMEHEZ64JECQDZKQQ5PWNTFOSYD/
This message sent to arch...@mail-archive.com