Send netdisco-users mailing list submissions to
[email protected]
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
[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 netdisco-users digest..."
Today's Topics:
1. is there option to make Netdisco poll from specific IP?
(Joseph Bernard)
2. Re: is there option to make Netdisco poll from specific IP?
(Oliver Gorwits)
3. Re: Unable to upgrade Netdisco docker instance beyond
2.047002 (Oliver Gorwits)
--- Begin Message ---
If I have a box with multiple IPs, is there a way to make Netdisco use a
specific one to poll devices?
Thanks,
Joseph B.
--- End Message ---
--- Begin Message ---
Hi Joseph,
No there is not, right now, sorry. But it should be easy to add as a
feature.
(net-snmp library has clientaddr option for this, I believe, but it's not
yet supported in Netdisco configuration)
I've created a ticket here where you can follow progress and upgrade when
implemented:
https://github.com/netdisco/netdisco/issues/952
I suppose workaround would be linux ip routing or policy routing but that
would be for all traffic not just Netdisco.
regards
Oliver
On Tue, 20 Dec 2022 at 20:21, Joseph Bernard <[email protected]> wrote:
> If I have a box with multiple IPs, is there a way to make Netdisco use a
> specific one to poll devices?
>
>
>
> Thanks,
>
> Joseph B.
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
--- End Message ---
--- Begin Message ---
Hi Dennis
I believe this is a common issue people face with containerised postgresql
and persistent data store. I'm afraid I have no easy solution, but this
ticket on github seems to cover the topic and possible solutions well:
https://github.com/docker-library/postgres/issues/37
(credit to C. Ramseyer for the link via our IRC)
I made a note to add something about the problem to container README.
regards,
Oliver.
On Sat, 5 Nov 2022 at 03:52, Dennis Hayes <[email protected]>
wrote:
> Hi,
>
> We’ve been running Netdisco in Docker for some time now, and I attempted
> to upgrade to the latest version. However, I’m getting a PostgreSQL
> version error when trying to bring the containers up and the PostgreSQL
> container never seems to start. Based on the log, the issue is the
> existing data is PostgreSQL version 12 and the version for the newer
> PostgreSQL container is 13.4
>
>
>
> How do I upgrade the data to work with the newer version PostgreSQL in a
> Docker world?
>
>
>
> Here’s the error seen when trying the latest version and the 2.048021
> version. We are currently running 2.047002.
>
>
>
>
>
> dennis@docker2:/opt/docker/netdisco$ docker-compose up
>
> Starting netdisco_netdisco-postgresql_1 ... done
>
> Starting netdisco_netdisco-web_1 ... done
>
> Starting netdisco_netdisco-backend_1 ... done
>
> Attaching to netdisco_netdisco-postgresql_1, netdisco_netdisco-backend_1,
> netdisco_netdisco-web_1
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: starting pg privately to
> container
>
> netdisco-postgresql_1 | waiting for server to start....2022-11-05
> 03:25:02.121 UTC [8] FATAL: database files are incompatible with server
>
> netdisco-postgresql_1 | 2022-11-05 03:25:02.121 UTC [8] DETAIL: The data
> directory was initialized by PostgreSQL version 12, which is not compatible
> with this version 13.4.
>
> netdisco-postgresql_1 | stopped waiting
>
> netdisco-postgresql_1 | pg_ctl: could not start server
>
> netdisco-postgresql_1 | Examine the log output.
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: bringing schema up-to-date
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: importing OUI
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | /usr/local/bin/netdisco-updatedb.sh: line 29: [:
> : integer expression expected
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: marking schema as
> up-to-date
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: adding admin user if none
> exists
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: adding session key if
> none exists
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: queueing stats job
>
> netdisco-postgresql_1 | psql: error: could not connect to server: No such
> file or directory
>
> netdisco-postgresql_1 | Is the server running locally and accepting
>
> netdisco-postgresql_1 | connections on Unix domain socket
> "/var/run/postgresql/.s.PGSQL.5432"?
>
> netdisco-postgresql_1 | netdisco-db-entrypoint: shutting down pg (will
> restart, listening for clients)
>
> netdisco-postgresql_1 | pg_ctl: PID file
> "/var/lib/postgresql/data/postmaster.pid" does not exist
>
> netdisco-postgresql_1 | Is server running?
>
> netdisco-postgresql_1 |
>
> netdisco-postgresql_1 | PostgreSQL Database directory appears to contain
> a database; Skipping initialization
>
> netdisco-postgresql_1 |
>
> netdisco-postgresql_1 | 2022-11-05 03:25:02.748 UTC [1] FATAL: database
> files are incompatible with server
>
> netdisco-postgresql_1 | 2022-11-05 03:25:02.748 UTC [1] DETAIL: The data
> directory was initialized by PostgreSQL version 12, which is not compatible
> with this version 13.4.
>
> netdisco-backend_1 | config watcher: watching
> /home/netdisco/environments for updates.
>
> netdisco_netdisco-postgresql_1 exited with code 1
>
> netdisco-web_1 | config watcher: watching
> /home/netdisco/environments for updates.
>
> netdisco-web_1 | 2022/11/05-03:25:04 Starman::Server (type
> Net::Server::PreFork) starting! pid(6)
>
> netdisco-web_1 | Resolved [*]:5000 to [::]:5000, IPv6
>
> netdisco-web_1 | Not including resolved host [0.0.0.0] IPv4
> because it will be handled by [::] IPv6
>
> netdisco-web_1 | Binding to TCP port 5000 on host :: with IPv6
>
> netdisco-web_1 | Setting gid to "901 901"
>
> netdisco-web_1 | [11] 2022-11-05 03:25:05 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [10] 2022-11-05 03:25:05 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [9] 2022-11-05 03:25:05 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [8] 2022-11-05 03:25:05 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [7] 2022-11-05 03:25:05 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | DBIx::Class::Schema::Versioned::_on_connect():
> Your DB is currently unversioned. Please call upgrade on your schema to
> sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
>
> netdisco-web_1 | DBIx::Class::Schema::Versioned::_on_connect():
> Your DB is currently unversioned. Please call upgrade on your schema to
> sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
>
> netdisco-web_1 | DBIx::Class::Schema::Versioned::_on_connect():
> Your DB is currently unversioned. Please call upgrade on your schema to
> sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
>
> netdisco-web_1 | DBIx::Class::Schema::Versioned::_on_connect():
> Your DB is currently unversioned. Please call upgrade on your schema to
> sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
>
> netdisco-web_1 | DBIx::Class::Schema::Versioned::_on_connect():
> Your DB is currently unversioned. Please call upgrade on your schema to
> sync the DB. at /home/netdisco/perl5/lib/perl5/DBICx/Sugar.pm line 121
>
> netdisco-web_1 | Error while loading
> /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key
> must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm
> line 38.
>
> netdisco-web_1 | Compilation failed in require at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | BEGIN failed--compilation aborted at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | Error while loading
> /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key
> must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm
> line 38.
>
> netdisco-web_1 | Compilation failed in require at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | BEGIN failed--compilation aborted at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | Child process 9 exited with status 11
>
> netdisco-web_1 | Error while loading
> /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key
> must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm
> line 38.
>
> netdisco-web_1 | Compilation failed in require at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | BEGIN failed--compilation aborted at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | Child process 8 exited with status 11
>
> netdisco-web_1 | Error while loading
> /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key
> must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm
> line 38.
>
> netdisco-web_1 | Compilation failed in require at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | BEGIN failed--compilation aborted at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | Child process 11 exited with status 11
>
> netdisco-web_1 | Child process 10 exited with status 11
>
> netdisco-web_1 | Error while loading
> /home/netdisco/perl5/bin/netdisco-web-fg: The setting session_cookie_key
> must be defined at /home/netdisco/perl5/lib/perl5/Dancer/Session/Cookie.pm
> line 38.
>
> netdisco-web_1 | Compilation failed in require at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | BEGIN failed--compilation aborted at
> /home/netdisco/perl5/bin/netdisco-web-fg line 53.
>
> netdisco-web_1 | Child process 7 exited with status 11
>
> netdisco-web_1 | [17] 2022-11-05 03:25:28 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [18] 2022-11-05 03:25:28 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [19] 2022-11-05 03:25:28 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [21] 2022-11-05 03:25:28 warn App::Netdisco
> 2.048000 web
>
> netdisco-web_1 | [20] 2022-11-05 03:25:28 warn App::Netdisco
> 2.048000 web
>
>
>
> Regards,
>
> *Dennis Hayes* / Senior Network Architect
>
> *DISTRIBUTEL*
> 801 - 3300 Bloor Street West
> Toronto ON M8X 2X2
>
> T 833.287.7150
>
> www.distributel.ca
>
>
> _______________________________________________
> Netdisco mailing list
> [email protected]
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/
>
--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users