Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x05
TWiki plugins: see attached configure output
Server OS: Windows 2000
Web server: apache 2.0.55
Perl version: 5.8.7-5 (cygwin)
Client OS: Windows
Web Browser: Firefox
Categories: Version control, Search, Fatal error

-- MichaelSchmidt - 02 Nov 2006

Answer

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.

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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt Scenario.txt r1 manage 9.5 K 2006-11-03 - 10:26 UnknownUser Log information for scenario
HTMLhtm configure.htm r1 manage 156.6 K 2006-11-02 - 13:42 UnknownUser Output of configure script for the environment producing the problems described in this topic
Texttxt files_in_scenario.txt r1 manage 44.4 K 2006-11-03 - 10:26 UnknownUser directory listing of the files searched for
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2007-01-03 - 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.