SID-00483: Search error with Twiki
| Status: |
Answered |
TWiki version: |
4.3.1 |
Perl version: |
5.6.1 |
| Category: |
BugsContrib |
Server OS: |
Ubuntu 8.04 |
Last update: |
15 years ago |
Hi Friends,
I installed the 'bugs web' plugin on twiki but when I go to that plugin and click 'More Token Actions' it throws this search error:
TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
path -E -i -l -H -- %TOKEN|U% %FILES|F% Grep for '%META:TOPICPARENT[{].*name=\"(Bugs\.)?WebHome\".*[}]%' returned error
The Apache log displays this error:
/bin/grep -E -i -l -H -- %TOKEN|U% %FILES|F% Grep for '%META:TOPICPARENT[{].*name=\\"(Bugs\\.)?WebHome\\".*[}]%' returned error at /home/ubuntu2/twiki/lib/TWiki/Store/SearchAlgorithms/Forking.pm line 95., referer:
http://192.xxx.x.xxx/twiki/bin/view/Bugs/WebHome
I googled but could not find any solution to the problem. I would appreciate if someone can provide some pointers.I don't think the error is related to the plugin and it looks like a general error to me.
Thanks
Mick
--
MickSmith - 2009-08-14
Discussion and Answer
bump..any clues, anyone?
--
MickSmith - 2009-08-17
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-10-02
Same error for me, on Fedora 10.
--
GabrieleCecchetti - 2010-02-02
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2010-04-05
I was getting this same error whenever I clicked on "More topic actions" even on a fresh page with no content. Lots of Googling led me to try lots of different things (checking file permissions, trying to enable debug, looking for TWiki page names with parentheses or backslhases, etc), but one clue about retyping the command manually led me to this:
# /bin/grep -E -i -l -H -- "dude" /tmp/file
/bin/grep: illegal option -- E
/bin/grep: illegal option -- H
Usage: grep -hblcnsviw pattern file . . .
I'm using
OpenSolaris, and /bin/grep doesn't support the -E and -H options. So tried to find out where I could change TWiki to use /bin/ggrep instead of /bin/grep. I modified lib/LocalSite.cfg here:
$TWiki::cfg{RCS}{EgrepCmd} = '/bin/ggrep -E %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
$TWiki::cfg{RCS}{FgrepCmd} = '/bin/ggrep -F %CS{|-i}% %DET{|-l}% -H -- %TOKEN|U% %FILES|F%';
And all was well.
If you don't have access to a GNU Grep, you might consider removing the unsupported options from these two lines (the -E and -H options in my case).
-E, --extended-regexp
Interpret PATTERN as an extended regular expression
-F, --fixed-strings
Interpret PATTERN as a list of fixed strings, separated
by newlines, any of which is to be matched.
HTH
--
BrianBarbe - 2010-05-24
Thanks for sharing this with the TWiki community. Please consider updating
SolarisInstallCookbook as well.
--
PeterThoeny - 2010-05-24
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.