Further to my previos queries about download failures - the generated file is corrupt, I turned up debugging and I now see this on the threads that don't download.
[pid: 25261|app: 0|req: 27/27] 59.167.198.231 () {48 vars in 1198 bytes} [Sat Aug 17 08:55:15 2019] GET /archives/list/jackrail@jackrail.org/export/jackrail@jackrail.org-CKOK7BEELMHIFF2MTPUZXQXQYZZGWF3D.mbox.gz?thread=CKOK7BEELMHIFF2MTPUZXQXQYZZGWF3D => generated 0 bytes in 55 msecs (HTTP/1.1 200) 5 headers in 241 bytes (0 switches on core 0) Traceback (most recent call last): File "/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.2.3-py3.7.egg/hyperkitty/views/mlist.py", line 327, in stream_mbox msg = email.as_message() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.2.3-py3.7.egg/hyperkitty/models/email.py", line 188, in as_message subtype=mimetype[1], filename=attachment.name) File "/usr/lib/python3.7/email/message.py", line 1147, in add_attachment self._add_multipart('mixed', *args, _disp='attachment', **kw) File "/usr/lib/python3.7/email/message.py", line 1135, in _add_multipart part.set_content(*args, **kw) File "/usr/lib/python3.7/email/message.py", line 1162, in set_content super().set_content(*args, **kw) File "/usr/lib/python3.7/email/message.py", line 1092, in set_content content_manager.set_content(self, *args, **kw) File "/usr/lib/python3.7/email/contentmanager.py", line 35, in set_content handler = self._find_set_handler(msg, obj) File "/usr/lib/python3.7/email/contentmanager.py", line 58, in _find_set_handler raise KeyError(full_path_for_error) KeyError: 'builtins.NoneType'
What is this saying?
Andrew [Somewhat perplexed at why Mailman 3 is behaving so badly for me...]
As a possible clue, I use the filesystem to store attachments. For some reason I found that using Postgres if they are stored in the database they don't download in the Hyperkitty view mode for a post, although listed as present.
Could this be a bug relating to being unable to package up attachments if they are in the filesystem?
Andrew
On 8/17/19 6:53 PM, Andrew Bernard wrote:
As a possible clue, I use the filesystem to store attachments. For some reason I found that using Postgres if they are stored in the database they don't download in the Hyperkitty view mode for a post, although listed as present.
Is this perhaps <https://gitlab.com/mailman/hyperkitty/issues/247>, although I don't store attachments in the file system?
Could this be a bug relating to being unable to package up attachments if they are in the filesystem?
In my case even though I can't retrieve the attachment via the link in the HyperKitty thread view, if I download the thread mbox, there is no issue and the attachment is there.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Andrew Bernard
-
Mark Sapiro