On 2/5/25 15:59, Thomas Krichel wrote:
## dont't start nntp because library is missing
[runner.nntp]
start: no
ok, but
root@server~# systemctl status mailman3.service
× mailman3.service - Mailman3 server
Loaded: loaded (/usr/lib/systemd/system/mailman3.service; enabled;
preset: enabled)
Active: failed (Result: exit-code) since Wed 2025-02-05 23:36:35 UTC;
9min ago
Duration: 2month 3w 6d 6h 21min 31.400s
Invocation: 746a7d496ddd47f6a63795e55348b6f9
Docs: man:mailman(1)
https://mailman.readthedocs.io/
Process: 416285 ExecStart=/usr/bin/mailman -C /etc/mailman3/mailman.cfg
start --force (code=exited, status=1/FAILURE)
Mem peak: 74.2M
CPU: 1.712s
Feb 05 23:36:34 server mailman3[416285]: File "<frozen
importlib._bootstrap>", line 935, in _load_unlocked
Feb 05 23:36:34 server mailman3[416285]: File "<frozen
importlib._bootstrap_external>", line 1026, in exec_module
Feb 05 23:36:34 server mailman3[416285]: File "<frozen
importlib._bootstrap>", line 488, in _call_with_frames_removed
Feb 05 23:36:34 server mailman3[416285]: File
"/usr/lib/python3/dist-packages/mailman/commands/cli_gatenews.py", line 24, in
<module>
Feb 05 23:36:34 server mailman3[416285]: import nntplib
Feb 05 23:36:34 server mailman3[416285]: ModuleNotFoundError: No module named
'nntplib'
Feb 05 23:36:35 server systemd[1]: mailman3.service: Control process exited,
code=exited, status=1/FAILURE
Feb 05 23:36:35 server systemd[1]: mailman3.service: Failed with result
'exit-code'.
Feb 05 23:36:35 server systemd[1]: Failed to start mailman3.service - Mailman3
server.
Feb 05 23:36:35 server systemd[1]: mailman3.service: Consumed 1.712s CPU time,
74.2M memory peak.
Yes, my suggestion will prevent the nntp runner from running which in
turn will prevent it from calling `mailman gatenews` in it's periodic
task and will prevent it from trying to import nntplib, but it turns out
that the `mailman start` command which is used to start Mailman tries to
get all the components of all the subcommands. See
https://gitlab.com/mailman/mailman/-/blob/master/src/mailman/bin/mailman.py?ref_type=heads#L40-45.
Since there is still a mailman/commands/cli_gatenews.py file,
mailman.utilities.modules.add_components tries to import it so simply adding
```
[runner.nntp]
start: no
```
to mailman.cfg is not sufficient if there is no nntplib module. Sorry
for the confusion.
--
Mark Sapiro <m...@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
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/ZDSU6DO6NZUXL2F2SSWZPA36ZHEKWL7J/
This message sent to arch...@mail-archive.com