Item8368: NatSkinPlugin broken after update to 5563 (2009-11-17)
Current State: No Action Required
After updating NatSkinPlugin
to 5563 (2009-11-17) I see two problems:
- bin/natsearch is no longer executable
- natsearch does not work
The permission in the tar file of bin/natsearch looks ok
# tar tfvz NatSkinPlugin.tgz
-rwxr-xr-x www-data/www-data 1431 2009-09-14 19:54 bin/natsearch
However, after the installation a get the following warning
CGI bin directory/srv/www/foswiki/bin
Warning: natsearch might not be an executable script - please check it (and its permissions) manually.
I had to do manually
chmod 755 bin/natsearch
I see the following errors in the apache log:
[Thu Dec 17 23:38:28 2009] [error] [client 220.127.116.11] mkdir /home/nobody: Permission denied at /usr/lib/perl5/5.10.0/CPAN/HandleConfig.pm line 539, referer: https://wiki.xx/foswiki/bin/configure?action=InstallExtension;repository=Foswiki.org;extension=NatEditPlugin
[Thu Dec 17 23:38:28 2009] [error] [client 18.104.22.168] Installation of DBCachePlugin failed: 3328, referer: https://wiki.xx/foswiki/bin/configure?action=InstallExtension;repository=Foswiki.org;extension=NatEditPlugin
Further natsearch is broken with the new bin/natsearch. I get
The requested URL /foswiki/bin/natsearch/Main/WebHome?limit=100&search=something was not found on this server.
Rolling back to the old bin/natsearch solves the problem
# ll natsearch.bak
-rwxr-xr-x 1 wwwrun www 1431 2009-09-14 19:54 natsearch.bak
# diff natsearch.bak natsearch
< use Foswiki::UI;
< use Foswiki::Plugins::NatSkinPlugin::Search;
< Foswiki::UI::run(\&Foswiki::Plugins::NatSkinPlugin::Search::searchCgi, 'natsearch' => 1);
> use Foswiki ();
> use Foswiki::UI ();
- 18 Dec 2009
Did you update NatSkin
as well? Please run
and save at least once.
- 18 Dec 2009
Yes, all my extension are up-to-date.
I have now re-installed
NatSki and NatSkiPlugin over
The problem still remains.
What do you mean by "run
and save at least once"?
- 04 Jan 2010
Did you click on the "Save changes" button in
- 05 Jan 2010
I'm having exactly the same problem, and yes, I saved my changes. There is an long dependency trail that the auto-installer does not correctly resolve. NatSkinPlugin
depends on NatEditPlugin
which depends on DBCachePlugin
which depends on DBCacheContrib
. Particularly the DB extensions don't install cleanly because CPAN is disabled and Time::ParseDate is often not a standard package. It's a lot of work even for a very good skin. Even after resolving all of these, I'm getting the same error message above from natsearch. Also, natsearch always needs manual execute permissions.
- 07 Jan 2010
Hi. I saw in Support.Question333 that installing NatSkinPlugin is supposed to generate a Config.spec. I'm not seeing lib/NatSkinPlugin/Config.spec. What can I uninstall to try again? NatSearch still isn't working for me, After chmod-ing, ther error in the apache log is: ... Premature end of script headers: natsearch, referer: <URL where I used the search box>.
- 20 Jan 2010
will sort it out with the next release
- 20 Jan 2010
OK. That worked. Thanks!
- 26 Jan 2010