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])
----------------------------------------------------------------------
Message: 1
Date: Fri, 20 Jun 2014 03:17:29 -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.
Thank you for this starting point. Problems with Netdot and Apache 2.4 / Ubuntu
14.04 / 13.10 have been reported several times:
http://osl.uoregon.edu/pipermail/netdot-users/2014-May/001839.html
http://osl.uoregon.edu/pipermail/netdot-users/2014-May/001838.html
http://osl.uoregon.edu/pipermail/netdot-users/2014-March/001777.html
http://osl.uoregon.edu/pipermail/netdot-users/2013-November/001679.html
but no answers were forthcoming on the list. I'm going to spend a bit of time
on it today.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3176
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: Fri, 20 Jun 2014 06:56:20 -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.
Update: this appears to be to do with the authentication/authorization changes
in Apache 2.4, but I haven't been able to work out how to fix it.
When you put "Require all granted" under <Directory /usr/local/netdot/htdocs/>
then I think it completely bypasses authentication. Hence the pages aren't
seeing any user in the Netdot::UI object (even though the cookie is being set
properly by NetdotLogin)
Removing it means that "require valid-user" takes precedence, which is what we
want. I had to put "Require all granted" under <Location /netdot/NetdotLogin>.
However I now get zero response in the browser, and the following logged in
/var/log/apache2/error.log:
<pre>failed to resolve handler Apache2::SiteControl</pre>
That message appears to come from /usr/lib/apache2/modules/mod_perl.so
There seem to be few changes between ubuntu 12.04 and 14.04 in this area:
- libapache2-sitecontrol-perl is still 1.05
- libapache2-authcookie-perl has gone from 3.18 to 3.20
- libhttp-cookies-perl is still 6.00
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3177
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: Fri, 20 Jun 2014 07:06:42 -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.
I'm really not an expert in mod_perl but could mod_perl be (at least partially)
broken with Apache 2.4?
Apache is in a new major release but the Apache perl libraries are not. This
looks like a good way to introduce bugs.
----------------------------------------
Bug #1808: Installation on Ubuntu 14.04
https://osl.uoregon.edu/redmine/issues/1808#change-3178
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 2
*******************************************