Question
I tried to upgrade from version 4.0.4-2 to 4.0.5 by extracting upgrade-4.0.5.zip.
After doing this, some essential functions are causing error messages:
Selecting "List topics that start with the letter: S (e.g.)" within
"Search" produces the error message:
"TWiki detected an internal error - please check your TWiki logs and webserver logs for more information.
RCS: path -x,v -h %FILENAME|F% of ...path,v failed: "
The same holds for some other (but not all) letters. The respective files have identical ownership and access rights on the server.
Also, the Search form contained in the Topic SitePermissions returns no result.
The server error log and the twiki error log (warnjjjjmm.txt) contain records like this:
[...] [error] [...] RCS: /usr/bin/rlog -x,v -h %FILENAME|F% of .../TWiki/RenameWeb.txt,v failed: at D:/twikitest/lib/TWiki/Store/RcsWrap.pm line 279., referer: http://twikitest.da.gei/twikitest/bin/view/TWiki/WebSearch
The same (or at least similar) errors are reported for
"History",
"Version compare" and
"Save" after "Edit" indicating the problem could be located at RCSWrap.pm
Note: All this worked without any problem within version 4.0.4-2!
Environment
--
MichaelSchmidt - 02 Nov 2006
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.
You should add much more of your error log messages so we have something to work with.
--
KennethLavrsen - 03 Nov 2006
Ok, I have executed the following steps and extracted all log and error records from the respective files into
Scenario.txt.
The directory listing of the files I have searched for, is attached also. The user name of the process running the webserver is "apacheserver".
The search for files starting with r, s, t and w produced error messages, while searching for files starting with q, u, v, x, y and z produced the expected results (incl. no files found for x and z).
This is all information I could get. HTH
--
MichaelSchmidt - 03 Nov 2006
Please try the following command in the bash shell:
/usr/bin/rlog -x,v -h .../TWiki/RenameWeb.txt,v
where ... is the path to your data directory. It may give some clues.
AFAIK nothing changed in RcsWrap in 4.0.5.
--
CrawfordCurrie - 05 Nov 2006
The rlog command produces the following output:
RCS file: TWikiTest/data/TWiki/RenameWeb.txt,v
Working file: RenameWeb.txt
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2
=============================================================================
Yes, RcsWrap apparently has not changed in 4.0.5. As I figured out, the function checkAccessPermission has got an additional parameter (defined in Acces.pm and Func.pm and used in TWiki.pm, Search.pm, Store.pm etc.).
There may be a side effect which comes to the surface in RcsWrap?
--
MichaelSchmidt - 07 Nov 2006
Nope, that's not related. It looks very much like you have a mixture of windows and cygwin paths that is causing a problem, but it would take some interactive debugging to nail it down any more accurately than that. I have never used
RCS on a PC (I always use
RcsLite) so it's hard to be any more helpful.
Please re-open this question if you are still having this issue or want to report any additional helpful information. For now I am closing unanswered.
--
CrawfordCurrie - 16 Dec 2006
I just had quite a similar problem installing TWiki on
Windows/Cygwin which took me hours to find out (also checking
ErrorSavingTopicRcs and many others about
RCS):
RCS: path -x,v -h %FILENAME|F% of ...path,v failed:
Simple solution:
Unix-like pathnames need to be used on configure page/LocalSite.cfg: i.e.
/twiki/data instead of
c:/twiki/data.
Example extract from LocalSite.cfg:
...
$TWiki::cfg{SafeEnvPath} = '/bin:/usr/bin';
$TWiki::cfg{LocalesDir} = '/twiki4/locale';
$TWiki::cfg{DataDir} = '/twiki4/data';
$TWiki::cfg{TemplateDir} = '/twiki4/templates';
$TWiki::cfg{PubDir} = '/twiki4/pub';
Of course these path's need to be mounted in cygwin as described in
WindowsInstallCookbook:
$ mkdir /twiki4 /c c:/twiki4
$ mount -b -s c:/twiki4 /twiki4
--
ChrisHausen - 03 Jan 2007
Thanks Chris for sharing this!
--
PeterThoeny - 03 Jan 2007