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 - Support #1880] Can not restart Apache   after install
      Netdot ([email protected])


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

Message: 1
Date: Wed, 25 Jan 2017 08:05:45 -0800
From: [email protected]
Subject: [Netdot-devel] [Netdot - Support #1880] Can not restart
        Apache  after install Netdot
To: [email protected], [email protected],
        [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1880 has been updated by Wolf F..


Experiencing a similar issue. 
* Ubuntu 16.04 LTS 
* Netdot 1.0.7 from http://netdot.uoregon.edu/pub/dists/netdot-1.0.7.tar.gz
* followed this guide http://evilttl.com/wiki/Netdot-Installation-on-Ubuntu and 
netdot pdf manual from git concurrently.
<pre>
* installed the following dependencies: sudo apt-get install libssl-dev rrdtool 
graphviz libsnmp-info-perl libapache2-sitecontrol-perl 
libnet-dns-zonefile-fast-perl librrds-perl libdbd-mysql-perl libsnmp-info-perl
</pre>
* sudo make installdeps (found em all)
* make installdb
<pre>
* sudo make install APACHEUSER=www-data APACHEGROUP=www-data
</pre>
* Install did throw no error messages, so continued:
<pre>
cd /etc/apache2
sudo ln -s /usr/local/netdot/etc/netdot_apache2_local.conf 
sites-available/netdot.conf
sudo ln -s ../sites-available/netdot.conf sites-enabled/netdot.conf

sudo service apache2 graceful 
</pre>
refuses to restart.
* after a reboot apache does not come up. 


error messages as follows: 

<pre>
sudo service apache2 start
Job for apache2.service failed because the control process exited with error 
code. See "systemctl status apache2.service" and "journalctl -xe" for details.
</pre>

<pre>
sudo 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 Wed 2017-01-25 16:26:39 CET; 31s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1742 ExecStart=/etc/init.d/apache2 start (code=exited, 
status=1/FAILURE)

Jan 25 16:26:14 netdot systemd[1]: Starting LSB: Apache2 web server...
Jan 25 16:26:14 netdot apache2[1742]:  * Starting Apache httpd web server 
apache2
Jan 25 16:26:16 netdot apache2[1742]: [Wed Jan 25 16:26:16.462796 2017] 
[so:warn] [pid 1759:tid 140322153256832] AH01574: module apreq_module is 
already loaded, s

</pre>

<pre>
sudo journalctl -xe

Starting LSB: Apache2 web server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has begun starting up.
Jan 25 16:26:14 netdot apache2[1742]:  * Starting Apache httpd web server 
apache2
Jan 25 16:26:16 netdot apache2[1742]: [Wed Jan 25 16:26:16.462796 2017] 
[so:warn] [pid 1759:tid 140322153256832] AH01574: module apreq_module is 
already loaded, s
Jan 25 16:26:39 netdot apache2[1742]:  *
Jan 25 16:26:39 netdot apache2[1742]:  * The apache2 instance did not start 
within 20 seconds. Please read the log files to discover problems
Jan 25 16:26:39 netdot systemd[1]: apache2.service: Control process exited, 
code=exited status=1
Jan 25 16:26:39 netdot systemd[1]: Failed to start LSB: Apache2 web server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Jan 25 16:26:39 netdot systemd[1]: apache2.service: Unit entered failed state.
Jan 25 16:26:39 netdot systemd[1]: apache2.service: Failed with result 
'exit-code'.

</pre>


/var/log/syslog:
<pre>
Jan 25 16:48:59 netdot systemd[1]: Started MySQL Community Server.
Jan 25 16:49:01 netdot apache2[1442]: [Wed Jan 25 16:49:01.006042 2017] 
[so:warn] [pid 1551:tid 140251220162432] AH01574: module apreq_module is 
already loaded, skipping
Jan 25 16:49:23 netdot systemd-timesyncd[776]: Synchronized to time server 
91.189.89.198:123 (ntp.ubuntu.com).
Jan 25 16:49:24 netdot apache2[1442]:  *
Jan 25 16:49:24 netdot apache2[1442]:  * The apache2 instance did not start 
within 20 seconds. Please read the log files to discover problems
Jan 25 16:49:24 netdot systemd[1]: apache2.service: Control process exited, 
code=exited status=1
Jan 25 16:49:24 netdot systemd[1]: Failed to start LSB: Apache2 web server.
Jan 25 16:49:24 netdot systemd[1]: apache2.service: Unit entered failed state.
Jan 25 16:49:24 netdot systemd[1]: apache2.service: Failed with result 
'exit-code'.
Jan 25 16:49:24 netdot systemd[1]: Reached target Multi-User System.
Jan 25 16:49:24 netdot systemd[1]: Reached target Graphical Interface.
Jan 25 16:49:24 netdot systemd[1]: Starting Update UTMP about System Runlevel 
Changes...
Jan 25 16:49:24 netdot systemd[1]: Started Update UTMP about System Runlevel 
Changes.
Jan 25 16:49:24 netdot systemd[1]: Startup finished in 4.760s (kernel) + 
32.985s (userspace) = 37.746s.
Jan 25 16:49:28 netdot systemd[1]: Created slice User Slice of netdotadmin.
Jan 25 16:49:28 netdot systemd[1]: Starting User Manager for UID 1000...
Jan 25 16:49:28 netdot systemd[1]: Started Session 1 of user netdotadmin.
Jan 25 16:49:28 netdot systemd[1607]: Reached target Sockets.
Jan 25 16:49:28 netdot systemd[1607]: Reached target Timers.
Jan 25 16:49:28 netdot systemd[1607]: Reached target Paths.
Jan 25 16:49:28 netdot systemd[1607]: Reached target Basic System.
Jan 25 16:49:28 netdot systemd[1607]: Reached target Default.
Jan 25 16:49:28 netdot systemd[1607]: Startup finished in 44ms.
Jan 25 16:49:28 netdot systemd[1]: Started User Manager for UID 1000.
Jan 25 16:49:55 netdot systemd[1]: Stopped LSB: Apache2 web server.
Jan 25 16:49:55 netdot systemd[1]: Starting LSB: Apache2 web server...
Jan 25 16:49:55 netdot apache2[1681]:  * Starting Apache httpd web server 
apache2
Jan 25 16:49:57 netdot apache2[1681]: [Wed Jan 25 16:49:57.556094 2017] 
[so:warn] [pid 1699:tid 140105166759808] AH01574: module apreq_module is 
already loaded, skipping
Jan 25 16:50:20 netdot apache2[1681]:  *
Jan 25 16:50:20 netdot apache2[1681]:  * The apache2 instance did not start 
within 20 seconds. Please read the log files to discover problems
Jan 25 16:50:20 netdot systemd[1]: apache2.service: Control process exited, 
code=exited status=1
Jan 25 16:50:20 netdot systemd[1]: Failed to start LSB: Apache2 web server.
Jan 25 16:50:20 netdot systemd[1]: apache2.service: Unit entered failed state.
Jan 25 16:50:20 netdot systemd[1]: apache2.service: Failed with result 
'exit-code'.

</pre>

Any ideas ?
----------------------------------------
Support #1880: Can not restart Apache after install Netdot
https://osl.uoregon.edu/redmine/issues/1880#change-3373

Author: Witchaphon Saengaram
Status: In Progress
Priority: Normal
Assignee: Carlos Vicente
Category: 
Target version: 
Resolution: 


*Version*: Netdot 1.0.7
*OS* : CentOS 7.1.1503

#make installdeps

Installing required Perl modules
/usr/bin/perl bin/perldeps.pl install

Which RDBMS do you plan to use as backend: [mysql|Pg]? mysql

===============RESULTS===============
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
DBD::mysql........................................ok

Prefix is /etc/netdot

#less /etc/httpd/conf.d/netdot.conf

PerlSwitches -I/etc/netdot/lib

Once I restart Apache, I got an error as below :

#systemctl restart httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 
'journalctl -xn' for details

Nov 04 16:38:42 xxx.xxx.xxx.xx.xx httpd[1262]: AH00526: Syntax error on line 33 
of /etc/httpd/conf.d/netdot.conf:
Nov 04 16:38:42 xxx.xxx.xxx.xx.xx httpd[1262]: Attempt to reload 
Netdot/Model/Zone.pm aborted.\nCompilation failed in require a at (eval 529) 
line 2.\n\t...propagated at /usr/share/perl5/base.pm line 84.\nBEGIN 
failed--compilation aborted at (eval 528) line 1.\nBEGIN failed--compilation 
aborted at /etc/netdot/lib/Netdot/Model.pm line 381.\nCompilation failed in 
require at /etc/netdot/lib/Netdot/UI.pm line 5.\nBEGIN failed--compilation 
aborted at /etc/netdot/lib/Netdot/UI.pm line 5.\nCompilation failed in require 
at /etc/netdot/lib/Netdot/Mason.pm line 21.\nBEGIN failed--compilation aborted 
at /etc/netdot/lib/Netdot/Mason.pm line 21.\nCompilation failed in require at 
/etc/httpd/conf.d/netdot.conf line 34.\nBEGIN failed--compilation aborted  

Refer: I install by  following this installation procedure : 
https://www.digitalocean.com/community/tutorials/how-to-document-your-network-with-netdot-on-centos-7


Any suggestion ?

Thank you.


-- 
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 118, Issue 3
********************************************

Reply via email to