[Mailman-Users] Data version error?

Mark Sapiro mark at msapiro.net
Sat Dec 10 22:03:53 CET 2011

Mark J Bradakis wrote:

>So I go to the mailman/admin webpage, and get a the 'we hit a bug' page.
>The error log shows:
>admin(3764): [----- Mailman Version: 2.1.14 -----]
>admin(3764): [----- Traceback ------]
>admin(3764): Traceback (most recent call last):
>admin(3764):   File "/local/mailman/teamnet/scripts/driver", line 112, 
>in run_main
>admin(3764):     main()
>admin(3764):   File "/local/mailman/teamnet/Mailman/Cgi/admin.py", line 
>65, in main
>admin(3764):     admin_overview()
>admin(3764):   File "/local/mailman/teamnet/Mailman/Cgi/admin.py", line 
>234, in admin_overview
>admin(3764):     mlist = MailList.MailList(name, lock=0)
>admin(3764):   File "/local/mailman/teamnet/Mailman/MailList.py", line 
>130, in __init__
>admin(3764):     self.Load()
>admin(3764):   File "/local/mailman/teamnet/Mailman/MailList.py", line 
>676, in Load
>admin(3764):     self.CheckVersion(dict)
>admin(3764):   File "/local/mailman/teamnet/Mailman/MailList.py", line 
>715, in CheckVersion
>admin(3764):     if self.data_version >= mm_cfg.DATA_FILE_VERSION:
>admin(3764):   File "/local/mailman/teamnet/Mailman/MailList.py", line 
>146, in __getattr__
>admin(3764):     raise AttributeError, name
>admin(3764): AttributeError: data_version
>All the lists config files have data version 98 in them, same as the 
>version in Defaults.py -
>what's going on, is there actually something else wrong?

What's going on here is the admin overview page is instantiating every
list in the installation in order to determine whether or not to list
it on the overview. Presumably, the same error will occur when going
to the mailman/listinfo overview.

The error is that there is at least one lists/LISTNAME/config.pck file
that is corrupt and doesn't have a data_version attribute.

You could try something like

for list in path/to/mailman/lists/* ; do
    echo $list
    path/to/mailman/bin/dumpdb $list/config.pck | grep data_version

to try to find the problem list.

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