Send Netdot-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."


Today's Topics:

   1. Apache2 won't come up after migrating a DB from a previous
      installation (Jorge Valentin)
   2. Re: Apache2 won't come up after migrating a DB from a
      previous installation (Faisal Imtiaz)


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

Message: 1
Date: Fri, 26 Dec 2014 20:34:01 -0400
From: Jorge Valentin <[email protected]>
Subject: [Netdot-users] Apache2 won't come up after migrating a DB
        from a  previous installation
To: [email protected]
Message-ID:
        <caeyuso+jonm-1u4ycsale1fnxwhdvq-ktwev7hwduu48g36...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello all,

I recently moved a netdot database from a previous installation (0.99) to a
new netdot VM appliance. While I was working on setting up the MySQL
environment and Site.conf I stopped both the MySQL and Apache2 daemons and
now Apache is failing to startup.

This is the error message I'm getting:

netdot@(none):~$ sudo service apache2 status
[sudo] password for netdot:
Apache2 is NOT running.
netdot@(none):~$ sudo service apache2 start
 * Starting web server apache2

    Syntax error on line 31 of /etc/apache2/sites-enabled/netdot:
DBD::mysql::db selectrow_array failed: Table 'netdot.schemainfo' doesn't
exist [for Statement "SELECT version FROM schemainfo"] at
/usr/local/netdot/lib/Netdot/Model.pm line 67.\nBEGIN failed--compilation
aborted at /usr/local/netdot/lib/Netdot/Model.pm line 381.\nCompilation
failed in require at /usr/local/netdot/lib/Netdot/UI.pm line 5.\nBEGIN
failed--compilation aborted at /usr/local/netdot/lib/Netdot/UI.pm line
5.\nCompilation failed in require at /usr/local/netdot/lib/Netdot/Mason.pm
line 21.\nBEGIN failed--compilation aborted at
/usr/local/netdot/lib/Netdot/Mason.pm line 21.\nCompilation failed in
require at /etc/apache2/sites-enabled/netdot line 32.\nBEGIN
failed--compilation aborted
Action 'start' failed.
The Apache error log may have more information.

Apache error log at /var/log/apache2/error.log doesn't say much and doesn't
seem to be logging at all, entries are from 12/24/2014 even though I have
attempted to start the service several times today.  But anyways, this is
what is stored on the error.log:

netdot@(none):~$ tail -f /var/log/apache2/error.log
[Wed Dec 24 20:44:48 2014] [error] Session cookie:
4f2a7ff7b6ca49b60612146daf509e5f
[Wed Dec 24 20:44:48 2014] [error] Loading module
Apache2::SiteControl::UserFactory
[Wed Dec 24 20:44:48 2014] [error] Using user factory
Apache2::SiteControl::UserFactory
[Wed Dec 24 20:44:48 2014] [error] user name is admin
[Wed Dec 24 20:44:48 2014] [error] Evaluating: $user =
Apache2::SiteControl::UserFactory->findUser($r, $ses_key)
[Wed Dec 24 20:44:48 2014] [error] encryption engine using key: Netdot gets
the last laugh
[Wed Dec 24 20:44:48 2014] [error] Restored user: $VAR1 = bless( {\n
          'attributes' => {\n
'SHOW_TASKS' => 'show',\n
'ALLOWED_OBJECTS' => {},\n
'session_removed' => 0,\n                                   'USER_TYPE' =>
'Admin',\n                                   'MANAGEMENT_PAGE' =>
'DEVICE'\n                                 },\n                 'sessionid'
=> '4f2a7ff7b6ca49b60612146daf509e5f',\n                 'manager' =>
'Apache2::SiteControl::UserFactory',\n                 'username' =>
'admin'\n               }, 'Apache2::SiteControl::User' );\n
[Wed Dec 24 20:44:48 2014] [error] Got user object:
Apache2::SiteControl::User=HASH(0xbdd4f9dc)
[Wed Dec 24 20:44:48 2014] [error] Saving attribute MANAGEMENT_PAGE =
DEVICEusing Apache::Session::File.
[Wed Dec 24 20:44:59 2014] [notice] caught SIGTERM, shutting down


Any help or insights is appreciated!

Thanks,

-Jorge

-- 
Jorge Valentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20141226/c14a2ee9/attachment-0001.html
 

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

Message: 2
Date: Fri, 26 Dec 2014 20:23:58 -0500
From: Faisal Imtiaz <[email protected]>
Subject: Re: [Netdot-users] Apache2 won't come up after migrating a DB
        from a  previous installation
To: Jorge Valentin <[email protected]>, [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"

Apache seems to be complaining about not being able to accces mysql....check to 
see if mysql is running, ?and u can connect to it.


Regards

Faisal

Sent from Mobile Device

<div>-------- Original message --------</div><div>From: Jorge Valentin 
<[email protected]> </div><div>Date:12/26/2014  7:34 PM  (GMT-05:00) 
</div><div>To: [email protected] </div><div>Subject: [Netdot-users] 
Apache2 won't come up after migrating a DB from a  previous installation 
</div><div>
</div>
Hello all,?

I recently moved a netdot database from a previous installation (0.99) to a new 
netdot VM appliance. While I was working on setting up the MySQL environment 
and Site.conf I stopped both the MySQL and Apache2 daemons and now Apache is 
failing to startup.?

This is the error message I'm getting:

netdot@(none):~$ sudo service apache2 status
[sudo] password for netdot:
Apache2 is NOT running.
netdot@(none):~$ sudo service apache2 start
?* Starting web server apache2 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
Syntax error on line 31 of /etc/apache2/sites-enabled/netdot:
DBD::mysql::db selectrow_array failed: Table 'netdot.schemainfo' doesn't exist 
[for Statement "SELECT version FROM schemainfo"] at 
/usr/local/netdot/lib/Netdot/Model.pm line 67.\nBEGIN failed--compilation 
aborted at /usr/local/netdot/lib/Netdot/Model.pm line 381.\nCompilation failed 
in require at /usr/local/netdot/lib/Netdot/UI.pm line 5.\nBEGIN 
failed--compilation aborted at /usr/local/netdot/lib/Netdot/UI.pm line 
5.\nCompilation failed in require at /usr/local/netdot/lib/Netdot/Mason.pm line 
21.\nBEGIN failed--compilation aborted at /usr/local/netdot/lib/Netdot/Mason.pm 
line 21.\nCompilation failed in require at /etc/apache2/sites-enabled/netdot 
line 32.\nBEGIN failed--compilation aborted
Action 'start' failed.
The Apache error log may have more information.

Apache error log at /var/log/apache2/error.log doesn't say much and doesn't 
seem to be logging at all, entries are from 12/24/2014 even though I have 
attempted to start the service several times today.? But anyways, this is what 
is stored on the error.log:

netdot@(none):~$ tail -f /var/log/apache2/error.log
[Wed Dec 24 20:44:48 2014] [error] Session cookie: 
4f2a7ff7b6ca49b60612146daf509e5f
[Wed Dec 24 20:44:48 2014] [error] Loading module 
Apache2::SiteControl::UserFactory
[Wed Dec 24 20:44:48 2014] [error] Using user factory 
Apache2::SiteControl::UserFactory
[Wed Dec 24 20:44:48 2014] [error] user name is admin
[Wed Dec 24 20:44:48 2014] [error] Evaluating: $user = 
Apache2::SiteControl::UserFactory->findUser($r, $ses_key)
[Wed Dec 24 20:44:48 2014] [error] encryption engine using key: Netdot gets the 
last laugh
[Wed Dec 24 20:44:48 2014] [error] Restored user: $VAR1 = bless( {\n ? ? ? ? ? 
? ? ? 'attributes' => {\n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'SHOW_TASKS' => 
'show',\n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'ALLOWED_OBJECTS' => {},\n ? ? ? ? 
? ? ? ? ? ? ? ? ? ? ? ? ? 'session_removed' => 0,\n ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
? ? ? 'USER_TYPE' => 'Admin',\n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 
'MANAGEMENT_PAGE' => 'DEVICE'\n ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? },\n ? ? ? ? ? 
? ? ? 'sessionid' => '4f2a7ff7b6ca49b60612146daf509e5f',\n ? ? ? ? ? ? ? ? 
'manager' => 'Apache2::SiteControl::UserFactory',\n ? ? ? ? ? ? ? ? 'username' 
=> 'admin'\n ? ? ? ? ? ? ? }, 'Apache2::SiteControl::User' );\n
[Wed Dec 24 20:44:48 2014] [error] Got user object: 
Apache2::SiteControl::User=HASH(0xbdd4f9dc)
[Wed Dec 24 20:44:48 2014] [error] Saving attribute MANAGEMENT_PAGE = 
DEVICEusing Apache::Session::File.
[Wed Dec 24 20:44:59 2014] [notice] caught SIGTERM, shutting down


Any help or insights is appreciated!?

Thanks,

-Jorge

-- 
Jorge Valentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20141226/40c7ac5b/attachment-0001.html
 

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

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


End of Netdot-users Digest, Vol 73, Issue 7
*******************************************

Reply via email to