On Fri, Jun 21, 2024 at 9:47 AM Mark <imark@posteo.net> wrote:
Hi,
I have a problem with digests not being sent daily (periodically).
Mailman 3.3.9 installed in virtualenv
Enable Digests = YES Send Digest Periodically = YES Digest size threshold = 0
Cron is set and is running. An error report (below) is generated and emailed.
The last line in the error report says "FileNotFoundError: [Errno 2] No such file or directory ...".
Setting the list's folder to 777 didn't help.
/opt/mailman is owned by the right user:group (or NO??) and so doesn't require to be accessed by others, IMHO, so that move of 777 is just dangerous, if not useless.
Any clues on where to start looking for a solution would be greatly
appreciated.
Thanks, Mark
/////////////////////////////////////// CRON IS SET: /////////////////////////////////////// su mailman (venv) mailman:/$ crontab -e ... 5 6 * * * /opt/mailman/venv/bin/mailman digests --periodic ...
/////////////////////////////////////// CRON RUNS: /////////////////////////////////////// # tail -100 /var/log/cron.log
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ does your MM3 write logs to /var (outside the venv)??
... 2024-06-21T06:05:01.815948+00:00 deu CRON[3105464]: (mailman) CMD (/opt/mailman/venv/bin/mailman digests --periodic) ...
/////////////////////////////////////// ERROR REPORT EMAILED BY CRON: ///////////////////////////////////////
Traceback (most recent call last): File "/opt/mailman/venv/bin/mailman", line 8, in <module> sys.exit(main()) ^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/mailman/bin/mailman.py", line 69, in invoke return super().invoke(ctx) ^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/mailman/venv/lib/python3.11/site-packages/mailman/commands/cli_digests.py",
line 126, in digests maybe_send_digest_now(mlist, force=True) File "/opt/mailman/venv/lib/python3.11/site-packages/mailman/app/digests.py", line 106, in maybe_send_digest_now os.rename(mailbox_path, mailbox_dest) FileNotFoundError: [Errno 2] No such file or directory: *<================================================== Does the two files below exist? Can you show their permissions/ownership?* '/opt/mailman/mm/var/lists/LISTNAME.LISTDOMAIN/digest.mmdf' -> '/opt/mailman/mm/var/lists/LISTNAME.LISTDOMAIN/digest.252.14.mmdf'
I not sure what the answer is, until I go RTFM, but I would not expect the files to exist if there have been no posts to the list.
I hope this: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/thread/C... can help you think about the issue.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html]