Send Netdot-devel mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."
Today's Topics:
1. [Netdot - Bug #1904] Cannot start apache2 with Netdot::Mason
([email protected])
2. [Netdot - Bug #1904] Cannot start apache2 with Netdot::Mason
([email protected])
3. [Netdot - Bug #1904] Cannot start apache2 with Netdot::Mason
([email protected])
4. [Netdot - Bug #1904] Cannot start apache2 with Netdot::Mason
([email protected])
----------------------------------------------------------------------
Message: 1
Date: Tue, 21 Mar 2017 05:03:08 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1904] Cannot start apache2 with
Netdot::Mason
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
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>
root@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>
root@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>
root@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>root@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
------------------------------
Message: 2
Date: Tue, 21 Mar 2017 05:09:51 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1904] Cannot start apache2 with
Netdot::Mason
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
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>
root@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
root@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
------------------------------
Message: 3
Date: Tue, 21 Mar 2017 05:17:40 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1904] Cannot start apache2 with
Netdot::Mason
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
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>
root@netdot:~# a2disconf netdot
Conf netdot disabled.
To activate the new configuration, you need to run:
service apache2 reload
root@netdot:~# service apache2 restart
root@netdot:~# a2enconf netdot
Enabling conf netdot.
To activate the new configuration, you need to run:
service apache2 reload
root@netdot:~# service apache2 reload
root@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
------------------------------
Message: 4
Date: Tue, 21 Mar 2017 06:15:45 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1904] Cannot start apache2 with
Netdot::Mason
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8
Issue #1904 has been updated by Brian Candler.
Added some debug symbols:
<pre>
root@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=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=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
------------------------------
_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel
End of Netdot-devel Digest, Vol 120, Issue 1
********************************************