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])


----------------------------------------------------------------------

Message: 1
Date: Tue, 21 Mar 2017 06:25:25 -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 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


------------------------------

Message: 2
Date: Tue, 21 Mar 2017 07:38:01 -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.


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


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 120, Issue 2
********************************************

Reply via email to