create new tag
, view all tags


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.


  • 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 ?



TWiki version: TWikiRelease04x02x01
TWiki plugins: CommentPlugin, EditRowPlugin, EditTablePlugin, EmptyPlugin, InterwikiPlugin, PreferencesPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin, TinyMCEPlugin, TreeBrowserPlugin, TwistyPlugin, WysiwygPlugin
Server OS: Centos 5.2, kernel 2.6.18-92.1.13.el5
Web server: Apache/2.2.3
Perl version: 5.8.8
Client OS:  
Web Browser:  
Categories: Version control

-- GhozlaneToumi - 08 Oct 2008


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.

Very odd.

  1. Are you using an apache accelerator (e.g. mod_perl or speedycgi)? Does the problem go away when you turn it off?
  2. Did you try fiddling with the rcs parameters, as suggested in RevisionSectionsBlankInHistory?
  3. 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

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2008-12-10 - PeterThoeny
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.