Tags:
create new tag
view all tags

Question

I downloaded and installed Twiki about two years ago. It all went relatively smoothly, and we've been using it happily since. However, I went to access it today, and it didn't work. Got a 500 error. In any case, I downloaded and ran the testenv script, which says,

"WARNING: TWiki.cfg is unreadable or has a configuration problem that is causing a Perl error - the following message(s) relate to TWiki.cfg and should help locate the problem.

No such file or directory Can't locate TWiki.cfg in @INC (@INC contains: ../lib C:/Perl/lib C:/Perl/site/lib .) at (eval 1) line 1."

I had a different strange problem the other day. A CGI script that had been working perfectly well for quite a while suddenly stopped working. In investigating the script (which I hadn't written) it was pointing to e:\perl\bin\perl.exe. I changed it to reference c:\ and it worked. I have no idea why the path was wrong, and no idea why it worked for so long but stopped last week. Could something similar to happening with the TWiki?

I am a reasonably technical user, however, there's a lot that I can't recall about the Twiki configuration. I probably know enough to be dangerous... I've been reading through the WindowsInstall doc. I found the TWikiCfgFileNotFound topic, however, my testenv output doesn't indicate that any particular line in Twiki.cfg is at issue. Also, I don't seem to have a setlib.cfg file; perhaps that's due to running an older version of Twiki.

Should I just try upgrading to the latest version of Twiki? Will my topics and user registrations be ok?

I've uploaded the relevant files from my environment. I also ran a perl -w TWiki.cfg, which gave me a lot of errors, which when I checked out the first few, there didn't seem to be anything wrong. How could I get a copy of that output to attach to this topic (if that would be helpful)?

Thanks in advance for any advice or assistance.

Todd

Environment

TWiki version: TWikiRelease01Dec2001
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2k SP4
Web server: Apache (not sure, installed in 9/2002)
Perl version: ActiveState 5.8.2
Client OS: WindowsXP SP1
Web Browser: IE, Firefox 0.9.1

-- ToddChapin - 21 Sep 2004

Answer

Please check your bin/setlib.cfg file, and change the TWiki lib path from a relative path to an absolute one.

-- PeterThoeny - 22 Sep 2004

I don't seem to have a bin/setlib.cfg file. Perhaps that file does not exist in the version of TWiki which I am running? The file doesn't seem to be in the TWiki zip file that I originally installed from.

Thanks.

-- ToddChapin - 22 Sep 2004

Oh, that is an old version of TWiki. You need to edit all TWiki script files and change:
use lib ( '../lib' );
to:
use lib ( 'C:/path/to/your/twiki/lib' );

-- PeterThoeny - 23 Sep 2004

Thank you for the information. I appreciate it and will get started on that. How easy is it to upgrade TWiki, and will all my data be safe? I know that with some softwares, upgrading from a very old version to a very recent version can make data migration an issue.

Thanks again.

Todd

-- ToddChapin - 23 Sep 2004

We make a good effort to keep TWiki compatible with existing data (we had voices to simply provide upgrade scripts but I am against this). So you will not run into issues with your data.

Another question is upgrade. Depending on how much customization you did, it can be easy to more difficult. The latest TWikiRelease01Sep2004 ships with an upgrade script.

-- PeterThoeny - 25 Sep 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg r1 manage 14.8 K 2004-09-21 - 22:11 UnknownUser twiki.cfg
Unknown file formatlog access.log r1 manage 4.3 K 2004-09-21 - 22:08 UnknownUser apache access.log
Unknown file formatlog error.log r1 manage 5.4 K 2004-09-21 - 22:09 UnknownUser apache error log
Unknown file formatconf httpd.conf r1 manage 37.4 K 2004-09-21 - 22:12 UnknownUser apache httpd.conf
Texttxt testenvoutput.txt r1 manage 0.7 K 2004-09-21 - 22:12 UnknownUser output of running the testenv script
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2004-09-25 - 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.