[Mailman-Users] Error in lockfile cleanup

alex wetmore alex at phred.org
Wed Dec 29 00:57:39 CET 1999


Today the filetable on my machine filled up, which gave mailman some issues.
It didn't properly cleanup some lock files and this caused all other
operations to fail.

Here are the relavent portions of the error log file:
Dec 28 14:04:39 1999 post: Traceback (innermost last):
post:   File "/usr2/local/mailman/scripts/post", line 45, in ?
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 62, in __init__
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 804, in Load
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 1373, in Lock
post:   File "/usr2/local/mailman/Mailman/LockFile.py", line 200, in lock
post:   File "/usr2/local/mailman/Mailman/LockFile.py", line 156, in __read
post: IOError :  (23, 'Too many open files in system')
Dec 28 14:24:06 1999 post: Traceback (innermost last):
post:   File "/usr2/local/mailman/scripts/post", line 45, in ?
post:      mlist = MailList.MailList(sys.argv[1])
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 62, in __init__
post:      self.Load()
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 804, in Load
post:      self.Lock()
post:   File "/usr2/local/mailman/Mailman/MailList.py", line 1373, in Lock
post:      self.__lock.lock()
post:   File "/usr2/local/mailman/Mailman/LockFile.py", line 245, in lock
post:      os.unlink(self.__tmpfname)
post: os . error :  (2, 'No such file or directory')

Known issue?  Has the code around line 245 not been fully tested?

My workaround was to remove all lockfiles manually.  The list is running
happily now.

System details:
FreeBSD 2.2.2 (maxusers set to 10 when this occured, I just up'd it to 20...
yes I know that 2.2.2 is crusty)
Python 1.5 built with GCC 2.7.2.1
Mailman 1.1

thanks,
alex





More information about the Mailman-Users mailing list