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 #1808] Installation on Ubuntu 14.04
      ([email protected])


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

Message: 1
Date: Fri, 20 Jun 2014 12:41:30 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1808] Installation on Ubuntu
        14.04
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1808 has been updated by Brian Candler.


It's possible, although it's more than two years since Apache 2.4 was released. 
Need to create a standalone test case for this.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3179

Author: Guillaume Mazoyer
Status: New
Priority: Normal
Assignee: 
Category: Netdot
Target version: 1.0.6
Resolution: 


I was trying to do a fresh install of Netdot 1.0.6 on Ubuntu 14.04 and I have 
found some problems that were fixable for me and another one which may require 
some code to change.

First of all it seems that with Ubuntu 14.04 a dependency is missing after the 
packages installation process. make testdeps reports a missing SNMP::Info but 
the package is installed though. To fix this I had to manually install the 
libsnmp-perl package. So it might be a good idea to add it to the dependencies 
list.

After completing the entire install process without any troubles the Apache 
configuration for Netdot seems to be problematic. In Ubuntu 14.04, Apache is in 
version 2.4 so there are some syntax changes to setup the permissions. I had to 
replace the classic:
<pre>
Order Deny,Allow
Allow from all
</pre>
by
<pre>
Require all granted
</pre>

Finally I am hitting another problem which is for me unsolvable with my 
knowledge. When going on the login page I am facing this error:
<pre>
error:  Can't call method "getAttribute" on an undefined value at 
/srv/www/netdot/htdocs/index.html line 13.
context:        
...     
9:      </%args>
10:     <%init>
11:     my $default_page;
12:     
13:     if ( $user->getAttribute('USER_TYPE') eq 'Admin' || 
$user->getAttribute('USER_TYPE') eq 'Operator') {
14:     
15:      $default_page = $r->dir_config('NetdotPath') . "management/";
16:     
17:     }elsif ( $user->getAttribute('USER_TYPE') eq 'User' ){
...     
code stack:      /srv/www/netdot/htdocs/index.html:13
/srv/www/netdot/htdocs/autohandler:76

Can't call method "getAttribute" on an undefined value at 
/srv/www/netdot/htdocs/index.html line 13.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "getAttribute" 
on an undefined value at /srv/www/netdot/htdocs/index.html line 13.^J') called 
at /srv/www/netdot/htdocs/index.html line 13
HTML::Mason::Commands::__ANON__('showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Component.pm line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f07c246afc0)',
 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1305
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef, 'showheader', 1) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 958
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f07c246a158)',
 'showheader', 1) called at /srv/www/netdot/htdocs/autohandler line 76
HTML::Mason::Commands::__ANON__ at /usr/share/perl5/HTML/Mason/Component.pm 
line 138
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f07c275b0e0)')
 called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1295
HTML::Mason::Request::comp(undef, undef, undef) called at 
/usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 484
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 436
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f07c246a158)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f07c246a158)')
 called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f07bf010ec0)',
 'Apache2::RequestRec=SCALAR(0x7f07c0a693f0)') called at 
/srv/www/netdot/lib/Netdot/Mason.pm line 59
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7f07c0a693f0)') called at 
-e line 0
eval {...} at -e line 0
</pre>

I hope this can help.


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

Reply via email to