Mailman Crashes Regularly
![](https://secure.gravatar.com/avatar/473b8863916a9c4737368084462aca88.jpg?s=120&d=mm&r=g)
I'm getting regular mailman crashes every 2-4 weeks. I've had 4 so far. I'm running a centos VPS with mailman 2.1.13.
What is the best way to restart mailman? I've been restarting the entire vps, which obviously is a bad idea. What can I do to prevent this from happening?
Here is the error log entries from when it crashed:
Oct 13 01:30:23 2010 mailmanctl(19680): No child with pid: 3683
Oct 13 01:30:23 2010 mailmanctl(19680): [Errno 3] No such process
Oct 13 01:30:23 2010 mailmanctl(19680): Stale pid file removed.
Oct 13 01:30:23 2010 mailmanctl(19694): Traceback (most recent call last):
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 548, in ?
Oct 13 01:30:23 2010 mailmanctl(19694): main()
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Oct 13 01:30:23 2010 mailmanctl(19694): check_for_site_list()
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Oct 13 01:30:23 2010 mailmanctl(19694): sitelist =
MailList(sitelistname, lock=0)
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Oct 13 01:30:23 2010 mailmanctl(19694): execfile(filename, dict)
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Oct 13 01:30:23 2010 mailmanctl(19694): from
Mailman.MysqlMemberships import MysqlMemberships
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Oct 13 01:30:23 2010 mailmanctl(19694): import MySQLdb
Oct 13 01:30:23 2010 mailmanctl(19694): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Oct 13 01:30:23 2010 mailmanctl(19694): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Oct 13 01:30:23 2010 mailmanctl(19694): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Oct 13 01:30:23 2010 mailmanctl(19694): return
get_provider(package_or_requirement).get_resource_filename(
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Oct 13 01:30:23 2010 mailmanctl(19694):
self._extract_resource(manager, self._eager_to_zip(name))
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Oct 13 01:30:23 2010 mailmanctl(19694): real_path =
manager.get_cache_path(
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Oct 13 01:30:23 2010 mailmanctl(19694): self.extraction_error()
Oct 13 01:30:23 2010 mailmanctl(19694): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Oct 13 01:30:23 2010 mailmanctl(19694): raise err
Oct 13 01:30:23 2010 mailmanctl(19694): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Oct 13 01:30:23 2010 mailmanctl(19694):
Oct 13 01:31:11 2010 mailmanctl(22029): PID unreadable in:
/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
Oct 13 01:31:11 2010 mailmanctl(22029): [Errno 2] No such file or
directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Oct 13 01:31:11 2010 mailmanctl(22029): Is qrunner even running?
Oct 13 01:31:14 2010 mailmanctl(22123): Traceback (most recent call last):
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 548, in ?
Oct 13 01:31:14 2010 mailmanctl(22123): main()
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Oct 13 01:31:14 2010 mailmanctl(22123): check_for_site_list()
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Oct 13 01:31:14 2010 mailmanctl(22123): sitelist =
MailList(sitelistname, lock=0)
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Oct 13 01:31:14 2010 mailmanctl(22123): execfile(filename, dict)
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Oct 13 01:31:14 2010 mailmanctl(22123): from
Mailman.MysqlMemberships import MysqlMemberships
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Oct 13 01:31:14 2010 mailmanctl(22123): import MySQLdb
Oct 13 01:31:14 2010 mailmanctl(22123): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Oct 13 01:31:14 2010 mailmanctl(22123): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Oct 13 01:31:14 2010 mailmanctl(22123): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Oct 13 01:31:14 2010 mailmanctl(22123): return
get_provider(package_or_requirement).get_resource_filename(
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Oct 13 01:31:14 2010 mailmanctl(22123):
self._extract_resource(manager, self._eager_to_zip(name))
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Oct 13 01:31:14 2010 mailmanctl(22123): real_path =
manager.get_cache_path(
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Oct 13 01:31:14 2010 mailmanctl(22123): self.extraction_error()
Oct 13 01:31:14 2010 mailmanctl(22123): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Oct 13 01:31:14 2010 mailmanctl(22123): raise err
Oct 13 01:31:14 2010 mailmanctl(22123): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. Oct 13 01:31:14 2010 mailmanctl(22123):
-- Energy Justice Communities Map Developer - http://www.energyjustice.net/map
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Aaron Kreider wrote:
The best way to restart Mailman depends on whether just mailmanctl or also all the qrunners die. If all the qrunners are gone, you can just run Mailman's "bin/mailmanctl start" or whatever cPanel voodoo starts the Mailman service.
If there are still qrunner processes running when mailmanctl dies, see the FAQ at <http://wiki.list.org/x/_4A9>.
(see below)
Why do you have /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py which imports MysqlMemberships? As far as I know, this is not something that cPanel Mailman does by default?
(see below)
The underlying issue here is that Python's MySQLdb was apparently installed by root in a way that the the Python egg cache directory is not writeable by the Mailman process.
You can get rid of the above errors by simply removing /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py and perhaps any other /usr/local/cpanel/3rdparty/mailman/lists/*/extend.py files, but this will defeat your use of MysqlMemberships.py, but since it doesn't work anyway, and maybe is only installed for the site list, that shouldn't be too much of an issue.
Also, please read the FAQ at <http://wiki.list.org/display/DOC/Mailman+and+CPanel>.
Finally, it is not clear to me that the above error is from the crash. It seems to me it would occur whenever mailmanctl starts. Is this all that's in Mailman's error log? What's in Mailman's qrunner log?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/473b8863916a9c4737368084462aca88.jpg?s=120&d=mm&r=g)
Our last mailman crash was at 11:47pm on Nov 7. Here is the qrunner log:
I looked at our vps to see if we were hitting any resource limits, but I haven't found any problems.
Nov 07 23:47:30 2010 (23778) OutgoingRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:30 2010 (23771) CommandRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:31 2010 (23778) OutgoingRunner qrunner exiting.
Nov 07 23:47:31 2010 (23771) CommandRunner qrunner exiting.
Nov 07 23:47:30 2010 (23776) IncomingRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:30 2010 (23744) Master watcher caught SIGTERM. Exiting.
Nov 07 23:47:30 2010 (23777) NewsRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23779) VirginRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:31 2010 (23776) IncomingRunner qrunner exiting.
Nov 07 23:47:31 2010 (23777) NewsRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23771, sig: None, sts: 15, class: CommandRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23778, sig: None, sts: 15, class: OutgoingRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23779) VirginRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23777, sig: None, sts: 15, class: NewsRunner, slice: 1/1)
Nov 07 23:47:30 2010 (23780) RetryRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23770) BounceRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23767) ArchRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:31 2010 (23780) RetryRunner qrunner exiting.
Nov 07 23:47:31 2010 (23767) ArchRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23776, sig: None, sts: 15, class: IncomingRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23779, sig: None, sts: 15, class: VirginRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23770) BounceRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23767, sig: None, sts: 15, class: ArchRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23780, sig: None, sts: 15, class: RetryRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23770, sig: None, sts: 15, class: BounceRunner, slice: 1/1)
Nov 07 23:49:12 2010 (28002) ArchRunner qrunner started.
Nov 07 23:49:12 2010 (28007) NewsRunner qrunner started.
Nov 07 23:49:12 2010 (28005) IncomingRunner qrunner started.
Nov 07 23:49:12 2010 (28010) VirginRunner qrunner started.
Nov 07 23:49:12 2010 (28011) RetryRunner qrunner started.
Nov 07 23:49:12 2010 (28004) CommandRunner qrunner started.
Nov 07 23:49:12 2010 (28003) BounceRunner qrunner started.
Nov 07 23:49:13 2010 (28009) OutgoingRunner qrunner started.
Nov 08 00:32:15 2010 (28002) ArchRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28002) ArchRunner qrunner exiting.
Nov 08 00:32:15 2010 (27975) Master watcher caught SIGTERM. Exiting.
Nov 08 00:32:15 2010 (28003) BounceRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28007) NewsRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28007) NewsRunner qrunner exiting.
Nov 08 00:32:15 2010 (28005) IncomingRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28009) OutgoingRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28005) IncomingRunner qrunner exiting.
Nov 08 00:32:15 2010 (28009) OutgoingRunner qrunner exiting.
Nov 08 00:32:15 2010 (28010) VirginRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28010) VirginRunner qrunner exiting.
Nov 08 00:32:15 2010 (28004) CommandRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28004) CommandRunner qrunner exiting.
Nov 08 00:32:15 2010 (28011) RetryRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28011) RetryRunner qrunner exiting.
Nov 08 00:32:15 2010 (28003) BounceRunner qrunner exiting.
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28002, sig: None, sts: 15, class: ArchRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28004, sig: None, sts: 15, class: CommandRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28005, sig: None, sts: 15, class: IncomingRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28009, sig: None, sts: 15, class: OutgoingRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28010, sig: None, sts: 15, class: VirginRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28011, sig: None, sts: 15, class: RetryRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28007, sig: None, sts: 15, class: NewsRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master watcher caught SIGTERM. Exiting.
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28003, sig: 15, sts: None, class: BounceRunner, slice: 1/1)
The error log was similar to the last one:
Nov 08 00:36:20 2010 mailmanctl(14175): No child with pid: 27975
Nov 08 00:36:20 2010 mailmanctl(14175): [Errno 3] No such process
Nov 08 00:36:20 2010 mailmanctl(14175): Stale pid file removed.
Nov 08 00:36:20 2010 mailmanctl(14185): Traceback (most recent call last):
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 555, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): main()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Nov 08 00:36:20 2010 mailmanctl(14185): check_for_site_list()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Nov 08 00:36:20 2010 mailmanctl(14185): sitelist =
MailList(sitelistname, lock=0)
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Nov 08 00:36:20 2010 mailmanctl(14185): execfile(filename, dict)
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): from
Mailman.MysqlMemberships import MysqlMemberships
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): import MySQLdb
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Nov 08 00:36:20 2010 mailmanctl(14185): return
get_provider(package_or_requirement).get_resource_filename(
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Nov 08 00:36:20 2010 mailmanctl(14185):
self._extract_resource(manager, self._eager_to_zip(name))
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Nov 08 00:36:20 2010 mailmanctl(14185): real_path =
manager.get_cache_path(
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Nov 08 00:36:20 2010 mailmanctl(14185): self.extraction_error()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Nov 08 00:36:20 2010 mailmanctl(14185): raise err
Nov 08 00:36:20 2010 mailmanctl(14185): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Nov 08 00:36:20 2010 mailmanctl(14185):
Nov 08 00:37:46 2010 mailmanctl(19488): PID unreadable in:
/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
Nov 08 00:37:46 2010 mailmanctl(19488): [Errno 2] No such file or
directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Nov 08 00:37:46 2010 mailmanctl(19488): Is qrunner even running?
Nov 08 00:37:48 2010 mailmanctl(19567): Traceback (most recent call last):
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 555, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): main()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Nov 08 00:37:48 2010 mailmanctl(19567): check_for_site_list()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Nov 08 00:37:48 2010 mailmanctl(19567): sitelist =
MailList(sitelistname, lock=0)
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Nov 08 00:37:48 2010 mailmanctl(19567): execfile(filename, dict)
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): from
Mailman.MysqlMemberships import MysqlMemberships
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): import MySQLdb
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Nov 08 00:37:48 2010 mailmanctl(19567): return
get_provider(package_or_requirement).get_resource_filename(
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Nov 08 00:37:48 2010 mailmanctl(19567):
self._extract_resource(manager, self._eager_to_zip(name))
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Nov 08 00:37:48 2010 mailmanctl(19567): real_path =
manager.get_cache_path(
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Nov 08 00:37:48 2010 mailmanctl(19567): self.extraction_error()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Nov 08 00:37:48 2010 mailmanctl(19567): raise err
Nov 08 00:37:48 2010 mailmanctl(19567): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. Nov 08 00:37:48 2010 mailmanctl(19567):
On 10/15/2010 8:53 AM, Mark Sapiro wrote:
-- Energy Justice Communities Map Developer - http://www.energyjustice.net/map
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Aaron Kreider quoted me and wrote:
The Python MySQLdb package is not installed on your server in a way that it is usable by Mailman.
And it still looks to me as if this error occurs whenever mailmanctl checks for a site list which is every time it starts. You could remove /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py. That would at least get rid of the error every time mailmanctl starts and move it to the instantiation of any list that has the extend.py.
If you want to use MysqlMemberships.py, you will have to install the MySQLdb package in a way that Mailman can use it. I have no clue as to how to properly do this on a cPanel server, but you could try installing it as 'mailman' instead of 'root'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/10/2010 7:18 PM, Aaron Kreider wrote:
Well, possibly the problem is only when mailmanctl instantiates the 'mailman' site list because it runs as root. Try just removing the one /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py file. Then that list will use OldStyleMemberships.py, but since it's not a "user" list, it may be OK that it doesn't use MysqlMemberships.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Aaron Kreider wrote:
The best way to restart Mailman depends on whether just mailmanctl or also all the qrunners die. If all the qrunners are gone, you can just run Mailman's "bin/mailmanctl start" or whatever cPanel voodoo starts the Mailman service.
If there are still qrunner processes running when mailmanctl dies, see the FAQ at <http://wiki.list.org/x/_4A9>.
(see below)
Why do you have /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py which imports MysqlMemberships? As far as I know, this is not something that cPanel Mailman does by default?
(see below)
The underlying issue here is that Python's MySQLdb was apparently installed by root in a way that the the Python egg cache directory is not writeable by the Mailman process.
You can get rid of the above errors by simply removing /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py and perhaps any other /usr/local/cpanel/3rdparty/mailman/lists/*/extend.py files, but this will defeat your use of MysqlMemberships.py, but since it doesn't work anyway, and maybe is only installed for the site list, that shouldn't be too much of an issue.
Also, please read the FAQ at <http://wiki.list.org/display/DOC/Mailman+and+CPanel>.
Finally, it is not clear to me that the above error is from the crash. It seems to me it would occur whenever mailmanctl starts. Is this all that's in Mailman's error log? What's in Mailman's qrunner log?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/473b8863916a9c4737368084462aca88.jpg?s=120&d=mm&r=g)
Our last mailman crash was at 11:47pm on Nov 7. Here is the qrunner log:
I looked at our vps to see if we were hitting any resource limits, but I haven't found any problems.
Nov 07 23:47:30 2010 (23778) OutgoingRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:30 2010 (23771) CommandRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:31 2010 (23778) OutgoingRunner qrunner exiting.
Nov 07 23:47:31 2010 (23771) CommandRunner qrunner exiting.
Nov 07 23:47:30 2010 (23776) IncomingRunner qrunner caught SIGTERM.
Stopping.
Nov 07 23:47:30 2010 (23744) Master watcher caught SIGTERM. Exiting.
Nov 07 23:47:30 2010 (23777) NewsRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23779) VirginRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:31 2010 (23776) IncomingRunner qrunner exiting.
Nov 07 23:47:31 2010 (23777) NewsRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23771, sig: None, sts: 15, class: CommandRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23778, sig: None, sts: 15, class: OutgoingRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23779) VirginRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23777, sig: None, sts: 15, class: NewsRunner, slice: 1/1)
Nov 07 23:47:30 2010 (23780) RetryRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23770) BounceRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:30 2010 (23767) ArchRunner qrunner caught SIGTERM. Stopping.
Nov 07 23:47:31 2010 (23780) RetryRunner qrunner exiting.
Nov 07 23:47:31 2010 (23767) ArchRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23776, sig: None, sts: 15, class: IncomingRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23779, sig: None, sts: 15, class: VirginRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23770) BounceRunner qrunner exiting.
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23767, sig: None, sts: 15, class: ArchRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23780, sig: None, sts: 15, class: RetryRunner, slice: 1/1)
Nov 07 23:47:31 2010 (23744) Master qrunner detected subprocess exit
(pid: 23770, sig: None, sts: 15, class: BounceRunner, slice: 1/1)
Nov 07 23:49:12 2010 (28002) ArchRunner qrunner started.
Nov 07 23:49:12 2010 (28007) NewsRunner qrunner started.
Nov 07 23:49:12 2010 (28005) IncomingRunner qrunner started.
Nov 07 23:49:12 2010 (28010) VirginRunner qrunner started.
Nov 07 23:49:12 2010 (28011) RetryRunner qrunner started.
Nov 07 23:49:12 2010 (28004) CommandRunner qrunner started.
Nov 07 23:49:12 2010 (28003) BounceRunner qrunner started.
Nov 07 23:49:13 2010 (28009) OutgoingRunner qrunner started.
Nov 08 00:32:15 2010 (28002) ArchRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28002) ArchRunner qrunner exiting.
Nov 08 00:32:15 2010 (27975) Master watcher caught SIGTERM. Exiting.
Nov 08 00:32:15 2010 (28003) BounceRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28007) NewsRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28007) NewsRunner qrunner exiting.
Nov 08 00:32:15 2010 (28005) IncomingRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28009) OutgoingRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28005) IncomingRunner qrunner exiting.
Nov 08 00:32:15 2010 (28009) OutgoingRunner qrunner exiting.
Nov 08 00:32:15 2010 (28010) VirginRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28010) VirginRunner qrunner exiting.
Nov 08 00:32:15 2010 (28004) CommandRunner qrunner caught SIGTERM.
Stopping.
Nov 08 00:32:15 2010 (28004) CommandRunner qrunner exiting.
Nov 08 00:32:15 2010 (28011) RetryRunner qrunner caught SIGTERM. Stopping.
Nov 08 00:32:15 2010 (28011) RetryRunner qrunner exiting.
Nov 08 00:32:15 2010 (28003) BounceRunner qrunner exiting.
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28002, sig: None, sts: 15, class: ArchRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28004, sig: None, sts: 15, class: CommandRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28005, sig: None, sts: 15, class: IncomingRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28009, sig: None, sts: 15, class: OutgoingRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28010, sig: None, sts: 15, class: VirginRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28011, sig: None, sts: 15, class: RetryRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28007, sig: None, sts: 15, class: NewsRunner, slice: 1/1)
Nov 08 00:32:15 2010 (27975) Master watcher caught SIGTERM. Exiting.
Nov 08 00:32:15 2010 (27975) Master qrunner detected subprocess exit
(pid: 28003, sig: 15, sts: None, class: BounceRunner, slice: 1/1)
The error log was similar to the last one:
Nov 08 00:36:20 2010 mailmanctl(14175): No child with pid: 27975
Nov 08 00:36:20 2010 mailmanctl(14175): [Errno 3] No such process
Nov 08 00:36:20 2010 mailmanctl(14175): Stale pid file removed.
Nov 08 00:36:20 2010 mailmanctl(14185): Traceback (most recent call last):
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 555, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): main()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Nov 08 00:36:20 2010 mailmanctl(14185): check_for_site_list()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Nov 08 00:36:20 2010 mailmanctl(14185): sitelist =
MailList(sitelistname, lock=0)
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Nov 08 00:36:20 2010 mailmanctl(14185): execfile(filename, dict)
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): from
Mailman.MysqlMemberships import MysqlMemberships
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): import MySQLdb
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Nov 08 00:36:20 2010 mailmanctl(14185): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Nov 08 00:36:20 2010 mailmanctl(14185): return
get_provider(package_or_requirement).get_resource_filename(
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Nov 08 00:36:20 2010 mailmanctl(14185):
self._extract_resource(manager, self._eager_to_zip(name))
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Nov 08 00:36:20 2010 mailmanctl(14185): real_path =
manager.get_cache_path(
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Nov 08 00:36:20 2010 mailmanctl(14185): self.extraction_error()
Nov 08 00:36:20 2010 mailmanctl(14185): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Nov 08 00:36:20 2010 mailmanctl(14185): raise err
Nov 08 00:36:20 2010 mailmanctl(14185): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.
Nov 08 00:36:20 2010 mailmanctl(14185):
Nov 08 00:37:46 2010 mailmanctl(19488): PID unreadable in:
/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid
Nov 08 00:37:46 2010 mailmanctl(19488): [Errno 2] No such file or
directory: '/usr/local/cpanel/3rdparty/mailman/data/master-qrunner.pid'
Nov 08 00:37:46 2010 mailmanctl(19488): Is qrunner even running?
Nov 08 00:37:48 2010 mailmanctl(19567): Traceback (most recent call last):
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 555, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): main()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 367, in main
Nov 08 00:37:48 2010 mailmanctl(19567): check_for_site_list()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/bin/mailmanctl", line 277, in
check_for_site_list
Nov 08 00:37:48 2010 mailmanctl(19567): sitelist =
MailList(sitelistname, lock=0)
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 115, in
__init__
Nov 08 00:37:48 2010 mailmanctl(19567): execfile(filename, dict)
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py", line 5, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): from
Mailman.MysqlMemberships import MysqlMemberships
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/local/cpanel/3rdparty/mailman/Mailman/MysqlMemberships.py", line
49, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): import MySQLdb
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 7, in ?
Nov 08 00:37:48 2010 mailmanctl(19567): File
"build/bdist.linux-x86_64/egg/_mysql.py", line 4, in __bootstrap__
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
Nov 08 00:37:48 2010 mailmanctl(19567): return
get_provider(package_or_requirement).get_resource_filename(
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
Nov 08 00:37:48 2010 mailmanctl(19567):
self._extract_resource(manager, self._eager_to_zip(name))
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
Nov 08 00:37:48 2010 mailmanctl(19567): real_path =
manager.get_cache_path(
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
Nov 08 00:37:48 2010 mailmanctl(19567): self.extraction_error()
Nov 08 00:37:48 2010 mailmanctl(19567): File
"/usr/lib/python2.4/site-packages/setuptools-0.6c12dev_r80622-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
Nov 08 00:37:48 2010 mailmanctl(19567): raise err
Nov 08 00:37:48 2010 mailmanctl(19567): pkg_resources . ExtractionError
: Can't extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg cache:
[Errno 13] Permission denied: '/root/.python-eggs'
The Python egg cache directory is currently set to:
/root/.python-eggs
Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. Nov 08 00:37:48 2010 mailmanctl(19567):
On 10/15/2010 8:53 AM, Mark Sapiro wrote:
-- Energy Justice Communities Map Developer - http://www.energyjustice.net/map
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Aaron Kreider quoted me and wrote:
The Python MySQLdb package is not installed on your server in a way that it is usable by Mailman.
And it still looks to me as if this error occurs whenever mailmanctl checks for a site list which is every time it starts. You could remove /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py. That would at least get rid of the error every time mailmanctl starts and move it to the instantiation of any list that has the extend.py.
If you want to use MysqlMemberships.py, you will have to install the MySQLdb package in a way that Mailman can use it. I have no clue as to how to properly do this on a cPanel server, but you could try installing it as 'mailman' instead of 'root'
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 11/10/2010 7:18 PM, Aaron Kreider wrote:
Well, possibly the problem is only when mailmanctl instantiates the 'mailman' site list because it runs as root. Try just removing the one /usr/local/cpanel/3rdparty/mailman/lists/mailman/extend.py file. Then that list will use OldStyleMemberships.py, but since it's not a "user" list, it may be OK that it doesn't use MysqlMemberships.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Aaron Kreider
-
Mark Sapiro