Kimmo L writes:
Unfortunately i discovered a new issue - one mailing list is not able to send email out to members. All the other mailing lists works fine after migrating from old to new server, but if i try to send a message to this one specific list and accept it under "Held messages", then the message will never reach to the members.
[...]
Log from mailman.log:
Sep 05 14:17:49 2022 (1331) Uncaught runner exception: 'list' object has no attribute 'encode' Sep 05 14:17:49 2022 (1331) Traceback (most recent call last): File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman/core/runner.py", line 176, in _one_iteration self._process_one_file(msg, msgdata) File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman/core/runner.py", line 269, in _process_one_file keepqueued = self._dispose(mlist, msg, msgdata) File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman/runners/pipeline.py", line 37, in _dispose process(mlist, msg, msgdata, pipeline) File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman/core/pipelines.py", line 50, in process handler.process(mlist, msg, msgdata) File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman/handlers/to_digest.py", line 51, in process mbox.add(msg) File "/usr/lib64/python3.9/mailbox.py", line 606, in add self._toc[self._next_key] = self._append_message(message) File "/usr/lib64/python3.9/mailbox.py", line 761, in _append_message offsets = self._install_message(message) File "/usr/lib64/python3.9/mailbox.py", line 833, in _install_message self._dump_message(message, self._file, self._mangle_from_) File "/usr/lib64/python3.9/mailbox.py", line 216, in _dump_message gen.flatten(message) File "/usr/lib64/python3.9/email/generator.py", line 116, in flatten self._write(msg) File "/usr/lib64/python3.9/email/generator.py", line 181, in _write self._dispatch(msg) File "/usr/lib64/python3.9/email/generator.py", line 218, in _dispatch meth(msg) File "/usr/lib64/python3.9/email/generator.py", line 431, in _handle_text if _has_surrogates(msg._payload) and not self.policy.cte_type=='7bit': File "/usr/lib64/python3.9/email/utils.py", line 57, in _has_surrogates s.encode() AttributeError: 'list' object has no attribute 'encode'
Sep 05 14:17:49 2022 (1331) SHUNTING: 1662376669.3194733+25b74de3b7cd8a28d0c3cf5b6cc6fc582726efec
I can't guess what's happening without access to at least one message which is getting shunted. You can find them in queue/shunt in Mailman's data directory. The exception occurs because that an email can be a header plus a single string payload, or it can be a list of partial payloads (eg, text + attached file), and Mailman is trying to process a list as a string. This could be caused by a problem with the message, and it could be a Mailman or Python bug. It's hard to guess which is more likely because this code is quite old, and this exception is rarely if ever encountered.
Sep 05 14:17:50 2022 (1324) Exception in the HyperKitty archiver: 'NoneType' object has no attribute 'strip' Sep 05 14:17:50 2022 (1324) Traceback (most recent call last): File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman_hyperkitty/__init__.py", line 151, in _archive_message url = self._send_message(mlist, msg) File "/opt/mailman/venv/lib64/python3.9/site-packages/mailman_hyperkitty/__init__.py", line 185, in _send_message self.name, msg['Message-Id'].strip()) AttributeError: 'NoneType' object has no attribute 'strip'
This is saying that some message in HyperKitty has no message-id, which is a required header field in email. For that reason this email is not being normally archived. I think it's unrelated to the shunt error above (different process ID, 1324 v. 1331) because this is about the message header, not the payload.