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. Unable to upgrade Netdisco docker instance beyond 2.047002
      (Dennis Hayes)
--- Begin Message ---
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<http://www.distributel.ca/>


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

Reply via email to