[Mailman-Users] ImportError: No module named csq - mailman 2.1.5

Mark Sapiro msapiro at value.net
Mon Jan 17 22:06:33 CET 2005


effebi wrote:

>[Sun, Jan 16, 2005 at 08:41:27AM -0800] - Mark Sapiro scrive:
>> It looks to me as if one of your lists/<listname>/config.pck (list
>> configuration) files is corrupt.
>> 
>> bin/check-db --all --verbose
>> 
>> might help you find which one. If the config.pck is bad, but the
>> config.pck.last is good, just copy the config.pck.last to config.pck.
>> Otherwise, you may need to restore from a backup or delete the list
>> and start over.
>
>ok
>i ran bin/check-db --all --verbose and get this:
>
>Lista: mailman
>   /var/lib/mailman/lists/mailman/config.pck: ok
>   /var/lib/mailman/lists/mailman/config.pck.last: ok
>    [Errno 2] No such file or directory: '/var/lib/mailman/lists/mailman/config.db'
>    [Errno 2] No such file or directory: '/var/lib/mailman/lists/mailman/config.db.last'
>
>and it's true, there's no config.db and config.db.last for any list
>
>i find thru google that config.db isn't necessary but i think this create my problem..

The config.db and config.db.last files are a different format from
older Mailman versions. It is normal to have only config.pck and
config.pck.last and not config.db and config.db.last. This is not the
cause of your problem.

If all your config.pck files are OK for all lists, then I don't know
what the cause would be. I would suggest, that it is possible that the
problem is caused by something wrong with a config.pck file that
check-db isn't finding.

If you are able to stop mailman for a while, you might try the
following:

bin/mailmanctl stop

then rename the lists/ directory e.g.

mv lists temp-rename-lists

and then try visiting https://bootlog.info/mailman/listinfo. If that
works - gives page with no lists but no error - then the problem is
certainly in going through the lists/<listname>/config.pck files to
find the advertised lists. Rename the directory back to lists/

mv temp-rename-lists lists

and then one by one move the <listname> directories elsewhere as in

mv lists/<listname-1> temp-move-<listname-1>

and try going to the listinfo web page again. If you get the error,
either move that one back and move another or just move another until
you find the one that causes the problem.

Note that you have to move the <listname> directories out of the lists/
directory, otherwise, you are just changing the "list name".

Make sure you move all listname directories back into lists/ and do

mailmanctl start

If you have identified a bad list in this way, you might use bin/dumpdb
to try to diagnose what's wrong with it.


--
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