Re: [Mailman-Users] fix_url error

2006-09-30 Thread Catherine Maxwell
At 11:22 PM 9/29/2006, Mark Sapiro wrote:
What does bin/list_lists report?

It displays the listname there.

What does bin/check_perms run as root report?

It states: No problems found

What are the permissions on the lists/listname directory itself?

drwxrwsr-x  2 mailman  mailman  512 Sep 30 02:49 listname

What does bin/dumpdb lists/listname/config.pck report? (You can elide
all the membership info. In fact, if you get a reasonable looking
report, you can just compare it to that of another list to verify that
it looks good.)

[- start pickle file -]
[- end pickle file -]


All of the reports look fine except the program won't identify that 
the list exists. Conclusion: corrupted config.pck.

So I dug around and found a old config.pck for that list from last 
year and saved it to the lists/listname directory and -- wonders of 
wonders -- the list's webpages are all back including members and 
archives. The configuration needs to be updated but everything else 
is there. :) Now on to enjoy the rest of my weekend.

--Catherine 

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] fix_url error

2006-09-30 Thread Mark Sapiro
Catherine Maxwell wrote:

At 11:22 PM 9/29/2006, Mark Sapiro wrote:

What does bin/dumpdb lists/listname/config.pck report? (You can elide
all the membership info. In fact, if you get a reasonable looking
report, you can just compare it to that of another list to verify that
it looks good.)

[- start pickle file -]
[- end pickle file -]


All of the reports look fine except the program won't identify that 
the list exists. Conclusion: corrupted config.pck.


If you are saying that the two lines

[- start pickle file -]
[- end pickle file -]

were the entire output from bin/dumpdb, then I agree that config.pck
was corrupt.

So I dug around and found a old config.pck for that list from last 
year and saved it to the lists/listname directory and -- wonders of 
wonders -- the list's webpages are all back including members and 
archives. The configuration needs to be updated but everything else 
is there. :) Now on to enjoy the rest of my weekend.


You previously wrote:

These are the files that are on the server:

-rw-rw  1 mailman  mailman  216198 Sep 29 00:41 config.pck
-rw-r-  1 mailman  mailman   93225 Oct  3  2005 config.pck.bak
-rw-rw  1 mailman  mailman  216192 Sep 29 00:41 config.pck.last
-rw-rw  1 mailman  mailman   27421 Sep 28 20:04 digest.mbox
-rw-rw  1 mailman  mailman   11615 Sep 29 00:41 pending.pck
-rw-rw-r--  1 mailman  mailman6430 Sep 29 00:41 request.pck

Is the config.pck.bak from Oct 3 2005 the one you used, or did you find
one more recent than that?

I would be concerned about 2 things. The Oct 3 2005 file is less than
half the size of the 'current' files. This is probably because that
file has a lot fewer list members.

Also, the Sept 29 config.pck and config.pck.last are 6 bytes different
in size. This suggests to me that the config.pck.last was successfully
accessed and updated to produce the corrupt config.pck. Thus, I am
surprised that it too is corrupt, but it does appear to be. Possibly
your power outage caused the corruption 'outside' of Mailman - maybe
some disk cache didn't get flushed.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] fix_url error

2006-09-29 Thread Mark Sapiro
Catherine Maxwell wrote:

I'm getting the following error when I try to run fix_url. Can 
someone tell me what is wrong and how to fix it?


Command line?


Running fix_url.fix_url()...
Loading list listname (locked)
Traceback (most recent call last):
   File bin/withlist, line 297, in ?
 main()
   File bin/withlist, line 275, in main
 r = do_list(listname, args, func)
   File bin/withlist, line 194, in do_list
 m = MailList.MailList(listname, lock=LOCK)
   File /usr/local/mailman/Mailman/MailList.py, line 127, in __init__
 self.Lock()
   File /usr/local/mailman/Mailman/MailList.py, line 164, in Lock
 self.Load()
   File /usr/local/mailman/Mailman/MailList.py, line 640, in Load
 raise Errors.MMCorruptListDatabaseError, e
Mailman.Errors.MMCorruptListDatabaseError: [Errno 2] No such file or 
directory: '/usr/local/mailman/lists/listname/config.db.last'


The lists/listname directory for the listname you provided on the
command line contains no readable (writable) config.pck,
config.pck.last, config.db or config.db.last file. There shouldn't be
a config.db or config.db.last file, but there should be good
config.pck and config.pck.last files.

Do you have permission to write to them?

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] fix_url error

2006-09-29 Thread Mark Sapiro
Catherine Maxwell wrote:

Yes, command line.


Sorry for being cryptic. By command line? I meant what was the
command line you typed?


These are the files that are on the server:

-rw-rw  1 mailman  mailman  216198 Sep 29 00:41 config.pck
-rw-r-  1 mailman  mailman   93225 Oct  3  2005 config.pck.bak
-rw-rw  1 mailman  mailman  216192 Sep 29 00:41 config.pck.last
-rw-rw  1 mailman  mailman   27421 Sep 28 20:04 digest.mbox
-rw-rw  1 mailman  mailman   11615 Sep 29 00:41 pending.pck
-rw-rw-r--  1 mailman  mailman6430 Sep 29 00:41 request.pck


And did you run the withlist -r fix_url command as the mailman user?


Do you know a command to resurrect the list? At this point, Mailman 
is saying that there is no list by that name.


In what context? I.e. what URL or command is reporting no list?

You could try

mv config.pck config.pck.2.bak
mv config.pck.last config.pck

If there is a problem with the config.pck, this may help. It will undo
whatever was done at Sep 29 00:41, but I'm not yet convinced there is
a problem with the config.pck.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] fix_url error

2006-09-29 Thread Mark Sapiro
Please include the list in your replies.

Catherine Maxwell wrote:

At 10:21 PM 9/29/2006, you wrote:
Sorry for being cryptic. By command line? I meant what was the
command line you typed?

Oh.

bin/withlist -l -r fix_url listname -u hostname.com

But that isn't the most of it. All attempts for the list are stating 
that no list by that name. Error logs are stating this (from the same 
timestamp):

Sep 30 03:21:01 2006 (778) couldn't load config file 
/usr/local/mailman/lists/listname/config.pck

Sep 30 03:21:01 2006 (778) couldn't load config file 
/usr/local/mailman/lists/listname/config.pck.last

Sep 30 03:21:01 2006 (778) couldn't load config file 
/usr/local/mailman/lists/listname/config.db
[Errno 2] No such file or directory: 
'/usr/local/mailman/lists/listname/config.db'
Sep 30 03:21:01 2006 (778) couldn't load config file 
/usr/local/mailman/lists/listname/config.db.last
[Errno 2] No such file or directory: 
'/usr/local/mailman/lists/listname/config.db.last'
Sep 30 03:21:01 2006 (778) All listname fallbacks were corrupt, giving up
Sep 30 03:21:01 2006 gate_news(778): Traceback (most recent call last):
Sep 30 03:21:01 2006 gate_news(778):   File 
/usr/local/mailman/cron/gate_news, line 284, in ?
Sep 30 03:21:01 2006 gate_news(778):  main()
Sep 30 03:21:01 2006 gate_news(778):   File 
/usr/local/mailman/cron/gate_news, line 264, in main
Sep 30 03:21:01 2006 gate_news(778):  process_lists(lock)
Sep 30 03:21:01 2006 gate_news(778):   File 
/usr/local/mailman/cron/gate_news, line 199, in process_lists
Sep 30 03:21:01 2006 gate_news(778):  mlist = 
MailList.MailList(listname, lock=0)
Sep 30 03:21:01 2006 gate_news(778):   File 
/usr/local/mailman/Mailman/MailList.py, line 129, in __init__
Sep 30 03:21:01 2006 gate_news(778):  self.Load()
Sep 30 03:21:01 2006 gate_news(778):   File 
/usr/local/mailman/Mailman/MailList.py, line 640, in Load
Sep 30 03:21:01 2006 gate_news(778):  raise 
Errors.MMCorruptListDatabaseError, e
Sep 30 03:21:01 2006 gate_news(778): Mailman.Errors . 
MMCorruptListDatabaseError :  [Errno 2] No such file or directory: '/u
sr/local/mailman/lists/listname/config.db.last'

 These are the files that are on the server:
 
 -rw-rw  1 mailman  mailman  216198 Sep 29 00:41 config.pck
 -rw-r-  1 mailman  mailman   93225 Oct  3  2005 config.pck.bak
 -rw-rw  1 mailman  mailman  216192 Sep 29 00:41 config.pck.last
 -rw-rw  1 mailman  mailman   27421 Sep 28 20:04 digest.mbox
 -rw-rw  1 mailman  mailman   11615 Sep 29 00:41 pending.pck
 -rw-rw-r--  1 mailman  mailman6430 Sep 29 00:41 request.pck


And did you run the withlist -r fix_url command as the mailman user?

I normally just run it as the vroot user.

In what context? I.e. what URL or command is reporting no list?

For example:
bin/list_members latinteach

No such list: latinteach

You could try

mv config.pck config.pck.2.bak
mv config.pck.last config.pck

I tried that. It didn't make any difference.

We had a power outage last night and today we had issues with the 
lists distributing mail and digesting. I think that I have fixed all 
the other lists but this list seems to be the only one with this 
latent problem. I can't figure it out. The messages in the archive 
seem to be in place (at least I can read them with pine). I created a 
new list to work around this but when I try to get the members list, 
it states no such list. So I'm stuck.


What does bin/list_lists report?

What does bin/check_perms run as root report?

What are the permissions on the lists/listname directory itself?

What does bin/dumpdb lists/listname/config.pck report? (You can elide
all the membership info. In fact, if you get a reasonable looking
report, you can just compare it to that of another list to verify that
it looks good.)

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp