Discussion:
[Netdot-users] Can't load Perl module Apache2::SiteControl
Bernard Fay
2016-10-14 17:57:15 UTC
Permalink
I manage to have Netdot installed but when comes the time to start httpd on
CentOS 7, I have the following error:

[***@CTSDNS01 netdot]# systemctl status httpd -l
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-10-14 13:24:48 EDT;
47s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12887 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=1/FAILURE)
Process: 9310 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
(code=exited, status=1/FAILURE)
Process: 12885 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
(code=exited, status=1/FAILURE)
Main PID: 12885 (code=exited, status=1/FAILURE)

Oct 14 13:24:48 CTSDNS01 systemd[1]: Starting The Apache HTTP Server...



*Oct 14 13:24:48 CTSDNS01 httpd[12885]: [Fri Oct 14 13:24:48.600681 2016]
[perl:error] [pid 12885] Can't locate Apache2/SiteControl.pm in @INC (@INC
contains: /usr/local/netdot/lib /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .
/etc/httpd) at (eval 18) line 2.\nOct 14 13:24:48 CTSDNS01 httpd[12885]:
[Fri Oct 14 13:24:48.600910 2016] [perl:error] [pid 12885] Can't load Perl
module Apache2::SiteControl for server (null):0, exiting...*

Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service: main process exited,
code=exited, status=1/FAILURE
Oct 14 13:24:48 CTSDNS01 kill[12887]: kill: cannot find process ""
Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service: control process exited,
code=exited status=1
Oct 14 13:24:48 CTSDNS01 systemd[1]: Failed to start The Apache HTTP Server.
Oct 14 13:24:48 CTSDNS01 systemd[1]: Unit httpd.service entered failed
state.
Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service failed.


But make testdeps returns everything ok....




































*[***@CTSDNS01 netdot]# make testdepsTesting for required Perl
modules/usr/bin/perl bin/perldeps.pl <http://perldeps.pl>
testRRDs..............................................okGraphViz..........................................okModule::Build.....................................okCGI...............................................okClass::DBI........................................okClass::DBI::AbstractSearch........................okApache2::Request..................................okHTML::Mason.......................................okApache::Session...................................okURI::Escape.......................................okSQL::Translator...................................okSNMP::Info
2.06...................................okNetAddr::IP
4.042.................................okApache2::AuthCookie...............................okApache2::SiteControl..............................okLog::Dispatch.....................................okLog::Log4perl.....................................okParallel::ForkManager.............................okNet::Patricia
1.20................................okAuthen::Radius....................................okTest::Simple......................................okNet::IRR..........................................okTime::Local.......................................okFile::Spec........................................okNet::Appliance::Session...........................okBIND::Config::Parser..............................okNet::DNS..........................................okText::ParseWords..................................okCarp::Assert......................................okDigest::SHA.......................................okNet::DNS::ZoneFile::Fast..........................okSocket6...........................................okXML::Simple.......................................ok*


Any idea what can be wrong in my installation?
Thanks,
Bernard Fay
2016-10-14 18:27:10 UTC
Permalink
Forget about that, I found my problem...

Sorry for the noise!
Post by Bernard Fay
I manage to have Netdot installed but when comes the time to start httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-10-14 13:24:48 EDT;
47s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 12887 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=1/FAILURE)
Process: 9310 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
(code=exited, status=1/FAILURE)
Process: 12885 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
(code=exited, status=1/FAILURE)
Main PID: 12885 (code=exited, status=1/FAILURE)
Oct 14 13:24:48 CTSDNS01 systemd[1]: Starting The Apache HTTP Server...
*Oct 14 13:24:48 CTSDNS01 httpd[12885]: [Fri Oct 14 13:24:48.600681 2016]
contains: /usr/local/netdot/lib /usr/local/lib64/perl5
/usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .
[Fri Oct 14 13:24:48.600910 2016] [perl:error] [pid 12885] Can't load Perl
module Apache2::SiteControl for server (null):0, exiting...*
Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service: main process exited,
code=exited, status=1/FAILURE
Oct 14 13:24:48 CTSDNS01 kill[12887]: kill: cannot find process ""
Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service: control process
exited, code=exited status=1
Oct 14 13:24:48 CTSDNS01 systemd[1]: Failed to start The Apache HTTP Server.
Oct 14 13:24:48 CTSDNS01 systemd[1]: Unit httpd.service entered failed
state.
Oct 14 13:24:48 CTSDNS01 systemd[1]: httpd.service failed.
But make testdeps returns everything ok....
modules/usr/bin/perl bin/perldeps.pl <http://perldeps.pl>
testRRDs..............................................okGraphViz..........................................okModule::Build.....................................okCGI...............................................okClass::DBI........................................okClass::DBI::AbstractSearch........................okApache2::Request..................................okHTML::Mason.......................................okApache::Session...................................okURI::Escape.......................................okSQL::Translator...................................okSNMP::Info
2.06...................................okNetAddr::IP
4.042.................................okApache2::AuthCookie...............................okApache2::SiteControl..............................okLog::Dispatch.....................................okLog::Log4perl.....................................okParallel::ForkManager.............................okNet::Patricia
1.20................................okAuthen::Radius....................................okTest::Simple......................................okNet::IRR..........................................okTime::Local.......................................okFile::Spec........................................okNet::Appliance::Session...........................okBIND::Config::Parser..............................okNet::DNS..........................................okText::ParseWords..................................okCarp::Assert......................................okDigest::SHA.......................................okNet::DNS::ZoneFile::Fast..........................okSocket6...........................................okXML::Simple.......................................ok*
Any idea what can be wrong in my installation?
Thanks,
Loading...