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])
   2. [Netdot - Bug #1808] Installation on Ubuntu 14.04
      ([email protected])
   3. [Netdot - Bug #1808] Installation on Ubuntu 14.04
      ([email protected])
   4. [Netdot - Bug #1808] Installation on Ubuntu 14.04
      ([email protected])
   5. [Netdot - Bug #1808] Installation on Ubuntu 14.04
      ([email protected])
   6. [Netdot - Bug #1808] (Resolved) Installation on   Ubuntu 14.04
      ([email protected])


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

Message: 1
Date: Wed, 25 Jun 2014 05:06:06 -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.

File authcookiesite.tgz added

I can replicate this now using only apache2 libapache2-mod-perl2 
libapache2-authcookie-perl (i.e. no Netdot, no Mason, no SiteControl)

Attached tarball can be unpacked under /var/tmp, follow the README.

It works under ubuntu 12.04 / apache2.2, but under ubuntu 14.04 / apache 2.4 
gives:

<pre>
failed to resolve handler Example::AuthHandler
</pre>
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3181

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


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

Message: 2
Date: Wed, 25 Jun 2014 07:02:25 -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.


OK, this is a can of worms.

(1) Apache2::AuthCookie has no official release which is compatible with Apache 
2.4: apparently the author couldn't work out a way to make the same module work 
with both Apache 2.2 and Apache 2.4

(So don't pull authcookie from CPAN, it doesn't work on 2.4)

(2) There is a httpd24 branch at 
https://github.com/mschout/apache-authcookie/tree/httpd24

(3) The API has changed, as described at 
https://github.com/mschout/apache-authcookie/blob/httpd24/README.apache-2.4

It includes a new Apache24::AuthCookie package; which implies that things like 
Apache2::SiteControl would need to be modified.

BUT THE GOOD NEWS (!)

(4) Debian/Ubuntu's version of Apache2::AuthCookie is completely different to 
the official release, and has backported the changes needed to make it work 
with Apache 2.4. They also helpfully include the README in 
<code>/usr/share/doc/libapache2-authcookie-perl/README.apache-2.4</code>

My testsite now works with this change:

<pre>
--- testsite.conf.orig  2014-06-25 14:16:51.365038932 +0100
+++ testsite.conf       2014-06-25 14:20:29.974486565 +0100
@@ -3,6 +3,7 @@
 PerlModule Example::AuthHandler
 PerlSetVar TestAuthPath /testsite
 PerlSetVar TestAuthLoginScript /testsite/login.html
+PerlAddAuthzProvider user Example::AuthHandler->authz_handler

 <Location /testsite/>
   ### To recognize logged-in users even outside of protected area:
@@ -16,7 +17,6 @@
   AuthType Example::AuthHandler
   AuthName TestAuth
   PerlAuthenHandler Example::AuthHandler->authenticate
-  PerlAuthzHandler Example::AuthHandler->authorize
   Require valid-user
 </Location>
</pre>

But I'm still battling to make Netdot with SiteControl work.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3182

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


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

Message: 3
Date: Wed, 25 Jun 2014 07:39:02 -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.

File netdot_apache24_local.conf added

Phew, I think I've done it... try this config.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3183

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


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

Message: 4
Date: Wed, 25 Jun 2014 07:49:41 -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 Guillaume Mazoyer.


Congrats :). It seems to be working just fine with this config.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3184

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


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

Message: 5
Date: Wed, 25 Jun 2014 10:09:40 -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.


Thanks for the feedback. Pull request at 
https://github.com/cvicente/Netdot/pull/16
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3185

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


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

Message: 6
Date: Wed, 25 Jun 2014 10:33:17 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1808] (Resolved) Installation
        on      Ubuntu 14.04
To: [email protected], [email protected],
        [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1808 has been updated by Carlos Vicente.

Status changed from New to Resolved
Assignee set to Brian Candler
Target version changed from 1.0.6 to 1.0.7
Resolution set to fixed

Brian, many many thanks for tackling this!
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3186

Author: Guillaume Mazoyer
Status: Resolved
Priority: Normal
Assignee: Brian Candler
Category: Netdot
Target version: 1.0.7
Resolution: fixed


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 5
*******************************************

Reply via email to