David Dodell | 17 Aug 2012 04:51

Problems with Moderation

I am running mailman on OSX Lion.

Moderation through the web interface does not work.

If I try to do anything from the web interface (see screenshot) ... I can see a split second of it accessing the
server, and the screen refreshes and goes back to this default of "defer"

Just no actions at all work.

Any idea where I should look ... 

Thank you.

David

------------------------------------------------------
Mailman-Users mailing list Mailman-Users <at> python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mailman-users/gmmu-mailman-users%40m.gmane.org

Mark Sapiro | 21 Aug 2012 03:14
Favicon

Re: Problems with Moderation

David Dodell wrote:

>I am running mailman on OSX Lion.
>
>Moderation through the web interface does not work.
>
>If I try to do anything from the web interface (see screenshot) ... I can see a split second of it accessing
the server, and the screen refreshes and goes back to this default of "defer"
>
>Just no actions at all work.
>
>Any idea where I should look ... 

See the FAQ at <http://wiki.list.org/x/ioA9> (ignore the "keeps asking
me to re-enter my password" part of the title).

Also, view the source of the page and look at the action= URL in the
form tag. Is this the same URL you see in the address bar of the
browser? If not, the issue is probably that of the web server
redirecting the URL and losing the POST data.

This can be fixed by setting DEFAULT_URL_PATTERN appropriately in
mm_cfg.py and running fix_url on the affected lists. See
<http://wiki.list.org/x/mIA9>.

--

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

------------------------------------------------------
(Continue reading)

David Dodell | 16 Sep 2012 05:46

Re: Problems with Moderation

Hi trying to finally follow through on this, and figure it out.

I found my DEFAULT_URL_PATTERN was missing totally in my mm_cfg.py file.

Put that in.

Then ran

python withlist -l -a -r fix_url    within the mailman/bin directory

Loaded my list, said "Locked" and then a bunch of errors.

How do I unlock the list?

David

On Aug 20, 2012, at 6:14 PM, Mark Sapiro <mark <at> msapiro.net> wrote:

> David Dodell wrote:
> 
>> I am running mailman on OSX Lion.
>> 
>> Moderation through the web interface does not work.
>> 
>> If I try to do anything from the web interface (see screenshot) ... I can see a split second of it accessing
the server, and the screen refreshes and goes back to this default of "defer"
>> 
>> Just no actions at all work.
>> 
>> Any idea where I should look ... 
(Continue reading)

Mark Sapiro | 16 Sep 2012 06:02
Favicon

Re: Problems with Moderation

On 9/15/2012 8:46 PM, David Dodell wrote:
> Hi trying to finally follow through on this, and figure it out.
> 
> I found my DEFAULT_URL_PATTERN was missing totally in my mm_cfg.py file.
> 
> Put that in.
> 
> Then ran
> 
> 
> python withlist -l -a -r fix_url    within the mailman/bin directory
> 
> Loaded my list, said "Locked" and then a bunch of errors.
> 
> How do I unlock the list?

First of all, when withlist tells you

Loading list LISTNAME (locked)

It is telling you that it loaded the list named LISTNAME and locked it
because you gave the '-l' option to withlist which tells it to lock the
list which it has to do if it's going to make any changes.

So what were the "bunch of errors"?

Note if the list is really in a locked state and withlist couldn't
acquire the lock, see the FAQ at <http://wiki.list.org/x/noA9>.

--

-- 
(Continue reading)

David Dodell | 16 Sep 2012 06:44

Re: Problems with Moderation


This is the error I'm getting: 

d2net:bin david$ python withlist
-l -a -r fix_url
Importing fix_url...
Running
fix_url.fix_url()...
Loading list axium-consortium-meeting
(locked)
Traceback (most recent call last):
 File "withlist", line 299,
in 
 main()
 File "withlist", line 274, in main
 r = [do_list(listname,
args, func) for listname in Utils.list_names()]
 File "withlist", line
195, in do_list
 m = MailList.MailList(listname, lock=LOCK)
 File
"/usr/share/mailman/Mailman/MailList.py", line 128, in __init__

self.Lock()
 File "/usr/share/mailman/Mailman/MailList.py", line 161, in
Lock
 self.__lock.lock(timeout)
 File
"/usr/share/mailman/Mailman/LockFile.py", line 243, in lock

(Continue reading)

David Dodell | 16 Sep 2012 06:20
Picon

Re: Problems with Moderation

This is the output:

d2net:bin david$ python withlist -l -a -r fix_url
Importing fix_url...
Running fix_url.fix_url()...
Loading list axium-consortium-meeting (locked)
Traceback (most recent call last):
  File "withlist", line 299, in <module>
    main()
  File "withlist", line 274, in main
    r = [do_list(listname, args, func) for listname in Utils.list_names()]
  File "withlist", line 195, in do_list
    m = MailList.MailList(listname, lock=LOCK)
  File "/usr/share/mailman/Mailman/MailList.py", line 128, in __init__
    self.Lock()
  File "/usr/share/mailman/Mailman/MailList.py", line 161, in Lock
    self.__lock.lock(timeout)
  File "/usr/share/mailman/Mailman/LockFile.py", line 243, in lock
    self.__write()
  File "/usr/share/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')
IOError: [Errno 13] Permission denied: '/private/var/mailman/locks/axium-consortium-meeting.lock.d2net.net.46065.0'
d2net:bin david$ 

On Sep 15, 2012, at 09:02 PM, Mark Sapiro <mark <at> msapiro.net> wrote:

On 9/15/2012 8:46 PM, David Dodell wrote:
> Hi trying to finally follow through on this, and figure it out.
> 
> I found my DEFAULT_URL_PATTERN was missing totally in my mm_cfg.py file.
(Continue reading)

David Dodell | 16 Sep 2012 06:39
Picon

Re: Problems with Moderation

This is the output of the error:

d2net:bin david$ python withlist -l -a -r fix_url
Importing fix_url...
Running fix_url.fix_url()...
Loading list axium-consortium-meeting (locked)
Traceback (most recent call last):
  File "withlist", line 299, in <module>
    main()
  File "withlist", line 274, in main
    r = [do_list(listname, args, func) for listname in Utils.list_names()]
  File "withlist", line 195, in do_list
    m = MailList.MailList(listname, lock=LOCK)
  File "/usr/share/mailman/Mailman/MailList.py", line 128, in __init__
    self.Lock()
  File "/usr/share/mailman/Mailman/MailList.py", line 161, in Lock
    self.__lock.lock(timeout)
  File "/usr/share/mailman/Mailman/LockFile.py", line 243, in lock
    self.__write()
  File "/usr/share/mailman/Mailman/LockFile.py", line 422, in __write
    fp = open(self.__tmpfname, 'w')
IOError: [Errno 13] Permission denied: '/private/var/mailman/locks/axium-consortium-meeting.lock.d2net.net.855.0'
d2net:bin david$ 

On Sep 15, 2012, at 09:02 PM, Mark Sapiro <mark <at> msapiro.net> wrote:

On 9/15/2012 8:46 PM, David Dodell wrote:
> Hi trying to finally follow through on this, and figure it out.
> 
> I found my DEFAULT_URL_PATTERN was missing totally in my mm_cfg.py file.
(Continue reading)

Mark Sapiro | 16 Sep 2012 06:47
Favicon

Re: Problems with Moderation

On 9/15/2012 9:39 PM, David Dodell wrote:
> This is the output of the error:
> 
> d2net:bin david$ python withlist -l -a -r fix_url
> Importing fix_url...
> Running fix_url.fix_url()...
> Loading list axium-consortium-meeting (locked)
> Traceback (most recent call last):
>   File "withlist", line 299, in <module>
>     main()
>   File "withlist", line 274, in main
>     r = [do_list(listname, args, func) for listname in Utils.list_names()]
>   File "withlist", line 195, in do_list
>     m = MailList.MailList(listname, lock=LOCK)
>   File "/usr/share/mailman/Mailman/MailList.py", line 128, in __init__
>     self.Lock()
>   File "/usr/share/mailman/Mailman/MailList.py", line 161, in Lock
>     self.__lock.lock(timeout)
>   File "/usr/share/mailman/Mailman/LockFile.py", line 243, in lock
>     self.__write()
>   File "/usr/share/mailman/Mailman/LockFile.py", line 422, in __write
>     fp = open(self.__tmpfname, 'w')
> IOError: [Errno 13] Permission denied:
> '/private/var/mailman/locks/axium-consortium-meeting.lock.d2net.net.855.0'
> d2net:bin david$ 

'david' doesn't have permission to create the lock.

Run the withlist command as root (via sudo) or as a user in Mailman's
group. I think this may be _mailman in Apple's Mailman.
(Continue reading)


Gmane