SID-02120: WebStatistics Not Working
Status: |
Answered |
TWiki version: |
6.0.0 |
Perl version: |
perl, v5.8.8 |
Category: |
CategoryStatistics |
Server OS: |
Red Hat Enterprise Linux Server release 5.11 |
Last update: |
8 years ago |
Perl Module taken up by Twiki as I can check from configuration screen File::Temp has a version 0.16 . I know that for Statics to work we need to upgrade that to 0.22 version or higher . But due to some restrictions We can't upgrade it .
But on the same server we have File::Temp version 0.22 available at location(qv/wiki/cap-wiki/twiki/lib/CPAN/lib/File/Temp.pm) other than base location(/usr/lib/perl5/5.8.8/File/Temp.pm) .
Can we change some configuration file so that Twiki start using 0.22 version of that module and ignore base version ?
--
Akhil Arya - 2015-11-06
Discussion and Answer
Uncomment
$CPANBASE
in your
twiki/bin/LocalLib.cfg
. This will tell TWiki to use
twiki/lib/CPAN
before the system lib path.
--
Peter Thoeny - 2015-11-06
Thanks Peter Thoeny but $CPANBASE = "/qv/wiki/cap-wiki/twiki/lib/CPAN"; was not there in LocalLib.cfg . And When I added it configure started throwing error
Can't locate Error.pm in @INC (@INC contains: /qv/wiki/local/lib/perl5/5.8.5 /qv/wiki/local/lib/perl5/site_perl/5.8.5 /qv/wiki/local/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /qv/wiki/local/lib64/perl5/5.8.5/x86_64-linux-thread-multi /qv/wiki/v6-wiki/twiki/lib/CPAN/arch /qv/wiki/cap-wiki/twiki/lib/CPAN/5.8.8/x86_64-linux-thread-multi /qv/wiki/v6-wiki/twiki/lib/CPAN/5.8.8 /qv/wiki/cap-wiki/twiki/lib/CPAN /qv/wiki/v6-wiki/twiki/lib . /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at /qv/wiki/cap-wiki/twiki/lib/TWiki/Configure/LANGUAGES.pm line 28, <F> line 1569. BEGIN failed--compilation aborted at /qv/wiki/cap-wiki/twiki/lib/TWiki/Configure/LANGUAGES.pm line 28, <F> line 1569. Compilation failed in require at (eval 82) line 2, <F> line 1569. BEGIN failed--compilation aborted at (eval 82) line 2, <F> line 1569. at /qv/wiki/cap-wiki/twiki/lib/TWiki/Configure/Pluggable.pm line 43 TWiki::Configure::Pluggable::load('LANGUAGES') called at /qv/wiki/cap-wiki/twiki/lib/TWiki/Configure/TWikiCfg.pm line 237 TWiki::Configure::TWikiCfg::_parse('/qv/wiki/cap-wiki/twiki/lib/TWiki.spec', 'TWiki::Configure::Root=HASH(0x15dc0130)', 1) called at /qv/wiki/cap-wiki/twiki/lib/TWiki/Configure/TWikiCfg.pm line 98 TWiki::Configure::TWikiCfg::load('TWiki::Configure::Root=HASH(0x15dc0130)', 1) called at /qv/wiki/cap-wiki/twiki/bin/configure line 750 TWiki::_actionConfigure() called at /qv/wiki/cap-wiki/twiki/bin/configure line 478
--
Akhil Arya - 2015-11-07
My apologies, the
/lib
is missing at the end. In your case:
$CPANBASE = "/qv/wiki/cap-wiki/twiki/lib/CPAN/lib";
--
Peter Thoeny - 2015-11-07
Peter your suggestion worked almost . Well first thanks for it . Now when I tried to update statics I got this error Can't locate object method "seek" via package "File::Temp"
I think that CPAN thing is not properly installed . What do you think about it ?
--
Akhil Arya - 2015-11-07
Not sure. Check the permissions and ownership of
/qv/wiki/cap-wiki/twiki/lib/CPAN/lib/File/Temp.pm
and its parent directories. Check if that module version is larger than 0.18.
Check the crontab. Here is an example for apache user:
59 23 * * * (cd /qv/wiki/cap-wiki/twiki/bin; nice ./statistics >/qv/wiki/cap-wiki/twiki/data/statistics-log.txt 2>&1)
--
Peter Thoeny - 2015-11-09
Temp.pm in CPAN was version 0.2304 and causing problem I downgraded it to 0.22 and then it started worknig . Thanks !!!!
--
Akhil Arya - 2015-11-12
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.