Question
Apache has been installed via chroot. The necessary executable file, for perl and revision controll, has been transferred (copyed) under the chroot.
When a new topic is created the version file *,v is not created and of course the version control, the use of diff etc. doesn't work.
When a topic is updated, as for example the TWikiPreferences, no new version is generated.
I would highlight that the problem is not related to the time elapsed during a session of one user. For a test the $editLocktime has been set to 60 second and nothing happened, non version control file is generated for new topic and no new version for old topics
Environment
--
RobertoBernetti - 22 Oct 2004
Answer
See
TWikiDebugging for details on how to get a log of exactly what
RCS commands are being done - may be permission or path based. Seeing the output of
SVNget:bin/testenv
would also be useful - also, please read the
SupportGuidelines and provide details of any error messages, Apache logs, etc.
You might also like to try just enabling
RcsLite, since this doesn't require launching executable programs.
Answer
Using RCSLite Works fine..
But I would like to know why
RcsWrap don't works
Note that the rcs commands launched from shell (same user of apache) works good.
It seem''s that TWiki don't use the rcs commands..
I try anithing poped in my mind: strace, perl -d..
Uncommenting the _traceExec take me this output:
27 Oct 2004 - 10:10 Rcs: "/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
( Error: 1) Output:"/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
27 Oct 2004 - 10:10 Rcs: "/usr/bin/co -q -p1.18 -ko '/twiki/data/Main/WebHome.txt' "
() Output:""
27 Oct 2004 - 10:10 Rcs: "/usr/bin/rlog -r1.18 '/twiki/data/Main/WebHome.txt,v' "
( Error: 1) Output:"/usr/bin/rlog -r1.18 '/twiki/data/Main/WebHome.txt,v' "
27 Oct 2004 - 10:10 Rcs: "/usr/bin/rlog -r1.18 '/twiki/data/Main/WebHome.txt,v' "
( Error: 1) Output:"/usr/bin/rlog -r1.18 '/twiki/data/Main/WebHome.txt,v' "
27 Oct 2004 - 10:17 Rcs: "/usr/bin/rlog -h '/twiki/data/Main/WebHome.txt,v' "
() Output:""
27 Oct 2004 - 10:17 Rcs: "/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
( Error: 1) Output:"/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
27 Oct 2004 - 10:17 Rcs: "/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
( Error: 1) Output:"/usr/bin/rlog -r1.1 '/twiki/data/Main/WebHome.txt,v' "
27 Oct 2004 - 10:17 Rcs: "/usr/bin/co -q -p1.1 -ko '/twiki/data/Main/WebHome.txt' "
() Output:""
Any suggestion?
By MCM.
--
MarcoCasavecchiaM - 27 Oct 2004
Answer
Are you sure
RCS is executable by the apache server? Are you sure it's version 5.7 or later?
If I were you I'd create a little script that executes an
RCS command in the twiki 'bin' directory, for example:
#!/bin/sh
echo "Content-type: text/plain
if /usr/bin/co -q -p1.1 -ko '/twiki/data/Main/WebHome.txt' ; then
echo "OK"
else
echo "Failed"
fi
then invoke it in the browser (if the script is called "marco" then take a TWiki 'view' URL and replace the word 'view' with 'marco'). Scrutinise the output in the browser and error_log.
--
CrawfordCurrie - 16 Nov 2004
Answer
Thank you. The problem was due to a broken symbolic link between sh->bash. In our chroot we do not have "sh" but we use "bash". So without the symbolic link neither the
RCS nor the text body search worked. Now with the link the problem is completly solved.
--
RobertoBernetti - 30 Nov 2004