[Mailman-Users] Bug in Mailman version 2.1.9

Mark Sapiro mark at msapiro.net
Mon Mar 10 20:16:35 CET 2008


Fabricio Oliveira wrote:
> Hi Mark,
>  
> See attachment file with the log.


Thank you for reposting the logs as an attachment. That is much better.

Here is your log data with my comments interspersed.

 > Log - /usr/local/mailman/logs/error
 >
 > Mar 08 10:48:37 2008 qrunner(1656): Traceback (most recent call last):
 > Mar 08 10:48:37 2008 qrunner(1656): File 
"/usr/local/mailman/bin/qrunner", line 278, in ?
 > Mar 08 10:48:37 2008 qrunner(1656): main()
 > Mar 08 10:48:37 2008 qrunner(1656): File 
"/usr/local/mailman/bin/qrunner", line 238, in main
 > Mar 08 10:48:37 2008 qrunner(1656): qrunner.run()
 > Mar 08 10:48:37 2008 qrunner(1656): File 
"/usr/local/mailman/Mailman/Queue/Runner.py", line 71, in run
 > Mar 08 10:48:37 2008 qrunner(1656): filecnt = self._oneloop()
 > Mar 08 10:48:37 2008 qrunner(1656): File 
"/usr/local/mailman/Mailman/Queue/Runner.py", line 100, in _oneloop
 > Mar 08 10:48:37 2008 qrunner(1656): msg, msgdata = 
self._switchboard.dequeue(filebase)
 > Mar 08 10:48:37 2008 qrunner(1656): File 
"/usr/local/mailman/Mailman/Queue/Switchboard.py", line 150, in dequeue
 > Mar 08 10:48:37 2008 qrunner(1656): fp = open(filename)
 > Mar 08 10:48:37 2008 qrunner(1656): IOError : [Errno 13] Permission 
denied: 
'/usr/local/mailman/qfiles/in/1204984114.6525619+5fb960a623c129aa4c6faf55d72e84188d8bafc6.pck'


This says that IncomingRunner can't read the referenced queue entry 
file.  Based on the permissions you show below, this would seem 
impossible unless IncomingRunner was not running in the mailman group or 
there is some SELinux or other security policy preventing it. This can 
be caused by the runner being manually started or mailmanctl being run 
by a non-root user.


 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.pck insecure string pickle
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.pck.last invalid load key, '¨'.
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.db [Errno 2] No such file or 
directory: '/usr/local/mailman/lists/cartaoberro/config.db'
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.db.last[Errno 2] No such 
file or directory: '/usr/local/mailman/lists/cartaoberro/config.db.last'
 > Mar 08 11:04:45 2008 (1883) All cartaoberro fallbacks were corrupt, 
giving up
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.pckinsecure string pickle
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.pck.lastinvalid load key, '¨'.
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/c artaoberro/config.db[Errno 2] No such file or 
directory: '/usr/local/mailman/lists/cartaoberro/config.db'
 > Mar 08 11:04:45 2008 (1883) couldn't load config file 
/usr/local/mailman/lists/cartaoberro/config.db.last[Errno 2] No such 
file or directory: '/usr/local/mailman/lists/cartaoberro/config.db.last'
 > Mar 08 11:04:45 2008 (1883) All cartaoberro fallbacks were corrupt, 
giving up


This and the error below are the same error from the admin web 
interface. It appears that both the config.pck and config.pck.last for 
the cartaoberro list are corrupt (the config.db* files normally don't 
exist in a mailman 2.1.x installation).


 > Mar 08 11:04:45 2008 admin(1883): 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 > admin(1883): [----- Mailman Version: 2.1.9 -----]
 > admin(1883): [----- Traceback ------]
 > admin(1883): Traceback (most recent call last):
 > admin(1883): File "/usr/local/mailman/scripts/driver", line 101, in 
run_main
 > admin(1883): main()
 > admin(1883): File "/usr/local/mailman/Mailman/Cgi/admin.py", line 75, 
in main
 > admin(1883): admin_overview(_('No such list <em>%(safelistname)s</em>'))
 > admin(1883): File "/usr/local/mailman/Mailman/Cgi/admin.py", line 
233, in admi n_overview
 > admin(1883): mlist = MailList.MailList(name, lock=0)
 > admin(1883): File "/usr/local/mailman/Mailman/MailList.py", line 130, 
in __ini t__
 > admin(1883): self.Load()admin(1883): File 
"/usr/local/mailman/Mailman/MailList.py", line 644, in Load
 > admin(1883): raise Errors.MMCorruptListDatabaseError, e
 > admin(1883): MMCorruptListDatabaseError: [Errno 2] No such file or 
directory: '/ usr/local/mailman/lists/cartaoberro/config.db.last'
 > admin(1883): [----- Python Information -----]
 > admin(1883): sys.version = 2.4.3 (#1, Jul 26 2006, 20:13:39)[GCC 3.4.6]
 > admin(1883): sys.executable = /usr/bin/python
 > admin(1883): sys.prefix = /usr
 > admin(1883): sys.exec_prefix = /usr
 > admin(1883): sys.path = /usr
 > admin(1883): sys.platform = linux2
 > admin(1883): [----- Environment Variables -----]
 > admin(1883): SERVER_SOFTWARE: Apache/1.3.37 (Unix)
 > admin(1883): SCRIPT_NAME: /mailman/admin
 > admin(1883): SERVER_SIGNATURE: <ADDRESS>Apache/1.3.37 Server at 
serverlinux.r evistaoberro.com.br Port 80</ADDRESS>
 > admin(1883):
 > admin(1883): REQUEST_METHOD: GET
 > admin(1883): PATH_INFO: /cartaoberro/logoutadmin(1883): 
SERVER_PROTOCOL: HTTP/1.1
 > admin(1883): QUERY_STRING:
 > admin(1883): HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; 
Windows NT 5 .1; SV1; .NET CLR 1.1.4322)
 > admin(1883): HTTP_CONNECTION: Keep-Alive
 > admin(1883): SERVER_NAME: serverlinux.revistaoberro.com.br
 > admin(1883): REMOTE_ADDR: 192.168.0.2
 > admin(1883): PATH_TRANSLATED: /var/www/htdocs/cartaoberro/logout
 > admin(1883): SERVER_PORT: 80
 > admin(1883): SERVER_ADDR: 200.171.57.41
 > admin(1883): DOCUMENT_ROOT: /var/www/htdocs
 > admin(1883): PYTHONPATH: /usr/local/mailman
 > admin(1883): SCRIPT_FILENAME: /usr/local/mailman/cgi-bin//admin
 > admin(1883): SERVER_ADMIN: root at tree.slackware.lan
 > admin(1883): HTTP_HOST: serverlinux.revistaoberro.com.br
 > admin(1883): REQUEST_URI: /mailman/admin/cartaoberro/logout
 > admin(1883): HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, 
image/pjpeg , application/x-shockwave-flash  application/vnd.ms-excel, 
application/vnd.ms-po
 >
 > I deleted the file 
'/usr/local/mailman/qfiles/in/1204984114.6525619+5fb960a623c129aa4c6faf55d72e84188d8bafc6.pck' 
and reboot the server. See log after reboot:
 >
 > Mar 08 12:03:32 2008 mailmanctl(1114): Traceback (most recent call last):
 > Mar 08 12:03:32 2008 mailmanctl(1114): File 
"/usr/local/mailman/bin/mailmanctl", line 548, in ?
 > Mar 08 12:03:32 2008 mailmanctl(1114): main()
 > Mar 08 12:03:32 2008 mailmanctl(1114): File 
"/usr/local/mailman/bin/mailmanctl", line 390, in main
 > Mar 08 12:03:32 2008 mailmanctl(1114): lock = acquire_lock(force)
 > Mar 08 12:03:32 2008 mailmanctl(1114): File 
"/usr/local/mailman/bin/mailmanctl", line 214, in acquire_lock
 > Mar 08 12:03:32 2008 mailmanctl(1114): lock = acquire_lock_1(force)
 > Mar 08 12:03:32 2008 mailmanctl(1114): File 
"/usr/local/mailman/bin/mailmanctl", line 208, in acquire_lock_1
 > Mar 08 12:03:32 2008 mailmanctl(1114): 
os.unlink(os.path.join(mm_cfg.LOCK_DIR, tempfile))
 > Mar 08 12:03:32 2008 mailmanctl(1114): OSError : [Errno 2] No such 
file or directory: 
'/usr/local/mailman/locks/master-qrunner.serverlinux.1148'
 >


This indicates that possibly mailmanctl is being started twice, or there 
is some other issue with lock files. See 
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.068.htp> 
for information about making sure Mailman is completely shut down, then 
remove all the files from Mailman's locks/ directory and as root, run 
'bin/mailmanctl start' once only.


 > Apache error_log
 >  GATEWAY_INTERFACE: CGI/1.1
 >  REMOTE_PORT: 4322
 >  HTTP_ACCEPT_LANGUAGE: pt-br
 >  HTTP_ACCEPT_ENCODING: gzip, deflate
 >  UNIQUE_ID: R9KXGsirOSkAAAQNA44
 > [Sat Mar 8 11:19:34 2008] [error] [client 192.168.0.2] attempt to 
invoke directory as script: /usr/local/mailman/cgi-bin
 > [Sat Mar 8 11:22:24 2008] [error] [client 192.168.0.2] attempt to 
invoke directory as script: /usr/local/mailman/cgi-bin


These seem to be the result of an Apache misconfiguration. They occur 15 
and 18 minutes respectively after the admin error above. Did you perhaps 
change some Apache ScriptAlias directive in response to the admin error 
above?


 > [Sat Mar 8 11:55:49 2008] [notice] caught SIGTERM, shutting down
 > [Sat Mar 8 11:57:12 2008] [notice] Apache/1.3.37 (Unix) configured -- 
resuming normal operations
 > [Sat Mar 8 11:57:12 2008] [notice] Accept mutex: sysvsem (Default: 
sysvsem)
 >
 > Permissions
 > drwxrwsr-x root mailman mailman/
 > -rwxrwsr-x root mailman 
1204984114.6525619+5fb960a623c129aa4c6faf55d72e84188d8bafc6.pck*
 >


-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list