create new tag
, view all tags

SID-02355: LDAPContrib plugin pre-requisite DB_File::Lock issue

Status: Answered Answered TWiki version: Perl version: 5.26.2
Category: Server OS: CentOS 7, 3.10.0-693.el7.x86_64 Last update: 6 minutes ago

I had decided to build TWiki from the ground up VS using the VM appliance. Installing TWiki itself had gone well and it is up and running. I had also done a past install for another site using the VM appliance and that setup went well also. I installed LDAPcontrib on the VM appliance version and all went well after installing a few missing pre-reqs and I was able to start using AD Authentication.

However, with my recent install from scratch, I'm running in to an issue with the DB_File::Lock pre-req. When trying to install the LDAPContrib plugin, it complains it cannot find DB_File.pm. I have gone through and installed DB_File and DB_File::Lock and they both installed without issue. I can navigate to its locations and can see DB_File.pm in the folder. I also checked the @INC path and the paths are in there. However, LDAPContrib still complains it can't find it.

All other cpan modules installed and have been recognized just fine by other plugins. Any ideas?


Checking dependency on DB_File::Lock.... * LdapContrib depends on cpan package DB_File::Lock >=0.05 which is described as "Required" But when I tried to find it I got this error:

Can't locate DB_File.pm

This module is available from the CPAN archive (http://www.cpan.org). You can download and install it from here. The module will be installed to wherever you configured CPAN to install to.

Error: Installer returned errors: mkdir /CPAN: Permission denied at /usr/share/perl5/CPAN/HandleConfig.pm line 595. at /usr/share/perl5/vendor_perl/File/Path.pm line 156. File::Path::_mkpath('HASH(0x3839d10)', 'ARRAY(0x3b04218)') called at /usr/share/perl5/vendor_perl/File/Path.pm line 114 File::Path::mkpath('/CPAN') called at /usr/share/perl5/CPAN/HandleConfig.pm line 595 CPAN::HandleConfig::make_new_config() called at /usr/share/perl5/CPAN/HandleConfig.pm line 586 CPAN::HandleConfig::load('CPAN::HandleConfig') called at /usr/share/perl5/CPAN.pm line 991 CPAN::exists('CPAN=HASH(0x38abe80)', 'CPAN::Module', 'DB_File::Lock') called at /usr/share/perl5/CPAN/Shell.pm line 1408 CPAN::Shell::expand_by_method('CPAN::Shell', 'CPAN::Module', 'ARRAY(0x1d10480)', 'DB_File::Lock') called at /usr/share/perl5/CPAN/Shell.pm line 1325 CPAN::Shell::expand('CPAN::Shell', 'Module', 'DB_File::Lock') called at tools/extender.pl line 261 TWiki::Extender::satisfy('HASH(0x3844d88)') called at tools/extender.pl line 924 TWiki::Extender::_install('ARRAY(0x384ae70)', 'LdapContrib') called at tools/extender.pl line 1057 TWiki::Extender::install('http://twiki.org/p/pub/Plugins', 'LdapContrib', 'LdapContrib', 'MANIFEST', 'data/TWiki/LdapContrib.txt,0644,Documentation topic.\x{a}lib/TWik...', 'DEPENDENCIES', 'Authen::SASL,>=2.00,1,cpan,Optional\x{a}DB_File::Lock,>=0.05,1,cp...') called at /var/www/twiki/LdapContrib_installer line 105 require /var/www/twiki/LdapContrib_installer called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 177 eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x127b878)') called at /var/www/twiki/bin/configure line 691 TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 461 at /var/www/twiki/lib/CGI/Carp.pm line 353. CGI::Carp::realdie('mkdir /CPAN: Permission denied at /usr/share/perl5/CPAN/Handl...') called at /var/www/twiki/lib/CGI/Carp.pm line 443 CGI::Carp::die('mkdir /CPAN: Permission denied at /usr/share/perl5/CPAN/Handl...') called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 179 eval {...} called at /var/www/twiki/lib/TWiki/Configure/UIs/EXTEND.pm line 175 TWiki::Configure::UIs::EXTEND::ui('TWiki::Configure::UIs::EXTEND=HASH(0x127b878)') called at /var/www/twiki/bin/configure line 691 TWiki::_actionInstallExtension() called at /var/www/twiki/bin/configure line 461

-- Christopher Crowe - 2018-04-23

Discussion and Answer

It seems to be an issue going through the extension installer. When I run the install via command line, it can find all the dependencies just fine and the plugin will install. I had to do this with ldapcontrib, ldapcontribadminPlugin and ldapNGPlugin. All 3 installed fine via command line. However, when i go look in in the extension installer, it doesn't show they are installed, still shows "Install".

What's more interesting is that when i went to install LdapContribAdminPlugin via cmd line it stated it couldn't find JQueryPlugin and asked if I wanted to install it at that point. Even though I had already ran the "Upgrade" from the extension installer and it installed without issue.

This triggered me to go back and test others i had issues with and sure enough, running via command line worked. If there was a package it couldn't find it asked if i wanted to install it at that time. Whereas through the extension installer page it just fails and states it can't find it.

I forgot to list the TWiki version. I'm using 6.2

-- Christopher Crowe - 2018-04-23

Sorry, you can delete this. I was missing the path in @inc. I had misread the paths thinking the needed one was in there.

-- Christopher Crowe - 2018-04-23

Just in case anyone else runs in to this post. The mistake I made was installing all the perl modules as root. While you can still make that work by adding in the new perl paths, it's best to be logged in as a regular user and sudo cpan. Then install all of your modules. This will place them in an already configured path in @INC.

-- Christopher Crowe - 2018-04-23

      Change status to:
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.
Status Answered
Title LDAPContrib plugin pre-requisite DB_File::Lock issue

TWiki version

Server OS CentOS 7, 3.10.0-693.el7.x86_64
Web server Apache 2.4.6
Perl version 5.26.2
Browser & version Chrome, IE, Edge
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2018-04-23 - ChristopherCrowe
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.