Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Page not found on attempting to see site on port 5000
      (francis picabia)
   2. Tracking of node_ip entry origin device in Netdisco 2
      (Christian Ramseyer)
   3. Installation fails (Tobias Gerlach)
   4. Re: Installation fails (Christian Ramseyer)
--- Begin Message ---
Thank you!!!!!

That was the clue.  I misunderstood 'path' as being a disk
path like DocumentRoot.  Mine started with '/usr/local...'
so there was no way I was going to find that.  Once I removed path
parameter from deployment.yml, I can get the netdisco page
at the top level.

Thanks for this good clue.



On Tue, Nov 8, 2016 at 4:27 PM, Jeroen van Ingen <
j.vaningensche...@utwente.nl> wrote:

> Hi Francis,
>
> ...but I see now that I should add: I've configured Netdisco to be
> hosted from the /netdisco path, using the "path:" config directive in
> deployment.yml.
>
> For your reference:
> http://search.cpan.org/dist/App-Netdisco/lib/App/Netdisco/
> Manual/Deployment.pod#Non-root_Hosting
>
>
> Regards,
>
> Jeroen van Ingen
> ICT Service Centre
> University of Twente, P.O.Box 217, 7500 AE Enschede, The Netherlands
>
>
> On 11/08/2016 09:23 PM, Jeroen van Ingen wrote:
> > Hi Francis,
> >
> > TBH I never test locally, but looks like you should access
> > http://localhost:5000/netdisco/ for that.
> >
> > Two tests on my server:
> >
> > netdisco@linux248:~$ http_proxy= wget http://localhost:5000
> > --2016-11-08 21:20:09--  http://localhost:5000/
> > Resolving localhost (localhost)... 127.0.0.1
> > Connecting to localhost (localhost)|127.0.0.1|:5000... connected.
> > HTTP request sent, awaiting response... 404 Not Found
> > 2016-11-08 21:20:09 ERROR 404: Not Found.
> >
> > netdisco@linux248:~$ http_proxy= wget http://localhost:5000/netdisco/
> > --2016-11-08 21:20:23--  http://localhost:5000/netdisco/
> > Resolving localhost (localhost)... 127.0.0.1
> > Connecting to localhost (localhost)|127.0.0.1|:5000... connected.
> > HTTP request sent, awaiting response... 200 OK
> > Length: 7487 (7.3K) [text/html]
> > Saving to: `index.html'
> >
> >
> > Regards,
> >
> > Jeroen van Ingen
> > ICT Service Centre
> > University of Twente, P.O.Box 217, 7500 AE Enschede, The Netherlands
> >
> >
> > On 11/08/2016 09:08 PM, francis picabia wrote:
> >> Hi folks,
> >>
> >> Still no music coming from Netdisco.
> >>
> >> I installed firefox locally to test with localhost:5000 and it still
> >> produces the error "Page not found".
> >>
> >> If my system is running Netdisco 2.034000 under
> >> Debian 8, listening to port 5000, what is the URL
> >> I should expect to work?
> >>
> >> http://localhost:5000  ?
> >>
> >> Or does it require something specific in the path like
> >>
> >> http://localhost:5000/login
> >>
> >>
> >>
> >> On Mon, Nov 7, 2016 at 11:53 AM, francis picabia <fpica...@gmail.com
> >> <mailto:fpica...@gmail.com>> wrote:
> >>
> >>
> >>     Setting the environment variable |STARMAN_DEBUG|as the value of 1
> >>     has produced more tracing, but I don't see what is making the page
> >>     blank:
> >>
> >>     2016/11/07-11:47:41 CONNECT TCP Peer: "[XXX.YYY.86.50]:41228" Local:
> >>     "[XXX.YYY.201.80]:5000"
> >>     2016/11/07-11:47:41 CONNECT TCP Peer: "[XXX.YYY.86.50]:41227" Local:
> >>     "[XXX.YYY.201.80]:5000"
> >>     [23220] Read 403 bytes: "GET / HTTP/1.1\r\nHost:
> >>     netdisco.example.com:5000
> >>     <http://netdisco.example.com:5000>\r\nConnection:
> >>     keep-alive\r\nCache-Control: max-age=0\r\nUpgrade-Insecure-
> Requests:
> >>     1\r\nUser-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
> >>     (KHTML, like Gecko) Chrome/54.0.2840.90 Safari/537.36\r\nAccept:
> >>     text/html,application/xhtml+xml,application/xml;q=0.9,
> image/webp,*/*;q=0.8\r\nAccept-Encoding:
> >>     gzip, deflate, sdch\r\nAccept-Language: en-US,en;q=0.8\r\n\r\n"
> >>     [23220] keep-alive is disabled. Closing the connection after this
> >>     request
> >>     [23220] Using chunked transfer-encoding to send unknown length body
> >>     [23220] Wrote 136 bytes
> >>     [23220] Wrote 14 bytes
> >>     [23220] Wrote 5 bytes
> >>     [23220] Request done
> >>     [23220] Closing connection
> >>     [23216] Client connection timed out
> >>
> >>
> >>
> >
> >
> > ------------------------------------------------------------
> ------------------
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today. http://sdm.link/xeonphi
> > _______________________________________________
> > Netdisco mailing list
> > netdisco-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/netdisco-users
> >
>
>
> ------------------------------------------------------------
> ------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
>

--- End Message ---
--- Begin Message ---
Hello list

I was finally allowed to migrate our pretty large Netdisco 1.3
environment to Netdisco 2.

In 1.3, we had a custom patch that added an additional table
node_ip_l3device, which is essentially node_ip but with an additional
column device_ip to store the device the entry was collected on.

Various of our networking/datacenter teams used this information to
better understand the L3 domains and generate reports, e.g. for network
and service impact when a router goes down, finding who needs to be
involved for change requests etc.

I ported this to Netdisco 2 in a public repository, both in hope that it
could be useful for somebody else and to make it easier to rebase the
work on a newer upstream version.

Currently the patch includes:
App::Netdisco::DB and schema_versions stuff to create the table
Core::Arpnip support to update it
netdisco-sshcollector support to update it
Configuration setting to make updating it optional (default false)

Stuff missing in this version:
No Expiry support (we keep the data forever)
No GUI support (we didn't use the default web interface in 1.3)

Of course if there's interest to include this in Netdisco proper, I'd be
happy to provide the missing parts too and take off some remaining rough
corners. But it's probably too much of a fringe feature that doesn't
make sense in every organization.

Here's the patch:
<https://github.com/rc9000/nd2_private_patches/commit/f0b7bc87fdce1b3a4e57ae50b37bcd469eea8d13?diff=unified>

And some further documentation:
<https://github.com/rc9000/nd2_private_patches/wiki>

Cheers
Christian












--- End Message ---
--- Begin Message ---
Hello,

I'm just trying to set up a Netdisco development server but the
installation fails on my SLES 11 Patch 4 (Perl 5.10.0).

Actually it looks like the Perl Module Params::Classify is causing the problems.

I exactly followed the instructions on https://metacpan.org/pod/App::Netdisco.

curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco
..
==> Found dependencies: Params::Classify
! Installing the dependencies failed: Module 'Params::Classify' is not installed
! Bailing out the installation for Class-Mix-0.005.
! Installing the dependencies failed: Module 'Class::Mix' is not installed
! Bailing out the installation for Crypt-Eksblowfish-0.009.
! Installing the dependencies failed: Module
'Crypt::Eksblowfish::Bcrypt' is not installed
! Bailing out the installation for Digest-Bcrypt-1.206.
! Installing the dependencies failed: Module
'Data::Entropy::Algorithms' is not installed, Module 'Digest::Bcrypt'
is not installed
! Bailing out the installation for Dancer-Plugin-Passphrase-2.0.1.
! Installing the dependencies failed: Module
'Dancer::Plugin::Passphrase' is not installed
! Bailing out the installation for App-Netdisco-2.034000.

I tried to force installation of Params::Classify module but also
always turns out into an error:

> ~/bin/localenv cpanm --force 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
--> Working on 
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
Fetching 
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
... OK
Configuring Params-Classify-0.013 ... OK
Building and testing Params-Classify-0.013 ... FAIL
! Installing 
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
failed. See /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
for details. Retry with --force to force install it.

> cat /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
cpanm (App::cpanminus) 1.7042 on perl 5.010000 built for
x86_64-linux-thread-multi
Work directory is /usr/local/netdisco/.cpanm/work/1479130805.22138
You have make /usr/bin/make
You have LWP 5.816
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on 
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
Fetching 
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
-> OK
Unpacking Params-Classify-0.013.tar.gz
Entering Params-Classify-0.013
Checking configure dependencies from META.yml
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have Module::Build 0.38 ... Yes (0.4220)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
Configuring Params-Classify-0.013
Running Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Params-Classify' version '0.013'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0 ... Yes (1.302062)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have warnings 0 ... Yes (1.06)
Checking if you have Scalar::Util 1.01 ... Yes (1.46)
Checking if you have parent 0 ... Yes (0.236)
Checking if you have ExtUtils::ParseXS 2.2006 ... Yes (3.30)
Checking if you have Module::Build 0 ... Yes (0.4220)
Checking if you have Exporter 0 ... Yes (5.62)
Building and testing Params-Classify-0.013
Building Params-Classify
cc -I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE
-DVERSION="0.013" -DXS_VERSION="0.013" -fPIC -c -D_REENTRANT
-D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing
-pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmessage-length=0
-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -Wall -pipe -o lib/Params/Classify.o
lib/Params/Classify.c
lib/Params/Classify.c:793: error: conflicting types for 'S_croak_xs_usage'
lib/Params/Classify.xs:547: error: previous declaration of
'S_croak_xs_usage' was here
error building lib/Params/Classify.o from 'lib/Params/Classify.c' at
/usr/local/netdisco/perl5/lib/perl5/ExtUtils/CBuilder/Base.pm line
173.
-> FAIL Installing
http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
failed. See /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
for details. Retry with --force to force install it.

> perl -v
This is perl, v5.10.0 built for x86_64-linux-thread-multi

> cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 4

Any ideas how to fix this?

Thanks in advance.

Tobias



--- End Message ---
--- Begin Message ---
Hi Tobias

I think I encountered this problem before on SLES and I was able to make
the build work by passing special cflags just to build this module on
its own:


CFLAGS="-DPERL_ARGS_ASSERT_CROAK_XS_USAGE" ./cpanm  \
 -l ~/perl5 -v Params::Classify

IIRC this triggers some #define in the code which circumvents the
problematic sections.

Christian

On 14/11/16 14:43, Tobias Gerlach wrote:
> Hello,
> 
> I'm just trying to set up a Netdisco development server but the
> installation fails on my SLES 11 Patch 4 (Perl 5.10.0).
> 
> Actually it looks like the Perl Module Params::Classify is causing the 
> problems.
> 
> I exactly followed the instructions on https://metacpan.org/pod/App::Netdisco.
> 
> curl -L http://cpanmin.us/ | perl - --notest --local-lib ~/perl5 App::Netdisco
> ..
> ==> Found dependencies: Params::Classify
> ! Installing the dependencies failed: Module 'Params::Classify' is not 
> installed
> ! Bailing out the installation for Class-Mix-0.005.
> ! Installing the dependencies failed: Module 'Class::Mix' is not installed
> ! Bailing out the installation for Crypt-Eksblowfish-0.009.
> ! Installing the dependencies failed: Module
> 'Crypt::Eksblowfish::Bcrypt' is not installed
> ! Bailing out the installation for Digest-Bcrypt-1.206.
> ! Installing the dependencies failed: Module
> 'Data::Entropy::Algorithms' is not installed, Module 'Digest::Bcrypt'
> is not installed
> ! Bailing out the installation for Dancer-Plugin-Passphrase-2.0.1.
> ! Installing the dependencies failed: Module
> 'Dancer::Plugin::Passphrase' is not installed
> ! Bailing out the installation for App-Netdisco-2.034000.
> 
> I tried to force installation of Params::Classify module but also
> always turns out into an error:
> 
>> ~/bin/localenv cpanm --force 
>> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> --> Working on 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> Fetching 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> ... OK
> Configuring Params-Classify-0.013 ... OK
> Building and testing Params-Classify-0.013 ... FAIL
> ! Installing 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> failed. See /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
> for details. Retry with --force to force install it.
> 
>> cat /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
> cpanm (App::cpanminus) 1.7042 on perl 5.010000 built for
> x86_64-linux-thread-multi
> Work directory is /usr/local/netdisco/.cpanm/work/1479130805.22138
> You have make /usr/bin/make
> You have LWP 5.816
> You have /bin/tar: tar (GNU tar) 1.26
> Copyright (C) 2011 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Written by John Gilmore and Jay Fenlason.
> You have /usr/bin/unzip
> --> Working on 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> Fetching 
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> -> OK
> Unpacking Params-Classify-0.013.tar.gz
> Entering Params-Classify-0.013
> Checking configure dependencies from META.yml
> Checking if you have warnings 0 ... Yes (1.06)
> Checking if you have strict 0 ... Yes (1.04)
> Checking if you have Module::Build 0.38 ... Yes (0.4220)
> Checking if you have ExtUtils::Install 1.46 ... Yes (1.54)
> Configuring Params-Classify-0.013
> Running Build.PL
> Created MYMETA.yml and MYMETA.json
> Creating new 'Build' script for 'Params-Classify' version '0.013'
> -> OK
> Checking dependencies from MYMETA.json ...
> Checking if you have Test::More 0 ... Yes (1.302062)
> Checking if you have strict 0 ... Yes (1.04)
> Checking if you have warnings 0 ... Yes (1.06)
> Checking if you have Scalar::Util 1.01 ... Yes (1.46)
> Checking if you have parent 0 ... Yes (0.236)
> Checking if you have ExtUtils::ParseXS 2.2006 ... Yes (3.30)
> Checking if you have Module::Build 0 ... Yes (0.4220)
> Checking if you have Exporter 0 ... Yes (5.62)
> Building and testing Params-Classify-0.013
> Building Params-Classify
> cc -I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE
> -DVERSION="0.013" -DXS_VERSION="0.013" -fPIC -c -D_REENTRANT
> -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing
> -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmessage-length=0
> -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
> -fasynchronous-unwind-tables -g -Wall -pipe -o lib/Params/Classify.o
> lib/Params/Classify.c
> lib/Params/Classify.c:793: error: conflicting types for 'S_croak_xs_usage'
> lib/Params/Classify.xs:547: error: previous declaration of
> 'S_croak_xs_usage' was here
> error building lib/Params/Classify.o from 'lib/Params/Classify.c' at
> /usr/local/netdisco/perl5/lib/perl5/ExtUtils/CBuilder/Base.pm line
> 173.
> -> FAIL Installing
> http://search.cpan.org/CPAN/authors/id/Z/ZE/ZEFRAM/Params-Classify-0.013.tar.gz
> failed. See /usr/local/netdisco/.cpanm/work/1479130805.22138/build.log
> for details. Retry with --force to force install it.
> 
>> perl -v
> This is perl, v5.10.0 built for x86_64-linux-thread-multi
> 
>> cat /etc/SuSE-release
> SUSE Linux Enterprise Server 11 (x86_64)
> VERSION = 11
> PATCHLEVEL = 4
> 
> Any ideas how to fix this?
> 
> Thanks in advance.
> 
> Tobias
> 
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/netdisco-users
> 



--- End Message ---
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to