Tags:
create new tag
view all tags

Question

When i perform a search on "all public webs", i get the following error:

Could not perform search. Error was: /usr/local/bin/egrep -i -l -H -- %TOKEN|U% %FILES|F% Grep for '\btest\b' returned error

it's the same error regardless of using /bin/grep or the newer version of grep i installed (as above) while trying to fix this. this only began after we upgraded recently from 4.0.0. It doesn't matter what the search string is. i do not get this error when searching without selecting 'all public webs'.

there are no errors in twiki's logs or system (apache) logs.

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: CentOS 5.2 in a xen instance
Web server: apache 2.2.3
Perl version: 5.8.8
Client OS: Vista Home Premium 32 bit
Web Browser: Firefox 3
Categories: Search

-- PaulTheodoropoulos - 23 Sep 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

-- LorettaFarrell - 21 Oct 2008

I am having the exact same error with TWiki4x02 under HP-UX 11..I'm think it's related to data migration from our old Bejing version into twiki4. My live site ( migrated data) has the issue where as my default test site ( no data migrated) does not have this issue. Can anyone shed any light on this, I have about 100 engineers not happy right now. Even a tidbit on how to track this down..what files may be causing this or any response at all from support would be much appreciated

-- LorettaFarrell - 21 Oct 2008

Try to set the expert option {RCS}{SearchAlgorithm} from Forking to PurePerl, just to see, if the grep tool itself has a problem. Next thing, I would check are the file permissions and ownerships.

Just for comparison: these are my egrep and fgrep settings:

{RCS}{EgrepCmd} /bin/grep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%
{RCS}{FgrepCmd} /bin/grep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%

-- OliverKrueger - 22 Oct 2008

Yes turning off forking has fixed the issue on my live site. Funny it works on my test site though same path etc..In any case I'll leave it off.:) Thanks very much for your support effort on this issue Oliver!

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-10-28 - LorettaFarrell
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.