[Mailman-Users] Mailman under Cygwin - won't add list

Mark Sapiro msapiro at value.net
Wed Dec 21 15:57:59 CET 2005


Ben wrote:
>
>Now, when I try to add a list, I get a python error!
>
>$ newlist --urlhost=ahualoa.net --emailhost=ahualoa.net friends
>ben at ahualoa.net
>Initial friends password:
>Traceback (most recent call last):
>  File "/usr/local/mailman/bin/newlist", line 254, in ?
>    main()
>  File "/usr/local/mailman/bin/newlist", line 196, in main
>    mlist.Create(listname, owner_mail, pw)
>  File "/usr/local/mailman/Mailman/MailList.py", line 488, in Create
>    self.__lock.lock()
>  File "/usr/local/mailman/Mailman/LockFile.py", line 243, in lock
>    self.__write()
>  File "/usr/local/mailman/Mailman/LockFile.py", line 422, in __write
>    fp = open(self.__tmpfname, 'w')
>IOError: [Errno 2] No such file or directory:
>'/usr/local/mailman/locks/<site>.lock.LittleGuy.2992.0'
>
>I have no idea why it is trying to create this lock file, nor why it
>would be unable to do so.  The permissions are all normal:

The MailList.Create() method needs to obtain a lock for the create
process. Unfortunately, the name of the 'site' lock is not a valid
Windows name. Thus on Cygwin, you need to patch MailList.py similarly
to

--- mailman-2.1.6/Mailman/MailList.py	2005-02-15 16:21:41
+++ mailman-mas/Mailman/MailList.py	2005-10-15 14:29:56
@@ -267,7 +267,7 @@
         # need to reload, otherwise... we do.
         self.__timestamp = 0
         self.__lock = LockFile.LockFile(
-            os.path.join(mm_cfg.LOCK_DIR, name or '<site>') + '.lock',
+            os.path.join(mm_cfg.LOCK_DIR, name or '_site_') + '.lock',
             # TBD: is this a good choice of lifetime?
             lifetime = mm_cfg.LIST_LOCK_LIFETIME,
             withlogging = mm_cfg.LIST_LOCK_DEBUGGING)

-- 
Mark Sapiro <msapiro at value.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