You are here: Foswiki>Tasks Web>Item10469 (10 Mar 2011, JulianLevens)Edit Attach

Item10469: Topic rename causes error with RegexCacheSearchPlugin

pencil
Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: RegexCacheSearchPlugin
Branches:
Reported By: JulianLevens
Waiting For:
Last Change By: JulianLevens
There's a really stupid bug in my RegexCacheSearchPlugin

On line 584 of RegexCacheSearchPlugin.pm it currently has:
    my $db_btree = new DB_File::HASHINFO ;
Whereas it should be
    my $db_btree = new DB_File::BTREEINFO ;

Alas I'm in no position to fix this properly and checkin a fix, but at least the correction is noted here.

A support note is that the BerkeleyDB can get corrupted, but it only happened the first time yesterday after about 9 months. This caused Internet Error 500 and complaints of possible misconfiguration of the server. There had been not recent server changes and the Wiki had been working throughout the day. Also when the problem occurred some topics loaded fine and others received the above error, so the problem was not really misconfiguration.

DB repair options are:
  1. Use the Berkeley db_dump & db_load utilities to repair it (that worked for us)
  2. Restore a recent backup
  3. Delete the database and the cache will be rebuilt over time, of course you'll lose the speed benefits for a while

-- JulianLevens - 10 Mar 2011

 
Topic revision: r1 - 10 Mar 2011, JulianLevens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy