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: Errors after upgrading to 2.033006 (Oliver Gorwits)
   2. Re: Errors after upgrading to 2.033006 (Soppe, Peter)
--- Begin Message ---
Hi Peter,

On 2016-06-24 16:00, Soppe, Peter wrote:
Now I cannot access the netdisco Website (http://IP:5000 [1]) and am
getting several errors in the log files (see below):


At the command line can you run:

~netdisco/bin/netdisco-do psql

And does this connect to the Netdisco database?

The error might indicate that the web server frontend is unable to connect to the postgres database.

regards,
oliver.


Any Ideas which thing went wrong/ how to get the installation back up
and running?

Best regards,

 Peter Soppe

netdisco@debian:~/logs$ cat netdisco-web.log

2016/06/24-16:49:23 Starman::Server (type Net::Server::PreFork)
starting! pid(38756)

Resolved [*]:5000 to [::]:5000, IPv6

Not including resolved host [0.0.0.0] IPv4 because it will be handled
by [::] IPv6

Binding to TCP port 5000 on host :: with IPv6

Setting gid to "1001 1001"

[38767] 2016-06-24 14:49:24 warn App::Netdisco 2.033006 web

[…]

[38766] 2016-06-24 14:49:24 warn App::Netdisco 2.033006 web

[38767] 2016-06-24 14:49:41 error request to GET / crashed: core -
template - undef error - The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29, <DATA>
line 751.

at /home/netdisco/perl5/lib/perl5/Dancer/Template/Abstract.pm line 93.


[38765] 2016-06-24 14:50:19 error request to GET /ajax/userlog
crashed: The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29, <DATA>
line 751.

[38769] 2016-06-24 14:51:19 error request to GET /ajax/userlog
crashed: The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29, <DATA>
line 751.

[38768] 2016-06-24 14:52:20 error request to GET /ajax/userlog
crashed: The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29, <DATA>
line 751.

[38766] 2016-06-24 14:53:20 error request to GET /ajax/userlog
crashed: The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29, <DATA>
line 751.

[…]

netdisco@debian:~/logs$ cat netdisco-daemon.log | head

[37368] 2016-06-24 14:48:55 warn App::Netdisco 2.033006 backend

The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29.

The schema netdisco is not configured at
/home/netdisco/perl5/lib/perl5/Dancer/Plugin/DBIC.pm line 29.

[…]

Here is the apt-log file from today:

Start-Date: 2016-06-24 16:30:23

Commandline: apt-get install libnet-openssh-perl

Install: libnet-openssh-perl:amd64 (0.57-1)

End-Date: 2016-06-24 16:30:28

Start-Date: 2016-06-24 16:31:29

Commandline: apt-get install libexpect-perl libnet-scp-expect-perl

Install: libio-stty-perl:amd64 (0.03-1, automatic),
libnet-scp-expect-perl:amd64 (0.16-1), libterm-readpassword-perl:amd64
(0.11-2, automatic), libio-pty-perl:amd64 (1.08-1+b2, automatic),
libexpect-perl:amd64 (1.21-1), libnetwork-ipv4addr-perl:amd64
(0.10.ds-2, automatic), libnet-ipv6addr-perl:amd64 (0.2.dfsg.1-3,
automatic)

End-Date: 2016-06-24 16:31:32

Start-Date: 2016-06-24 16:32:38

Commandline: apt-get install libexpect-perl libnet-scp-expect-perl
libtest-expect-perl

Install: libsub-name-perl:amd64 (0.05-1+b2, automatic),
libclass-accessor-chained-perl:amd64 (0.01.1~debian-2.1, automatic),
libexpect-simple-perl:amd64 (0.04-2, automatic),
libtest-expect-perl:amd64 (0.31-2), libclass-accessor-perl:amd64
(0.34-1, automatic)

End-Date: 2016-06-24 16:32:41


                PETER SOPPE


                Leiter Technik

ICSMEDIA GMBH           

Soester Straße 13

D - 48155 Münster

T: +49 251 6060-416

F: +49 251 6060-190

M: +49 151 16786000

p...@icsmedia.de

www.icsmedia.de



                Geschäftsführer: Ulrich Moeller, Kai Mallmann

                Amtsgericht M?nster HRB 4697

                USt-IdNr. DE179964809



Links:
------
[1] http://IP:5000

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape

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



--- End Message ---
--- Begin Message ---
Hi Oliver & all,



I can reproduce the connection error on the cli:



netdisco@debian:~/environments$ perl -w ~netdisco/bin/netdisco-do psql

[55834] 2016-06-27 09:09:21  info psql: started at Mon Jun 27 11:09:21 2016

[55834] 2016-06-27 09:09:21  info psql: finished at Mon Jun 27 11:09:21 2016

[55834] 2016-06-27 09:09:21  info psql: status error: error running job: Not a 
HASH reference at /home/netdisco/bin/netdisco-do line 181.



The Code (/home/netdisco/bin/netdisco-do):



[...]  Line 181:

my $name = (setting('database')->{name} || 'netdisco');

[...]



Seems the setting hash [cannot|has not] be[en] initialized.



The ~netdisco/environments/deployment.yml is still the same:



[...]

# ------------------

# ESSENTIAL SETTINGS

# ------------------



database:

name: 'netdisco'

user: 'netdisco'

pass: 'xxxxxxxxxxxxxxxxxxxxx'

#host: 'localhost'

[...]



The Postgres Connection is not the problem:



netdisco@debian:~$ psql -P pager=off -c "select * from node limit 1" netdisco

        mac        |   switch    | port | vlan | active |   oui    |         
time_first         |        time_recent         |         time_last

-------------------+-------------+------+------+--------+----------+----------------------------+----------------------------+----------------------------

 f8:b1:56:xx:xx:xx | 10.xx.xx.xx | xxx  | xxx   | t      | f8:b1:56 | 
2016-06-24 14:53:08.695626 | 2016-06-24 14:53:08.695626 | 2016-06-24 
14:53:06.406623

(1 Zeile)



Do you have any Idea how to fix this?



Best regards,

  Peter







Hi Peter,



On 2016-06-24 16:00, Soppe, Peter wrote:

> Now I cannot access the netdisco Website (http://IP:5000<http://ip:5000/> 
> [1]) and am

> getting several errors in the log files (see below):

>



At the command line can you run:



~netdisco/bin/netdisco-do psql



And does this connect to the Netdisco database?



The error might indicate that the web server frontend is unable to

connect to the postgres database.



regards,

oliver.




        Peter Soppe


        Leiter Technik



ICSmedia GmbH
        [cid:logo_ics.jpg]
Soester Stra?e 13

D - 48155 M?nster


t: +49 251 6060-416

f: +49 251 6060-190

m: +49 151 16786000



p...@icsmedia.de

www.icsmedia.de






        Gesch?ftsf?hrer: Ulrich Moeller, Kai Mallmann
Amtsgericht M?nster HRB 4697
USt-IdNr. DE179964809


<<attachment: logo_ics.jpg>>


--- End Message ---
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to