We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>UpgradeTo405CausesErrors (03 Jan 2007, PeterThoeny)
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 have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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 Action Size Date Who Comment
txttxt Scenario.txt manage 9.5 K 03 Nov 2006 - 10:26 MichaelSchmidt Log information for scenario
htmlhtm configure.htm manage 156.6 K 02 Nov 2006 - 13:42 MichaelSchmidt Output of configure script for the environment producing the problems described in this topic
txttxt files_in_scenario.txt manage 44.4 K 03 Nov 2006 - 10:26 MichaelSchmidt directory listing of the files searched for
Topic revision: r8 - 03 Jan 2007 - 19:11:24 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback