This question about Installation of Foswiki, Configuration: Answered

Many error messages in /bin/configure (pink boxes)

I have upgraded my Foswiki from 1.1.9 to 2.1.4, upgraded all of my extensions and plugins. So far, everything seems to run beautifully (except if there are still some errors which I did not see yet). But when I open /bin/configure, there is a storm of error messages, and I can't locate the cause.

Error messages in /bin/configure (examples):

when starting /bin/configure:

Error

Can't locate object method "checkRE" via package "Foswiki::Configure::Checkers::AccessibleENV" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/AccessibleENV.pm line 10.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/AccessibleENV.pm line 10.
   Foswiki::Configure::Checkers::AccessibleENV::check(Foswiki::Configure::Checkers::AccessibleENV=HASH(0x5605fecdf240), Foswiki::Configure::Value=HASH(0x5605fe2c8630)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::AccessibleENV=HASH(0x5605fecdf240), Foswiki::Configure::Reporter=HASH(0x5605fe28a980)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x5605fe2199a8), Foswiki::Configure::Reporter=HASH(0x5605fe2b2db8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x5605f99614f8), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x5605fe28af38), Foswiki::Response=HASH(0x5605f9961600), undef) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 172
   Foswiki::Contrib::JsonRpcContrib::Server::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x5605fe2af300), HASH(0x5605fe2afd38)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 184
   Foswiki::Contrib::JsonRpcContrib::Server::dispatch(Foswiki::Contrib::JsonRpcContrib::Server=HASH(0x5605fdcc98c0), Foswiki=HASH(0x5605f99614f8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib.pm line 35
   Foswiki::Contrib::JsonRpcContrib::dispatch(Foswiki=HASH(0x5605f99614f8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 374
   Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x5605f960bd00), HASH(0x5605faa22190)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 500
   Foswiki::UI::_execute(Foswiki::Request=HASH(0x5605fa970578), CODE(0x5605fa9ac3b8), "jsonrpc", 1) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 326
   Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x5605fa970578)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Engine/CGI.pm line 100
   Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x5605fa20a070)) called



in bin/configure, general settings, file system paths:
Error

Can't locate object method "guessMajorDir" via package "Foswiki::Configure::Checkers::PubDir" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/PubDir.pm line 16.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/PubDir.pm line 16.
   Foswiki::Configure::Checkers::PubDir::check(Foswiki::Configure::Checkers::PubDir=HASH(0x555ae34a15a8), Foswiki::Configure::Value=HASH(0x555ae2ab38c8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::PubDir=HASH(0x555ae34a15a8), Foswiki::Configure::Reporter=HASH(0x555ae2ab9a18)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x555ae2955e38), Foswiki::Configure::Reporter=HASH(0x555ae2add690)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x555ade189458), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x555ae297ba70), Foswiki::Response=HASH(0x555ade189560), undef) called 



Error

Can't locate object method "guessMajorDir" via package "Foswiki::Configure::Checkers::TemplateDir" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/TemplateDir.pm line 12.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/TemplateDir.pm line 12.
   Foswiki::Configure::Checkers::TemplateDir::check(Foswiki::Configure::Checkers::TemplateDir=HASH(0x56370c9075e0), Foswiki::Configure::Value=HASH(0x56370bf0c600)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::TemplateDir=HASH(0x56370c9075e0), Foswiki::Configure::Reporter=HASH(0x56370be71780)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x56370be70e98), Foswiki::Configure::Reporter=HASH(0x56370bee4548)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x5637075b8428), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x56370bd803f0), Foswiki::Response=HASH(0x5637075b8530), undef) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 172
   Foswiki::Contrib::JsonRpcContrib::Server::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x56370bf07750), HASH(0x56370be73020)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 184
   Foswiki::Contrib::JsonRpcContrib::Server::dispatch(Foswiki::Contrib::JsonRpcContrib::Server=HASH(0x56370b920e40), Foswiki=HASH(0x5637075b8428)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib.pm line 35
   Foswiki::Contrib::JsonRpcContrib::dispatch(Foswiki=HASH(0x5637075b8428)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 374
   Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x563707262d00), HASH(0x563708678de0)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 500
   Foswiki::UI::_execute(Foswiki::Request=HASH(0x5637085c72e8), CODE(0x563708603288), "jsonrpc", 1) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 326
   Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x5637085c72e8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Engine/CGI.pm line 100
   Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563707e60080)) called


/bin/configure, section miscellaneous:


Error

Can't locate object method "checkTreePerms" via package "Foswiki::Configure::Checkers::MimeTypesFileName" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/MimeTypesFileName.pm line 15.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/MimeTypesFileName.pm line 15.
   Foswiki::Configure::Checkers::MimeTypesFileName::check(Foswiki::Configure::Checkers::MimeTypesFileName=HASH(0x563c70be3fe8), Foswiki::Configure::Value=HASH(0x563c7062d9b8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::MimeTypesFileName=HASH(0x563c70be3fe8), Foswiki::Configure::Reporter=HASH(0x563c70227758)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x563c701b6d70), Foswiki::Configure::Reporter=HASH(0x563c7022a0b8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x563c6b9243f8), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x563c70228358), Foswiki::Response=HASH(0x563c6b924500), undef) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 172
   Foswiki::Contrib::JsonRpcContrib::Server::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x563c70250568), HASH(0x563c70227db8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib/Server.pm line 184
   Foswiki::Contrib::JsonRpcContrib::Server::dispatch(Foswiki::Contrib::JsonRpcContrib::Server=HASH(0x563c6fc66ca8), Foswiki=HASH(0x563c6b9243f8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Contrib/JsonRpcContrib.pm line 35
   Foswiki::Contrib::JsonRpcContrib::dispatch(Foswiki=HASH(0x563c6b9243f8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 374
   Foswiki::UI::__ANON__() called at /usr/share/perl5/Error.pm line 421
   eval {...} called at /usr/share/perl5/Error.pm line 413
   Error::subs::try(CODE(0x563c6b5ced00), HASH(0x563c6c9e53e0)) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 500
   Foswiki::UI::_execute(Foswiki::Request=HASH(0x563c6c996e58), CODE(0x563c6c96f7a8), "jsonrpc", 1) called at /srv/www/foswiki/htdocs/lib/Foswiki/UI.pm line 326
   Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563c6c996e58)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Engine/CGI.pm line 100
   Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563c6c1cc080)) called

Error

Can't locate object method "checkTreePerms" via package "Foswiki::Configure::Checkers::MimeTypesFileName" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/MimeTypesFileName.pm line 15.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/MimeTypesFileName.pm line 15.
   Foswiki::Configure::Checkers::MimeTypesFileName::check(Foswiki::Configure::Checkers::MimeTypesFileName=HASH(0x563d79280eb0), Foswiki::Configure::Value=HASH(0x563d78cc5538)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::MimeTypesFileName=HASH(0x563d79280eb0), Foswiki::Configure::Reporter=HASH(0x563d788c09c0)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x563d7884f378), Foswiki::Configure::Reporter=HASH(0x563d788e78b8)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x563d73c74688), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x563d7884f288), Foswiki::Response=HASH(0x563d73c74790), undef) called 

Error

Can't locate object method "showExpandedValue" via package "Foswiki::Configure::Checkers::ScriptUrlPaths::view" at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/ScriptUrlPaths/view.pm line 13.
 at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checkers/ScriptUrlPaths/view.pm line 13.
   Foswiki::Configure::Checkers::ScriptUrlPaths::view::check(Foswiki::Configure::Checkers::ScriptUrlPaths::view=HASH(0x556b06c9e058), Foswiki::Configure::Value=HASH(0x556b06120520)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Checker.pm line 166
   Foswiki::Configure::Checker::check_current_value(Foswiki::Configure::Checkers::ScriptUrlPaths::view=HASH(0x556b06c9e058), Foswiki::Configure::Reporter=HASH(0x556b062a7660)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Configure/Query.pm line 464
   Foswiki::Configure::Query::check_current_value(HASH(0x556b061201c0), Foswiki::Configure::Reporter=HASH(0x556b062a9190)) called at /srv/www/foswiki/htdocs/lib/Foswiki/Plugins/ConfigurePlugin.pm line 154
   Foswiki::Plugins::ConfigurePlugin::__ANON__(Foswiki=HASH(0x556b01953678), Foswiki::Contrib::JsonRpcContrib::Request=HASH(0x556b062a9640), Foswiki::Response=HASH(0x556b01953780), undef) called 

What's happening here had how can I cleanly use configure? Almost every section gives me messages.

As far as I can see, my PerlDependencyReport doesn't tell me anything connected with the Basic Wiki functionalities, but your opinions may differ, so here is the report:

Perl modules used by Foswiki:

CPAN:Win32::Console

Win32::Console is not installed. Optional required on Windows platforms if {UserInterfaceInternationalisation} is enabled in configuration. Possible missing dependency!

Well, yes. My System is a Debian Linux. So I do not need this perl module, correct?

Foswiki extension dependencies:

CPAN:DBD::SQLite

DBD::SQLite 1.54 installed Version 3.0 recommended for Used by: Like Plugin DBD::SQLite version >= 3.0 required-- installed version is 1.54 Possible missing dependency!

__I didn't find a newer Version, neither on CPAN nor on MetaCPAN. Nevermind, I do not use the Like Plugin.__
CPAN:DBI DBI Unknown version installed Version 1.0 required for Used by: Like Plugin DBI version >= 1.0 required-- installed version is 0 Possible missing dependency!
My Version is certainly not Zero. It is the newest perl module package for my Debian Distro. But why isn't it identified? On the other hand, I don't really need it anyway.
PageOptimizerPlugin

Foswiki::Plugins::PageOptimizerPlugin is not installed. Used by: Nat Skin, Nat Skin Plugin Possible missing dependency!

I do not use the Nat Skin, and this plugin garbles my page tops, so I left it out.
SecurityHeadersPlugin

Foswiki::Plugins::SecurityHeadersPlugin 1.01 installed Version 2.00 optional for Used by: Nat Skin, Nat Skin Plugin Foswiki::Plugins::SecurityHeadersPlugin version >= 2.00 required-- installed version is 09 Sep 2016 Possible missing dependency!

__Since I don't use NatSkin, no harm done. But I wonder ... I have installed the latest Version from foswiki.org. Can this be connected to the storm of errors in configure?__
WorkflowPlugin

Foswiki::Plugins::WorkflowPlugin 1.17 installed Version 1.44 optional for Used by: Classification Plugin Foswiki::Plugins::WorkflowPlugin version >= 1.44 required-- installed version is 1 Aug 2017 Possible missing dependency!

__I have installed the latest Version from Foswiki.org, removed it, downloaded it anew and reinstalled it, still I get this error. Can this be connected to the storm of errors in configure?__
CPAN:Image::Magick

Image::Magick Unknown version installed Version 6.2.4.5 required for Used by: Image Plugin, Solr Plugin Image::Magick version >= 6.2.4.5 required-- installed version is 0 Possible missing dependency!

__My Version is certainly not Zero. It is the newest Version for my distro, and the Image Plugin works fine.__
My Wiki site is installed on a Debian Server (Version: Stretch, upgraded from Wheezy)

-- BirgitNietsch - 30 Jan 2018

How did you upgrade your Foswiki from 1.1.x? Did you do a completely fresh install of 2.1.5, Install all desired extensions, and only migrate the data/pub webs (excluding System)? Or did you try to do an in-place upgrade. With this many errors in the configure checkers, it almost appears as though some of it is older 1.1.x code trying to run in the 2.1.x system.

Regarding dependencies, None of them are related to configure issues. The "Zero" versions is a bug in the Dependency checker which sometimes has issues with detecting the actual installed version. It looks like you might have NatSkin* installed, even though not used. You might be best to remove them if you don't intend to use them.

If you did try an in-place upgrade, we strongly recommend that you do a fresh 2.1.5 install, then install all your desired extensions, and then follow the data migration procedure to convert to utf-8. The best way to do the utf-8 conversion is by using the CharsetConverterContrib. (Though don't do this part twice. Once you convert to utf-8, you should not do that part twice.)

-- GeorgeClark - 30 Jan 2018

Thanks for this hint, it was indeed very helpful because I have now found my mistake and was able to correct it. What I did was installing the new version of foswiki, Setting it up from scratch and then copying my old foswiki files without overwriting any existing files. Afterwards, I re-installed the newest versions of all Plugins and Contribs. I thought this would preserve my wiki setup, but this approach led to those error messages because I also copied deprecated code into my new installation. I have now replaced lib/Foswiki/Configure with the contents of this directory from the new Foswiki-tgz. The error messages do not appear any more and my problem seems to be solved.

-- BirgitNietsch - 31 Jan 2018
 

QuestionForm edit

Subject Installation of Foswiki, Configuration
Extension
Version Foswiki 2.1.4
Status Answered
Related Topics UpgradeGuide
Topic revision: r4 - 31 Jan 2018, BirgitNietsch
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy