New Message: Re: config.root bad - can't 'save a copy'

webmaster at userland.com webmaster at userland.com
Mon May 5 08:11:00 PDT 2003


A new message was posted:

Address: http://frontier.userland.com/discuss/msgReader$11779

By: Eric Soroos (eric-ul at soroos.net)

Config.root is corrupted. That is generally regarded as a bad thing.

In order of what I'd try:

1) Pull from a recent backup. if your server doesn't change that quickly, this is probably your best bet.

2) Try to narrow down where the problem is. There is probably one table in config.root that is giving you trouble. Hopefully it's one of the statistics tables and not one of the configuration ones. I have a few methods for this, but generally you want to loop through the whole root and find the first thing that makes it crash, then jettison that table and try saving a copy again.

The following script loops through a table and writes it out to disk - it should dump everything up to the table giving you trouble. It will at least get you in the right area of the root.

on dumpToFile(adr) {
 local {
 theFile =""};
 file.putFileDialog("Where to save...", @thefile);

 file.new(theFile);
 file.open(theFile);

 on tableCallback(adrObject) {
 file.writeLine(theFile,"Begin "+adrObject);
 file.writeLine(theFile,"");
 if typeOf(adrObject^) == tableType {
 return(true)};
 file.write(theFile, string(adrObject^));
 file.writeLine(theFile,"");
 file.writeLine(theFile,"end "+ adrObject);
 file.writeLine(theFile,"");
 file.writeLine(theFile,"");
 return(true)};

 table.visit (adr, @tableCallback);
 file.close(theFile)}

eric

This is a Manila site.. http://manila.userland.com/.




More information about the Frontier-Server mailing list