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. Error displaying ipblock with more than one ipblockattr
(custom attribute) (Nico)
2. perl script "INSTALLDIRS=site" error while installing
Apache2::Request through cpan utility of Netdot (Gaurav Kansal)
3. Re: perl script "INSTALLDIRS=site" error while installing
Apache2::Request through cpan utility of Netdot (Carlos Vicente)
4. Re: Error displaying ipblock with more than one ipblockattr
(custom attribute) (Carlos Vicente)
----------------------------------------------------------------------
Message: 1
Date: Mon, 7 Apr 2014 08:42:56 +0200
From: Nico <[email protected]>
Subject: [Netdot-users] Error displaying ipblock with more than one
ipblockattr (custom attribute)
To: "[email protected]" <[email protected]>
Message-ID:
<cakxqfmu0akcu_g9arlta43futjl6hg61p5orm9bb6ps8vjj...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Hello,
I'm getting an error when i create more than one ipblockattr
associated with an ipblock and then go to the
http://10.60.3.160/netdot/management/ip.html?id=<id_of_the_ipblock_with_2_custom_attributes>
It seems 9 months ago a similar error was detected and corrected (Bug
#1766 https://osl.uoregon.edu/redmine/issues/1766).
I'm using 1.0.5-rc1, i've also tried with latest code com git (as of
fridat 4/4/2014) and got the same error.
Error code:
System error
error: Can't locate object method "address_numeric" via package
"Netdot::Model::IpblockAttrName" at
/home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.
context:
...
158: $alpha = 1;
159: }
160: push @lbls, [$obj , $lbl];
161: }
162: if ( $ip ){
163: @lbls = sort {
164: $a->[0]->$sort_field->address_numeric <=>
165: $b->[0]->$sort_field->address_numeric
166: } @lbls;
...
code stack: /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml:162
/home/netdot/105-rc1/htdocs/management/ip.html:938
/home/netdot/105-rc1/htdocs/management/autohandler:81
/usr/share/perl5/HTML/Mason/Request.pm:948
/home/netdot/105-rc1/htdocs/masondata/obj/1249759374/management/autohandler.obj:21
/home/netdot/105-rc1/htdocs/autohandler:76
raw error:
Can't locate object method "address_numeric" via package
"Netdot::Model::IpblockAttrName" at
/home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.
Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object
method "address_numeric" via package "Netdot::Model::IpblockAttrName"
at /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.^J')
called at /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line
162
HTML::Mason::Commands::__ANON__('object', 'ARRAY(0x7f6b7006b908)',
'withedit', undef, 'return_args', '?id=2584233') called at
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6ffe0858)',
'object', 'ARRAY(0x7f6b7006b908)', 'withedit', undef, 'return_args',
'?id=2584233') called at /usr/share/perl5/HTML/Mason/Request.pm line
1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'object',
'ARRAY(0x7f6b7006b908)', 'withedit', undef, 'return_args',
'?id=2584233') called at
/home/netdot/105-rc1/htdocs/management/ip.html line 938
HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1,
'page', 'ADDRESS') called at /usr/share/perl5/HTML/Mason/Component.pm
line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b7013c350)',
'id', 2584233, 'showheader', 1, 'page', 'ADDRESS') called at
/usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233,
'showheader', 1, 'page', 'ADDRESS') called at
/usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
'page', 'ADDRESS') called at
/home/netdot/105-rc1/htdocs/management/autohandler line 81
HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1) called
at /usr/share/perl5/HTML/Mason/Component.pm line 157
HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7f6b6febf050)',
'main', 'id', 2584233, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Request.pm line 948
HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
'main', 'id', 2584233, 'showheader', 1) called at
/home/netdot/105-rc1/htdocs/masondata/obj/1249759374/management/autohandler.obj
line 21
HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1) called
at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6febf050)',
'id', 2584233, 'showheader', 1) called at
/usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233,
'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line
955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
'showheader', 1) called at /home/netdot/105-rc1/htdocs/autohandler
line 76
HTML::Mason::Commands::__ANON__('id', 2584233) called at
/usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6ffaa118)',
'id', 2584233) called at /usr/share/perl5/HTML/Mason/Request.pm line
1297
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233) called
at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)')
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)')
called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f6b6fa03738)',
'Apache2::RequestRec=SCALAR(0x7f6b6fa0cf50)') called at
/home/netdot/105-rc1/lib/Netdot/Mason.pm line 59
Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7f6b6fa0cf50)')
called at -e line 0
eval {...} at -e line 0
Greetings,
--
Nico
------------------------------
Message: 2
Date: Mon, 07 Apr 2014 14:29:00 +0530
From: Gaurav Kansal <[email protected]>
Subject: [Netdot-users] perl script "INSTALLDIRS=site" error while
installing Apache2::Request through cpan utility of Netdot
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hi Folks,
I am trying to install Netdot 1.0.4 in CentOS 6.
While installing Apache2::Request through cpan utility, I am getting the
following error.
I had tried to google it and do lot of troubleshooting but didn't get the
success :(.
checking whether ln -s works... yes
checking whether to enable maintainer-specific portions of Makefiles... no
./configure: line 20252: -q: command not found
./configure: line 20266: -q: command not found
./configure: line 20270: -q: command not found
./configure: line 20274: -q: command not found
./configure: line 20274: -q: command not found
Can't open perl script "INSTALLDIRS=site": No such file or directory
configure: error: Bad apache2 binary (/)
Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
ISAAC/libapreq2-2.13.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
ISAAC/libapreq2-2.13.tar.gz : writemakefile NO
'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256
I had installed the libapreq2-2.13 package separately but didn't get any
success.
I had also try to install Netdot 1.0.5 but facing same issue.
Pl. guide me what should I do ??
Regards,
Gaurav Kansal
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20140407/236b3f3f/attachment-0001.html
------------------------------
Message: 3
Date: Mon, 7 Apr 2014 08:34:38 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] perl script "INSTALLDIRS=site" error while
installing Apache2::Request through cpan utility of Netdot
To: Gaurav Kansal <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
Hello Gaurav,
I recommend using the appropriate distribution packages when possible. In the
case of RPM-based distros like CentOS, the three packages are:
# rpm -Uvh libapreq2 libapreq2-devel perl-libapreq2
What exact problem did you find when installing the libapreq2 package?
cv
On Apr 7, 2014, at 4:59 AM, Gaurav Kansal <[email protected]> wrote:
> Hi Folks,
>
> I am trying to install Netdot 1.0.4 in CentOS 6.
>
> While installing Apache2::Request through cpan utility, I am getting the
> following error.
> I had tried to google it and do lot of troubleshooting but didn?t get the
> success L.
>
> checking whether ln -s works... yes
> checking whether to enable maintainer-specific portions of Makefiles... no
> ./configure: line 20252: -q: command not found
> ./configure: line 20266: -q: command not found
> ./configure: line 20270: -q: command not found
> ./configure: line 20274: -q: command not found
> ./configure: line 20274: -q: command not found
> Can't open perl script "INSTALLDIRS=site": No such file or directory
> configure: error: Bad apache2 binary (/)
> Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site]
> ISAAC/libapreq2-2.13.tar.gz
> /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
> Running make test
> Make had some problems, won't test
> Running make install
> Make had some problems, won't install
> Failed during this command:
> ISAAC/libapreq2-2.13.tar.gz : writemakefile NO
> '/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 256
>
> I had installed the libapreq2-2.13 package separately but didn?t get any
> success.
> I had also try to install Netdot 1.0.5 but facing same issue.
>
> Pl. guide me what should I do ??
>
>
> Regards,
> Gaurav Kansal
>
>
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
------------------------------
Message: 4
Date: Mon, 7 Apr 2014 08:51:22 -0400
From: Carlos Vicente <[email protected]>
Subject: Re: [Netdot-users] Error displaying ipblock with more than
one ipblockattr (custom attribute)
To: Nico <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
Hello Nico,
Thanks for reporting that. I just committed a fix:
https://osl.uoregon.edu/redmine/projects/netdot/repository/revisions/a7af5ed6ea30fb454cf899701b70acf694088493/diff/htdocs/generic/sortresults.mhtml
When it?s obvious that you have find a bug, feel free to open a ticket in the
Redmine system
https://osl.uoregon.edu/redmine/projects/netdot/issues/new
That way it?s less likely that we?ll forget.
Cheers,
cv
On Apr 7, 2014, at 2:42 AM, Nico <[email protected]> wrote:
> Hello,
> I'm getting an error when i create more than one ipblockattr
> associated with an ipblock and then go to the
> http://10.60.3.160/netdot/management/ip.html?id=<id_of_the_ipblock_with_2_custom_attributes>
> It seems 9 months ago a similar error was detected and corrected (Bug
> #1766 https://osl.uoregon.edu/redmine/issues/1766).
> I'm using 1.0.5-rc1, i've also tried with latest code com git (as of
> fridat 4/4/2014) and got the same error.
>
> Error code:
>
> System error
>
> error: Can't locate object method "address_numeric" via package
> "Netdot::Model::IpblockAttrName" at
> /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.
> context:
> ...
> 158: $alpha = 1;
> 159: }
> 160: push @lbls, [$obj , $lbl];
> 161: }
> 162: if ( $ip ){
> 163: @lbls = sort {
> 164: $a->[0]->$sort_field->address_numeric <=>
> 165: $b->[0]->$sort_field->address_numeric
> 166: } @lbls;
> ...
> code stack: /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml:162
> /home/netdot/105-rc1/htdocs/management/ip.html:938
> /home/netdot/105-rc1/htdocs/management/autohandler:81
> /usr/share/perl5/HTML/Mason/Request.pm:948
> /home/netdot/105-rc1/htdocs/masondata/obj/1249759374/management/autohandler.obj:21
> /home/netdot/105-rc1/htdocs/autohandler:76
>
> raw error:
>
> Can't locate object method "address_numeric" via package
> "Netdot::Model::IpblockAttrName" at
> /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.
>
>
> Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
> HTML::Mason::Exceptions::rethrow_exception('Can\'t locate object
> method "address_numeric" via package "Netdot::Model::IpblockAttrName"
> at /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line 163.^J')
> called at /home/netdot/105-rc1/htdocs/generic/sortresults.mhtml line
> 162
> HTML::Mason::Commands::__ANON__('object', 'ARRAY(0x7f6b7006b908)',
> 'withedit', undef, 'return_args', '?id=2584233') called at
> /usr/share/perl5/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6ffe0858)',
> 'object', 'ARRAY(0x7f6b7006b908)', 'withedit', undef, 'return_args',
> '?id=2584233') called at /usr/share/perl5/HTML/Mason/Request.pm line
> 1302
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
> HTML::Mason::Request::comp(undef, undef, 'object',
> 'ARRAY(0x7f6b7006b908)', 'withedit', undef, 'return_args',
> '?id=2584233') called at
> /home/netdot/105-rc1/htdocs/management/ip.html line 938
> HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1,
> 'page', 'ADDRESS') called at /usr/share/perl5/HTML/Mason/Component.pm
> line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b7013c350)',
> 'id', 2584233, 'showheader', 1, 'page', 'ADDRESS') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 1302
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
> HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233,
> 'showheader', 1, 'page', 'ADDRESS') called at
> /usr/share/perl5/HTML/Mason/Request.pm line 955
> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
> 'page', 'ADDRESS') called at
> /home/netdot/105-rc1/htdocs/management/autohandler line 81
> HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1) called
> at /usr/share/perl5/HTML/Mason/Component.pm line 157
> HTML::Mason::Component::run_dynamic_sub('HTML::Mason::Component::FileBased=HASH(0x7f6b6febf050)',
> 'main', 'id', 2584233, 'showheader', 1) called at
> /usr/share/perl5/HTML/Mason/Request.pm line 948
> HTML::Mason::Request::call_dynamic('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
> 'main', 'id', 2584233, 'showheader', 1) called at
> /home/netdot/105-rc1/htdocs/masondata/obj/1249759374/management/autohandler.obj
> line 21
> HTML::Mason::Commands::__ANON__('id', 2584233, 'showheader', 1) called
> at /usr/share/perl5/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6febf050)',
> 'id', 2584233, 'showheader', 1) called at
> /usr/share/perl5/HTML/Mason/Request.pm line 1302
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
> HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233,
> 'showheader', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line
> 955
> HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)',
> 'showheader', 1) called at /home/netdot/105-rc1/htdocs/autohandler
> line 76
> HTML::Mason::Commands::__ANON__('id', 2584233) called at
> /usr/share/perl5/HTML/Mason/Component.pm line 135
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7f6b6ffaa118)',
> 'id', 2584233) called at /usr/share/perl5/HTML/Mason/Request.pm line
> 1297
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
> HTML::Mason::Request::comp(undef, undef, undef, 'id', 2584233) called
> at /usr/share/perl5/HTML/Mason/Request.pm line 481
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
> eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)')
> called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
> HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7f6b700911d8)')
> called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7f6b6fa03738)',
> 'Apache2::RequestRec=SCALAR(0x7f6b6fa0cf50)') called at
> /home/netdot/105-rc1/lib/Netdot/Mason.pm line 59
> Netdot::Mason::handler('Apache2::RequestRec=SCALAR(0x7f6b6fa0cf50)')
> called at -e line 0
> eval {...} at -e line 0
>
> Greetings,
>
> --
> Nico
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
------------------------------
_______________________________________________
Netdot-users mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-users
End of Netdot-users Digest, Vol 65, Issue 3
*******************************************