On 3/1/25 13:58, Mark wrote:

I have a MM3 list to whose archive I recently added an mbox file of older emails.

Viewing/searching the archive (Hyperkitty) is working fine.

Downloading archives "for the month"  or "last 30 days" delivers the expected ".mbox.gz" file and those are fine.

However, when I download the "Entire archive" and attempt to gunzip that ".mbox.gz" file I get the error:  " ... unexpected end of file".


?On 2025-03-01 23:04, Mark Sapiro wrote:

The process creating the zip for download times out. You can increase
the timeout. If your wsgi server is Gunicorn, see
https://docs.gunicorn.org/en/stable/settings.html#timeout - for uwsgi
see
https://uwsgi-docs-additions.readthedocs.io/en/latest/Options.html#harakiri

However, it's probably easier to get it in pieces. You can prpbably
get chunks bigger than a month. Look at the URL for a month, e.g. for
Jun, 2005 it will be something like

https://www.example.com/archives/list/<fqdn-listname>/export/<fqdn-listname>-2025-02.mbox.gz?start=2025-01-01&end=2025-02-01

The <fqdn-listname>-2025-02.mbox.gz can be any arbitrary file name.
The start and end parameters determine what's included. E.g. for all
of 2024

https://www.example.com/archives/list/<fqdn-listname>/export/<fqdn-listname>-2024.mbox.gz?start=2024-01-01&end=2025-01-01

Note that the end date is the first date not included, i.e. the day
after the last date included.


Thank you very much Mark, for your detailed advice.

Increasing the timeout from the default of 30 seconds to 360 now sees the entire archive downloading successfully.

# /etc/mailman3/gunicorn.conf
#
bind = ['127.0.0.1:8000']
proc_name = "mailman-web"
chdir = "/opt/mailman/mm"
pidfile = "/opt/mailman/mm/var/gunicorn.pid"
accesslog = "/opt/mailman/mm/var/logs/access.log"
errorlog = "/opt/mailman/mm/var/logs/error.log"
#Added 2025-03-02 to resolve timeout on download full archive.
timeout = 360

$ systemctl daemon-reload
$ systemctl restart mailman3
$ systemctl restart mailmanweb

$ pstree
        ├─gunicorn───gunicorn
        ├─mailman-web───mailman-web─┬─mailman-web
        │                           └─3*[mailman-web───{mailman-web}]






_______________________________________________
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/5S5EKQK2QPE6FPVTFHBFI26HJKR4G46U/

This message sent to arch...@mail-archive.com

Reply via email to