Discussion:
[Netdot-devel] [Netdot - Bug #1904] (New) Cannot start apache2 with Netdot::Mason
r***@osl.uoregon.edu
2016-08-05 03:56:34 UTC
Permalink
Issue #1904 has been reported by Dracula Lai.

----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2016-09-09 16:18:56 UTC
Permalink
Issue #1904 has been updated by Terry Newton.


I am also experiencing this issue and am available to help troubleshoot, please help!
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3364

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2016-10-06 04:09:36 UTC
Permalink
Issue #1904 has been updated by _KUL _KUL.


A similar problem!

Source (1.0.7) downloaded here:
https://github.com/cvicente/Netdot/tree/master/lib/Netdot

Linux dfo-zabbix 4.7.0-1-amd64 #1 SMP Debian 4.7.5-1 (2016-09-26) x86_64 GNU/Linux
apache2 - 2.4.23-4 - amd64
libapache2-mod-perl2 - 2.0.9-6+b1 - amd64

make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok

Interesting observation, if the file /etc/apache2/sites-enabled/netdot_apache2_local.conf to enable the option use Netdot::Mason; between the tags <Perl>, the web server will not start and will generate an error time-out 20 seconds. But if you leave the option use Netdot::Mason; and the file
/usr/local/netdot/lib/Netdot/Mason.pm comment lines use Netdot::UI; and $ui = Netdot::UI->new(); the server to start successfully, but in the transition browser to the address url/netdot will error
*Forbidden
You don't have permission to access /netdot/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.*
browser to the address url/netdot/login.html will error *System error*

Already ran out of ideas how to solve the problem ...
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3368

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2016-10-17 04:08:25 UTC
Permalink
Issue #1904 has been updated by _KUL _.


who knows where to look for the problem?
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3369

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2016-11-01 04:56:50 UTC
Permalink
Issue #1904 has been updated by _KUL _.


Very interesting ...
if you run
*systemctl restart apache2*
apache2 will not start and will report an error "The apache2 instance did not start within 20 seconds. Please read the log files to discover problems ... (warning)"

but if you *remove the description netdot site* in apache2, then *start apache2*, then *add the netdot site* in apache2, and make *+reload+ apache2* (instead of restart), then +it will work+!
*a2dissite netdot_apache24_local.conf*
*systemctl restart apache2.service*
*a2ensite netdot_apache24_local.conf*
*systemctl +reload+ apache2*

but *if you now restart apache2* (or he will restart after a reboot of the server), apache2 *will not start* ...
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3370

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2016-12-16 15:29:56 UTC
Permalink
Issue #1904 has been updated by Lukasz Grzesiak.


I installed yesterday fresh copy of Ubuntu 16.04 LTS and was trying to install Netdot 1.07 but failed. I'm also experienced the same problem with starting Apache2. Is there any chance to resolve this issue?

----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3371

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-02-01 13:49:16 UTC
Permalink
Issue #1904 has been updated by Simon S.


Upgraded Ubuntu 14.04 LTS to 16.04 LTS running Netdot 1.07 experiencing the exact same problem, reproducable like _KUL_ described. No idea how to solve, went back to 14.04 LTS and Netdot is running again.
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3375

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 12:03:08 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


I also see what appears to be the same problem under 16.04, however I can nail it down to a crash in mod_perl

(1) using strace

<pre>
***@netdot:~# strace -f apache2ctl start
...
stat("/usr/share/perl5/DynaLoader.pmc", 0x7fff98fdbe50) = -1 ENOENT (No such file or directory)
stat("/usr/share/perl5/DynaLoader.pm", 0x7fff98fdbd80) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pmc", 0x7fff98fdbe50) = -1 ENOENT (No such file or directory)
stat("/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm", {st_mode=S_IFREG|0644, st_size=10748, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/perl/5.22/DynaLoader.pm", O_RDONLY) = 6
ioctl(6, TCGETS, 0x7fff98fdbb20) = -1 ENOTTY (Inappropriate ioctl for device)
lseek(6, 0, SEEK_CUR) = 0
read(6, "# Generated from DynaLoader_pm.P"..., 8192) = 8192
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7f8c8bbaf610} ---
chdir("/etc/apache2") = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER|SA_INTERRUPT, 0x7f8c9ebee390}, {SIG_DFL, [], SA_RESTORER|SA_RESETHAND, 0x7f8c9ebee390}, 8) = 0
kill(3128, SIGSEGV) = 0
rt_sigreturn({mask=[]}) = 140241879816448
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_USER, si_pid=3128, si_uid=0} ---
+++ killed by SIGSEGV (core dumped) +++
</pre>

(2) Using gdb

First copy /usr/sbin/apache2ctl to a temporary file, and edit it:

<pre>
--- /usr/sbin/apache2ctl 2016-03-19 09:48:35.000000000 +0000
+++ z 2017-03-21 11:43:41.119719371 +0000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -x
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
@@ -140,7 +140,7 @@
# ssl_scache shouldn't be here if we're just starting up.
# (this is bad if there are several apache2 instances running)
rm -f ${APACHE_RUN_DIR:-/var/run/apache2}/*ssl_scache*
- $HTTPD ${APACHE_ARGUMENTS} -k $ARGV
+ gdb $HTTPD # ${APACHE_ARGUMENTS} -k $ARGV
ERROR=$?
;;
</pre>

Then:

<pre>
***@netdot:~# ./z start
...
(gdb) run -k start -X
Starting program: /usr/sbin/apache2 -k start -X
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007fffe44c3610 in ?? ()
(gdb) bt
#0 0x00007fffe44c3610 in ?? ()
#1 0x00007ffff3c4edc7 in Perl_op_convert_list () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#2 0x00007ffff3c60797 in Perl_utilize () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#3 0x00007ffff3c94b5d in Perl_yyparse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#4 0x00007ffff3d1d774 in ?? () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#5 0x00007ffff3d2812b in Perl_pp_require () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#6 0x00007ffff3cdefa6 in Perl_runops_standard () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#7 0x00007ffff3c64752 in Perl_eval_sv () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#8 0x00007ffff400f5d5 in modperl_require_module () from /usr/lib/apache2/modules/mod_perl.so
#9 0x00007ffff4006380 in ?? () from /usr/lib/apache2/modules/mod_perl.so
#10 0x00007ffff3d19ac1 in Perl_leave_scope () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#11 0x00007ffff3c6af77 in perl_parse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#12 0x00007ffff4006a33 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#13 0x00007ffff40069c3 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#14 0x00007ffff4006e06 in modperl_init () from /usr/lib/apache2/modules/mod_perl.so
#15 0x00007ffff4006f76 in modperl_hook_init () from /usr/lib/apache2/modules/mod_perl.so
#16 0x00007ffff400a514 in modperl_cmd_perldo () from /usr/lib/apache2/modules/mod_perl.so
#17 0x00005555555a83b6 in ?? ()
#18 0x00005555555aab2d in ap_walk_config ()
#19 0x00005555555abe5d in ap_process_config_tree ()
#20 0x000055555558709f in main ()
(gdb)
</pre>

But I am stumped as to where to go from here.

The bug is slightly similar to http://stackoverflow.com/questions/9328787/mod-perl-causing-apache-segmentation-fault-why
but making the corresponding change makes no difference:

<pre>
--- netdot_apache24_local.conf.orig 2017-03-21 11:47:27.406235345 +0000
+++ netdot_apache24_local.conf 2017-03-21 11:48:09.766706321 +0000
@@ -26,9 +26,11 @@
#LoadModule apreq_module /usr/lib/apache2/modules/mod_apreq2.so

# Add Netdot's libraries to @INC
-PerlSwitches -I/usr/local/netdot/lib
+#PerlSwitches -I/usr/local/netdot/lib

<Perl>
+use lib qw( /usr/local/netdot/lib );
+
# Set up the Mason handler and global variables and import modules.
use Netdot::Mason;

</pre>

It may have to go to the mod_perl people: https://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults

I am also unable to test outside of Apache:

<pre>
***@netdot:~# perl -I/usr/local/netdot/lib -e 'use Netdot::Mason;'
Can't locate object method "request" via package "Apache" at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 594.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
</pre>

Could it be a bug in HTML::Mason::ApacheHandler? But Ubuntu has 1.56 which as far as I can tell is the latest.

<pre>***@netdot:~# dpkg-query -l | grep mason
ii libhtml-mason-perl 1:1.56-1 all HTML::Mason Perl module
</pre>
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3378

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 12:09:51 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


After digging through HTML/Mason/ApacheHandler.pm, I can see why it doesn't load, and I can frig Netdot::Mason to load like this:

<pre>
***@netdot:~# MOD_PERL=2.0.9 perl -I/usr/local/netdot/lib -e 'use Netdot::Mason; use Netdot::SiteControlLoginWrapper;'
Loading Apache2::Request at runtime. You could increase shared memory between Apache processes by preloading it in your httpd.conf or handler.pl file
***@netdot:~#
</pre>

So the problem is something else.
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3379

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 12:17:40 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


Aside: KUL's workaround works for me (but this has to be done each time the netdot server/VM/container is restarted)

<pre>
***@netdot:~# a2disconf netdot
Conf netdot disabled.
To activate the new configuration, you need to run:
service apache2 reload
***@netdot:~# service apache2 restart
***@netdot:~# a2enconf netdot
Enabling conf netdot.
To activate the new configuration, you need to run:
service apache2 reload
***@netdot:~# service apache2 reload
***@netdot:~# ps auxwww | grep apache
root 4129 0.0 8.4 491160 176192 ? Ss 12:13 0:00 /usr/sbin/apache2 -k start
www-data 4224 0.0 8.1 778172 170524 ? Sl 12:13 0:00 /usr/sbin/apache2 -k start
www-data 4225 0.0 8.1 778172 170524 ? Sl 12:13 0:00 /usr/sbin/apache2 -k start
root 4283 0.0 0.0 11284 892 ? S+ 12:13 0:00 grep --color=auto apache
</pre>

----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3380

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 13:15:45 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


Added some debug symbols:

<pre>
***@netdot:~# apt-get install apache2-dbg libapr1-dbg libaprutil1-dbg libapache2-mod-perl2-dev libapache-db-perl
</pre>

And I get a *slightly* better debug output:

<pre>
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe44c3610 in ?? ()
(gdb) bt
#0 0x00007fffe44c3610 in ?? ()
#1 0x00007ffff3c4edc7 in Perl_op_convert_list () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#2 0x00007ffff3c60797 in Perl_utilize () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#3 0x00007ffff3c94b5d in Perl_yyparse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#4 0x00007ffff3d1d774 in ?? () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#5 0x00007ffff3d2812b in Perl_pp_require () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#6 0x00007ffff3cdefa6 in Perl_runops_standard () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#7 0x00007ffff3c64752 in Perl_eval_sv () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#8 0x00007ffff400f5d5 in modperl_require_module () from /usr/lib/apache2/modules/mod_perl.so
#9 0x00007ffff4006380 in ?? () from /usr/lib/apache2/modules/mod_perl.so
#10 0x00007ffff3d19ac1 in Perl_leave_scope () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#11 0x00007ffff3c6af77 in perl_parse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#12 0x00007ffff4006a33 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#13 0x00007ffff40069c3 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#14 0x00007ffff4006e06 in modperl_init () from /usr/lib/apache2/modules/mod_perl.so
#15 0x00007ffff4006f76 in modperl_hook_init () from /usr/lib/apache2/modules/mod_perl.so
#16 0x00007ffff400a514 in modperl_cmd_perldo () from /usr/lib/apache2/modules/mod_perl.so
#17 0x00005555555a83b6 in invoke_cmd (cmd=0x7ffff4231590, parms=***@entry=0x7fffffffe410,
mconfig=0x7ffff7f87a28,
args=0x7ffff7f63ab8 "# Set up the Mason handler and global variables and import modules.\nuse Netdot::Mason;\n\n# Override SiteControl's login method\nuse Netdot::SiteControlLoginWrapper;\n")
at config.c:879
#18 0x00005555555aab2d in ap_walk_config_sub (section_vector=0x7ffff7fbb6f0, parms=0x7fffffffe410,
current=0x7ffff7f63b60) at config.c:1313
#19 ap_walk_config (current=0x7ffff7f63b60, parms=***@entry=0x7fffffffe410,
section_vector=0x7ffff7fbb6f0) at config.c:1346
#20 0x00005555555abe5d in ap_process_config_tree (s=<optimized out>, conftree=<optimized out>,
p=0x7ffff7fee028, ptemp=<optimized out>) at config.c:2063
#21 0x000055555558709f in main (argc=4, argv=0x7fffffffe658) at main.c:739
(gdb)
</pre>

Unfortunately there doesn't appear to be a libapache2-mod-perl2-dbg :-(
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3381

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 13:25:25 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


I tried removing the @<Perl>@ section and using PerlModule instead:

<pre>
# Add Netdot's libraries to @INC
PerlSwitches -I/usr/local/netdot/lib

# Set up the Mason handler and global variables and import modules.
PerlModule Netdot::Mason

# Override SiteControl's login method
PerlModule Netdot::SiteControlLoginWrapper
</pre>

But still crashes, backtrace slightly different.

<pre>
Program received signal SIGSEGV, Segmentation fault.
0x00007fffe44c3610 in ?? ()
(gdb) bt
#0 0x00007fffe44c3610 in ?? ()
#1 0x00007ffff3c4edc7 in Perl_op_convert_list () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#2 0x00007ffff3c60797 in Perl_utilize () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#3 0x00007ffff3c94b5d in Perl_yyparse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#4 0x00007ffff3d1d774 in ?? () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#5 0x00007ffff3d2812b in Perl_pp_require () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#6 0x00007ffff3cdefa6 in Perl_runops_standard () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#7 0x00007ffff3c64752 in Perl_eval_sv () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#8 0x00007ffff400f5d5 in modperl_require_module () from /usr/lib/apache2/modules/mod_perl.so
#9 0x00007ffff4006380 in ?? () from /usr/lib/apache2/modules/mod_perl.so
#10 0x00007ffff3d19ac1 in Perl_leave_scope () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#11 0x00007ffff3c6af77 in perl_parse () from /usr/lib/x86_64-linux-gnu/libperl.so.5.22
#12 0x00007ffff4006a33 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#13 0x00007ffff40069c3 in modperl_startup () from /usr/lib/apache2/modules/mod_perl.so
#14 0x00007ffff4006e06 in modperl_init () from /usr/lib/apache2/modules/mod_perl.so
#15 0x00007ffff4006f76 in modperl_hook_init () from /usr/lib/apache2/modules/mod_perl.so
#16 0x00005555555a9323 in ap_run_open_logs (pconf=0x7ffff7fee028, plog=0x7ffff7fbc028,
ptemp=0x7ffff7fb6028, s=0x7ffff7fbf470) at config.c:160
#17 0x000055555558710e in main (argc=4, argv=0x7fffffffe658) at main.c:759
</pre>
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3382

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-21 14:38:01 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


It's possible to turn KUL's workaround into a patch on /etc/init.d/apache2

<pre>
--- apache2.orig 2017-03-21 13:36:56.712133397 +0000
+++ apache2 2017-03-21 13:37:35.928572194 +0000
@@ -159,8 +159,12 @@
fi

if apache_conftest ; then
+ # Utterly horrible workaround for https://osl.uoregon.edu/redmine/issues/1904
+ a2disconf netdot
$APACHE2CTL start
apache_wait_start $?
+ a2enconf netdot
+ $APACHE2CTL graceful
return $?
else
APACHE2_INIT_MESSAGE="The apache2$DIR_SUFFIX configtest failed."
</pre>
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3383

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-24 11:28:25 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


FYI, I had some other problems under 16.04 which I'm documenting here in case they are helpful to anyone else.

(1) Trying to add a device via the web interface failed. No UDP packets sent, and I see:

<pre>
SNMP::Info::_validate_autoload_method(sysServices) Unable to resolve method. SNMP::Info::_validate_autoload_method(sysDescr) Unable to resolve method. <both again>

Device::_get_snmp_session: Cannot connect to 100.68.100.254. Tried communities: xxxxxxxx
</pre>

Cause: permissions on /etc/snmp/snmp.conf which were

<pre>
# ls -l /etc/snmp/snmp.conf
-rw-r----- 1 root snmp 2454 Mar 21 13:47 /etc/snmp/snmp.conf
</pre>

and hence not readable to www-data. Fixed by chmod +r.

(2) Mysql error "Can't get last insert id". I will raise separate ticket for this.
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3384

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
r***@osl.uoregon.edu
2017-03-24 12:08:30 UTC
Permalink
Issue #1904 has been updated by Brian Candler.


Mysql error "Can't get last insert id" is issue #1911. Ubuntu 16.04 comes with mysql-5.7, but Class::DBI has not been updated to work with it.
----------------------------------------
Bug #1904: Cannot start apache2 with Netdot::Mason
https://osl.uoregon.edu/redmine/issues/1904#change-3386

Author: Dracula Lai
Status: New
Priority: High
Assignee:
Category:
Target version:
Resolution:


Followed the installation instruction up to the point of linking /etc/apache2/conf-enabled/netdot.conf.
Apache2 version is Apache/2.4.18 running on Ubuntu 16.04
Other versions are mod_apreq2-20090110/2.8.0 mod_perl/2.0.9 Perl/v5.22.1
The 'service apache2 restart' will be failed with the following error:

# systemctl status apache2.service
▒▒▒ apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
▒▒▒apache2-systemd.conf
Active: failed (Result: exit-code) since Fri 2016-08-05 11:19:00 HKT; 31min ago
Docs: man:systemd-sysv-generator(8)
Process: 21374 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 21520 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

Aug 05 11:18:39 monitor systemd[1]: Stopped LSB: Apache2 web server.
Aug 05 11:18:39 monitor systemd[1]: Starting LSB: Apache2 web server...
Aug 05 11:18:39 monitor apache2[21520]: * Starting Apache httpd web server apache2
Aug 05 11:18:40 monitor apache2[21520]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, us
Aug 05 11:19:00 monitor apache2[21520]: *
Aug 05 11:19:00 monitor apache2[21520]: * The apache2 instance did not start within 20 seconds. Please read the log files to disco
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Control process exited, code=exited status=1
Aug 05 11:19:00 monitor systemd[1]: Failed to start LSB: Apache2 web server.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Unit entered failed state.
Aug 05 11:19:00 monitor systemd[1]: apache2.service: Failed with result 'exit-code'.


The problem has been trimmed down that it stops when it calls the 'use Netdot::Mason;' in the netdot.conf

Anyway to solve this problem?

The make testdeps is fine as follows:

# make testdeps
Testing for required Perl modules
/usr/bin/perl bin/perldeps.pl test
RRDs..............................................ok
GraphViz..........................................ok
Module::Build.....................................ok
CGI...............................................ok
Class::DBI........................................ok
Class::DBI::AbstractSearch........................ok
Apache2::Request..................................ok
HTML::Mason.......................................ok
Apache::Session...................................ok
URI::Escape.......................................ok
SQL::Translator...................................ok
SNMP::Info 2.06...................................ok
NetAddr::IP 4.042.................................ok
Apache2::AuthCookie...............................ok
Apache2::SiteControl..............................ok
Log::Dispatch.....................................ok
Log::Log4perl.....................................ok
Parallel::ForkManager.............................ok
Net::Patricia 1.20................................ok
Authen::Radius....................................ok
Test::Simple......................................ok
Net::IRR..........................................ok
Time::Local.......................................ok
File::Spec........................................ok
Net::Appliance::Session...........................ok
BIND::Config::Parser..............................ok
Net::DNS..........................................ok
Text::ParseWords..................................ok
Carp::Assert......................................ok
Digest::SHA.......................................ok
Net::DNS::ZoneFile::Fast..........................ok
Socket6...........................................ok
XML::Simple.......................................ok
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://osl.uoregon.edu/redmine/my/account
Loading...