mailman won't start - no Defaults module

I'm on a shared server with mailman v2 and when I logged in, it the WHM interface said there was an update - so I clicked the update button that was presented and it updated CPanel. Now the service mailman is not starting.
The error is not finding the module "Defaults" called out on line 49 of this file: /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py
There is a Defaults.py in that same directory.. but I don't know if that is what it wants. I have opened a trouble ticket but while I wait, maybe someone here has a quick answer. Here is the error I'm seeing:
Service Error (XID 75wg2f) The “mailman” service failed to start.
Startup Log Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: Starting mailman services... Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: Traceback (most recent call last): Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: File "/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 106, in <module> Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: from Mailman import mm_cfg Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: File "/usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py", line 49, in <module> Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: from Defaults import * Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: ModuleNotFoundError: No module named 'Defaults' Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: mailman.service: Control process exited, code=exited status=1 Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: mailman.service: Failed with result 'exit-code'. Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: Failed to start mailman services.

Sorry - I was able to fix this when I found this page: https://support.cpanel.net/hc/en-us/community/posts/29645975750423-Tier-Curr...
saying:
sys.path.append('/usr/local/cpanel/3rdparty/mailman/Mailman') was missing in mm_cfg.py , it only had "from Defaults import *", should be
import sys ############################################### # Here's where we get the distributed defaults.
sys.path.append('/usr/local/cpanel/3rdparty/mailman/Mailman') from Defaults import *
################################################## # Put YOUR site-specific settings below this line.
But now I see the archives have stopped collecting for the last month (March). On to another issue...
Jim
On 3/10/25 8:50 PM, Jim Dory wrote:
I'm on a shared server with mailman v2 and when I logged in, it the WHM interface said there was an update - so I clicked the update button that was presented and it updated CPanel. Now the service mailman is not starting.
The error is not finding the module "Defaults" called out on line 49 of this file: /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py
There is a Defaults.py in that same directory.. but I don't know if that is what it wants. I have opened a trouble ticket but while I wait, maybe someone here has a quick answer. Here is the error I'm seeing:
Service Error (XID 75wg2f) The “mailman” service failed to start.
Startup Log Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: Starting mailman services... Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: Traceback (most recent call last): Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: File "/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 106, in <module> Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: from Mailman import mm_cfg Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: File "/usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py", line 49, in <module> Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: from Defaults import * Mar 11 04:26:43 compute.nomekennelclub.com restartsrv_mailman[2272]: ModuleNotFoundError: No module named 'Defaults' Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: mailman.service: Control process exited, code=exited status=1 Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: mailman.service: Failed with result 'exit-code'. Mar 11 04:26:43 compute.nomekennelclub.com systemd[1]: Failed to start mailman services.
participants (1)
-
Jim Dory