Tags:
create new tag
view all tags

Question

I recently migrated twiki to Linux host from a solaris host. In the Linux[new] host the table contents are not displayed. My doubts are that something is going wrong in the SEARCH twiki variabe used. But the page is working in my old host. I can give you the twiki logs if required.

Environment

-- DineshChandrasekar - 01 Oct 2008

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.

Possibly a TWiki upgrade version mismatch issue. When you migrate data, do not copy the TWiki web.

-- PeterThoeny - 07 Nov 2008

Thanks for your post Peter. By Twiki web, do you mean folders other than data and pub?

-- DineshChandrasekar - 17 Nov 2008

Specifically, don't copy twiki/data/TWiki and twiki/pub/TWiki.

-- PeterThoeny - 17 Nov 2008

in the warning file I am seeing this. Is it some clue about perl?

| 17 Nov 2008 - 07:23 | Insecure directory in $ENV{PATH} while running with -T switch at /path/to/twiki/lib//TWiki/Sandbox.pm line 359.

Probably duing the call to egrep, this error occurs.

-- DineshChandrasekar - 17 Nov 2008

In insecure directory, set this in configure (or twiki/lib/LocalSite.cfg) :

$TWiki::cfg{SafeEnvPath} = '/bin:/usr/bin';

I am not clear on what is not working. %TOC% or?

-- PeterThoeny - 17 Nov 2008

The code which is not working is in %<nop>SEARCH% which is used to populate tables defined by piping symbols. But then after trying our your first suggestion of not to copy TWiki web [ still the same error], I tired looking into warning file generated. This had the insecure directory error.

-- DineshChandrasekar - 18 Nov 2008

Configured $TWiki::cfg{SafeEnvPath} = '/bin:/usr/bin' . But still the same insecure directory error. Will this error affect populating the tables using %SEARCH% function?

-- DineshChandrasekar - 18 Nov 2008

First few lines of the warning file

| 18 Nov 2008 - 02:21 | Insecure directory in $ENV{PATH} while running with -T switch at /Path/to/twiki/lib//TWiki/Sandbox.pm line 359. TWiki::Sandbox::sysCommand('TWiki::Sandbox=HASH(0x814630)','/usr/bin/egrep -l -H -- %TOKEN|U% %FILES|F%','TOKEN','[T]opicClassification.*value\=.*[P]atchReleasesHVUni"','FILES','ARRAY(0x127b0f0)') called at /Path/tp//twiki/lib//TWiki/Store/RcsFile.pm line 349

-- DineshChandrasekar - 18 Nov 2008

This looks like a version mismatch issue. Remove twiki/lib/LocalSite.cfg, run configure and reconfigure the settings.

-- PeterThoeny - 18 Nov 2008

Thanks a ton Peter!! It worked like magic!! Appreciate your help in this.

-- DineshChandrasekar - 18 Nov 2008

Change status to:
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2008-11-18 - DineshChandrasekar
 
  • 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.