mailman3 on Rocky 9 is not starting after an OS update and reboot
We are running mailman 3.x in a venv setup using Postgresql. The mailman service hangs during startup and eventually fails with a timeout:
# systemctl status mailman3 × mailman3.service - GNU Mailing List Manager Loaded: loaded (/etc/systemd/system/mailman3.service; enabled; preset: disabled) Active: failed (Result: timeout) since Wed 2024-06-12 13:35:23 UTC; 11s ago Process: 1205 ExecStart=/opt/mailman/venv/bin/mailman start (code=killed, signal=TERM) CPU: 1.019s
Jun 12 13:33:53 <hostname> systemd[1]: Starting GNU Mailing List Manager... Jun 12 13:35:23 <hostname>systemd[1]: mailman3.service: start operation timed out. Terminating. Jun 12 13:35:23 <hostname> systemd[1]: mailman3.service: Failed with result 'timeout'. Jun 12 13:35:23 <hostname> systemd[1]: Failed to start GNU Mailing List Manager. Jun 12 13:35:23 <hostname> systemd[1]: mailman3.service: Consumed 1.019s CPU time.
Searching I found some similar reports where it seemed to be an issue with a stale .lck lock file. But on our system:
- /var/lib/mailman is empty
- /opt/mailman/mm/var/locks is empty
The last entries in /opt/mailman/mm/var/logs/mailman.log is:
2024-06-12 09:23:44 -0400] [2101411] [INFO] Handling signal: term Jun 12 13:23:44 2024 (2101395) Master watcher caught SIGTERM. Exiting. [2024-06-12 13:23:44 +0000] [2101451] [INFO] Worker exiting (pid: 2101451) Jun 12 09:23:44 2024 (2101412) retry runner caught SIGTERM. Stopping. [2024-06-12 13:23:44 +0000] [2101450] [INFO] Worker exiting (pid: 2101450) Jun 12 09:23:44 2024 (2101408) nntp runner caught SIGTERM. Stopping. [2024-06-12 09:23:48 -0400] [2101411] [INFO] Shutting down: Master Jun 12 13:23:50 2024 (2101395) Master stopped
Any help would be appreciated.
Postgres appears to be up., Postfix is up, nginx is up.
The web UI gives me the error:
Something went wrong Mailman REST API not available. Please start Mailman core.
Running "mailman version" hangs for a long time and then returns:
$ mailman version GNU Mailman 3.3.9 (Tom Sawyer)
Running "mailman status" hangs for a long time and then returns:
$ mailman status GNU Mailman is not running
What other logs can be checked for more detail? What possible services or file/dir permissions may have had something changed by the OS updates?
Thanks, David Goldsmith
On Wed, Jun 12, 2024 at 4:57 PM dgoldsmith--- via Mailman-users < mailman-users@mailman3.org> wrote:
We are running mailman 3.x in a venv setup using Postgresql. The mailman service hangs during startup and eventually fails with a timeout:
# systemctl status mailman3 × mailman3.service - GNU Mailing List Manager Loaded: loaded (/etc/systemd/system/mailman3.service; enabled; preset: disabled) Active: failed (Result: timeout) since Wed 2024-06-12 13:35:23 UTC; 11s ago Process: 1205 ExecStart=/opt/mailman/venv/bin/mailman start (code=killed, signal=TERM) CPU: 1.019s
Jun 12 13:33:53 <hostname> systemd[1]: Starting GNU Mailing List Manager... Jun 12 13:35:23 <hostname>systemd[1]: mailman3.service: start operation timed out. Terminating. Jun 12 13:35:23 <hostname> systemd[1]: mailman3.service: Failed with result 'timeout'. Jun 12 13:35:23 <hostname> systemd[1]: Failed to start GNU Mailing List Manager. Jun 12 13:35:23 <hostname> systemd[1]: mailman3.service: Consumed 1.019s CPU time.
Searching I found some similar reports where it seemed to be an issue with a stale .lck lock file. But on our system:
You are talking of an OS update. My guess is that the OS update changed your Python version so what the virtualenv was using isn't there.
-- 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]
On 6/12/24 6:56 AM, dgoldsmith--- via Mailman-users wrote:
We are running mailman 3.x in a venv setup using Postgresql. The mailman service hangs during startup and eventually fails with a timeout:
Can you start Mailman core manually with mailman start
? What happens
when you try to do that?
If that fails, it may be as Odhiambo suggests that the Python version used by your venv no longer exists on your system.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
参加者 (3)
-
dgoldsmith@sans.org
-
Mark Sapiro
-
Odhiambo Washington