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


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

Message: 1
Date: Wed, 5 Oct 2016 21:09:36 -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 _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


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

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


End of Netdot-devel Digest, Vol 115, Issue 1
********************************************

Reply via email to