Question
Hi. I'm moving an existing twiki 4.2 installation from a Centos4 to a Centos5 server.
Using rcswrap, I have the same symptoms described on
RevisionSectionsBlankInHistory and
VersionHistoryDoesNotWork
- I can view old revisions
- a diff between 2 revisions is always empty
- creating a new revision return a "failure:123" , leaving a
,topic.txt, and topic.txt.lease files in the web directory
- but I'm not on solaris, rcs diff and all are plain old GNU installed from base rpms.
Context:
- All required perl modules are installed, rcs is version 5.7 (same as the rcs on the Centos4 server)
- selinux is not enforced
- enabled tracing on Sandbox.pm, the commands look OK, as a mater of fact, they work fine on the command line as user apache
- Checked an rechecked the rights on the data store.
- using RcsLite everything works fine.
So... where do I go from there to get rcswrap to work ?
Thanks!
Environment
--
GhozlaneToumi - 08 Oct 2008
Answer
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.
Very odd.
- Are you using an apache accelerator (e.g. mod_perl or speedycgi)? Does the problem go away when you turn it off?
- Did you try fiddling with the rcs parameters, as suggested in RevisionSectionsBlankInHistory?
- Are you sure it's picking up the right
rcs, as suggested by the solution to VersionHistoryDoesNotWork?
--
CrawfordCurrie - 20 Oct 2008
Hi. Thank you for your answer.
I rechecked everything I could think of...
- There is no perl accelerator.
- I'm not on solaris but on a plain linux centos, I'm quite sure the rcs tools are the gnu ones, using the right "diff"
- as for the rcs parameters, I just used the config I had on the old system (centos), and I'm quite sure I didn't change those from default:
$TWiki::cfg{RCS}{initBinaryCmd} = '/usr/bin/rcs -i -t-none -kb %FILENAME|F%';
$TWiki::cfg{RCS}{initTextCmd} = '/usr/bin/rcs -i -t-none -ko %FILENAME|F%';
$TWiki::cfg{RCS}{tmpBinaryCmd} = '/usr/bin/rcs -kb %FILENAME|F%';
$TWiki::cfg{RCS}{diffCmd} = '/usr/bin/rcsdiff -q -w -B -r%REVISION1|N% -r%REVISION2|N% -ko --unified=%CONTEXT|N% %FILENAME|F%';
$TWiki::cfg{RCS}{lockCmd} = '/usr/bin/rcs -l %FILENAME|F%';
$TWiki::cfg{RCS}{unlockCmd} = '/usr/bin/rcs -u %FILENAME|F%';
$TWiki::cfg{RCS}{breaklockCmd} = '/usr/bin/rcs -u -M %FILENAME|F%';
$TWiki::cfg{RCS}{delRevCmd} = '/usr/bin/rcs -o%REVISION|N% %FILENAME|F%';
The OS was installed with a locale, my next step is trying to force the system back to "LANG=C". I don't know if apache is using the system LANG, but in this case, maybe the localized rcs is returning data not grokkable by twiki.
I haven't checked the source if the external tools are called with a LANG environement variable set.
--
GhozlaneToumi - 22 Oct 2008
I am having the same problem, and also have a locale setting (UTF-8). Did changing the locale resolve the problem?
--
TroyHanson - 28 Oct 2008
In fact the locale is set by default to C on Centos 5 (btw can be overriden using
HTTPD_LANG in
/etc/sysconfig/httpd)
So that's not the origin of the problem...
--
GhozlaneToumi - 29 Oct 2008
Sorry, closing this after more than 30 days of inactivity. Please feel free to re-open if needed.
--
PeterThoeny - 10 Dec 2008