Latest upgrade version has not improved matters. When I download, the file is generated but it is ten bytes long and obviously therefore corrupt.
Why am I the only one seeing this error?
What can I do to diagnose it?
Andrew
OK. Here is what I see in mailman-web.log when attempting a download:
[pid: 2244|app: 0|req: 1/1] 59.167.198.231 () {48 vars in 981 bytes} [Fri Sep 6 11:11:45 2019] GET /archives/list/exp@jackrail.org/2019/9/ => generated 63387 bytes in 791 msecs (HTTP/1.1 200) 6 headers in 332 bytes (1 switches on core 0) [pid: 2244|app: 0|req: 2/2] 59.167.198.231 () {48 vars in 1013 bytes} [Fri Sep 6 11:11:47 2019] GET /archives/list/exp@jackrail.org/thread/EFHHXQIOW54KKB2LDN67JRHRUABZ5WDF/ => generated 23870 bytes in 873 msecs (HTTP/1.1 200) 6 headers in 332 bytes (1 switches on core 0) [pid: 2244|app: 0|req: 3/3] 59.167.198.231 () {48 vars in 1112 bytes} [Fri Sep 6 11:11:49 2019] GET /archives/list/exp@jackrail.org/thread/EFHHXQIOW54KKB2LDN67JRHRUABZ5WDF/replies?sort=thread&last_view=1567767799 => generated 4872 bytes in 75 msecs (HTTP/1.1 200) 6 headers in 329 bytes (2 switches on core 0) Traceback (most recent call last): File "/opt/mailman/mm/venv/lib/python3.7/site-packages/HyperKitty-1.3.0-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.3.0-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' [pid: 2244|app: 0|req: 4/4] 59.167.198.231 () {48 vars in 1173 bytes} [Fri Sep 6 11:11:50 2019] GET /archives/list/exp@jackrail.org/export/exp@jackrail.org-EFHHXQIOW54KKB2LDN67JRHRUABZ5WDF.mbox.gz?thread=EFHHXQIOW54KKB2LDN67JRHRUABZ5WDF => generated 0 bytes in 40 msecs (HTTP/1.1 200) 5 headers in 236 bytes (0 switches on core 0)
Andrew
Test email with attachment, please ignore.
On Sat, Sep 7, 2019, at 5:21 PM, Andrew Bernard wrote:
Anybody help?
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On Sat, Sep 7, 2019, at 5:21 PM, Andrew Bernard wrote:
Anybody help?
Can you check Hyperkitty configuration and tell if you have the configuration "HYPERKITTY_ATTACHMENT_FOLDER" set anywhere?
If not, can you set that to some path where Mailman can write to, send an email, and see if Hyperkitty saves attachment there and if downloading works in that case?
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On Sat, Sep 7, 2019, at 8:30 PM, Abhilash Raj wrote:
On Sat, Sep 7, 2019, at 5:21 PM, Andrew Bernard wrote:
Anybody help?
Can you check Hyperkitty configuration and tell if you have the configuration "HYPERKITTY_ATTACHMENT_FOLDER" set anywhere?
If not, can you set that to some path where Mailman can write to, send an email, and see if Hyperkitty saves attachment there and if downloading works in that case?
If my guess is right, you probably have that config value set to a path and the attachments are probably saved to those locations. But, they can't be retrieved when trying to download them.
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
-- thanks, Abhilash Raj (maxking)
On Sat, Sep 7, 2019, at 9:01 PM, Abhilash Raj wrote:
On Sat, Sep 7, 2019, at 8:30 PM, Abhilash Raj wrote:
On Sat, Sep 7, 2019, at 5:21 PM, Andrew Bernard wrote:
Anybody help?
Can you check Hyperkitty configuration and tell if you have the configuration "HYPERKITTY_ATTACHMENT_FOLDER" set anywhere?
If not, can you set that to some path where Mailman can write to, send an email, and see if Hyperkitty saves attachment there and if downloading works in that case?
If my guess is right, you probably have that config value set to a path and the attachments are probably saved to those locations. But, they can't be retrieved when trying to download them.
And, here is an untested patch which I suspect would fix your issue.
https://gitlab.com/mailman/hyperkitty/merge_requests/182/diffs
It is untested, like I said and it says in the MR :)
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
-- thanks, Abhilash Raj (maxking)
-- thanks, Abhilash Raj (maxking)
Are you using Postgres?
On Sep 6, 2019, at 3:30 AM, Andrew Bernard <andrew.bernard@gmail.com> wrote:
Latest upgrade version has not improved matters. When I download, the file is generated but it is ten bytes long and obviously therefore corrupt.
Why am I the only one seeing this error?
What can I do to diagnose it?
Andrew
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
On Sun, Sep 8, 2019, at 5:20 AM, Andrew Bernard wrote:
Indeed.
I was able to reproduce this in a test case and is a bug in Hyperkitty. This should be independent of what database engine you are using but happens when you save attachments to disk (i.e. when HYPERKITTY_ATTACHMENT_FOLDER is set).
It is now fixed in the master branch. See https://gitlab.com/mailman/hyperkitty/merge_requests/182 for the fix.
-- thanks, Abhilash Raj (maxking)
participants (3)
-
Abhilash Raj
-
Andrew Bernard
-
Derek Lambert