Hello good people,
So today I decided that I should be looking at MM3 to see how far it can take me. I started from the templates and created one for a footer for non-digest messages. When I sent a test mail to the list I am using for testing, the following errors popped up:
--- Logging error --- Traceback (most recent call last): File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/model/template.py", line 110, in get contents = protocols.get(actual_uri, **auth) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/utilities/protocols.py", line 39, in get response.raise_for_status() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/requests-2.24.0-py3.7.egg/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://localhost:8000/mm3/mailman3/api/templates/list/kictanet-2.lists.kicta...
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/core/logging.py", line 76, in emit msg = self.format(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 869, in format return fmt.format(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 611, in format s = self.formatMessage(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 580, in formatMessage return self._style.format(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 422, in format return self._fmt % record.__dict__ KeyError: 't' Call stack: File "/opt/mailman/mm/venv/bin/runner", line 33, in <module> sys.exit(load_entry_point('mailman==3.3.3b1', 'console_scripts', 'runner')()) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click-7.1.2-py3.7.egg/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click-7.1.2-py3.7.egg/click/core.py", line 782, in main rv = self.invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click-7.1.2-py3.7.egg/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click-7.1.2-py3.7.egg/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click-7.1.2-py3.7.egg/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/bin/runner.py", line 188, in main runner.run() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/core/runner.py", line 134, in run filecnt = self._one_iteration() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/core/runner.py", line 173, in _one_iteration self._process_one_file(msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/core/runner.py", line 266, in _process_one_file keepqueued = self._dispose(mlist, msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/runners/outgoing.py", line 93, in _dispose self._func(mlist, msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/mta/deliver.py", line 86, in deliver refused = agent.deliver(mlist, msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/mta/base.py", line 167, in deliver callback(mlist, message_copy, msgdata_copy) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/mta/decorating.py", line 32, in decorate decorator.process(mlist, msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/handlers/decorate.py", line 264, in process process(mlist, msg, msgdata) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/handlers/decorate.py", line 89, in process footer = decorate('list:member:regular:footer', mlist, d) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/handlers/decorate.py", line 226, in decorate template = getUtility(ITemplateLoader).get(name, mlist, **extradict) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/model/template.py", line 189, in get name, lookup_context, **substitutions) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/model/template.py", line 118, in get actual_uri, auth.get('auth', '<no authorization>'))) File "/usr/local/lib/python3.7/logging/__init__.py", line 1413, in exception self.error(msg, *args, exc_info=exc_info, **kwargs) File "/usr/local/lib/python3.7/logging/__init__.py", line 1407, in error self._log(ERROR, msg, args, **kwargs) File "/usr/local/lib/python3.7/logging/__init__.py", line 1514, in _log self.handle(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 1524, in handle self.callHandlers(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 1586, in callHandlers hdlr.handle(record) File "/usr/local/lib/python3.7/logging/__init__.py", line 894, in handle self.emit(record) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman-3.3.3b1-py3.7.egg/mailman/core/logging.py", line 85, in emit self.handleError(record) Message: 'Cannot retrieve template at http://localhost:8000/mm3/mailman3/api/templates/list/kictanet-2.lists.kicta... (<no authorization>)' Arguments: ()
I am unable to guess the cause of this.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", grep ^[^#] :-)