gnumed-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gm-bootstrap_server.sh / boostrap-latest fails


From: L. Reuther
Subject: gm-bootstrap_server.sh / boostrap-latest fails
Date: Sat, 21 Jan 2023 16:09:39 +0100

OS: Kubuntu 22.10
Postgresql: 14+242ubuntu1
psql: psql (14.6 (Ubuntu 14.6-0ubuntu0.22.10.1))
GNUMed: tip of master, 2023-01-21

Steps to reproduce:

- Install Kubuntu, install gnumed-client/gnumed-server
- for all dependencies (uninstall gnumed-server afterwards)
- add bootstrap-directory to gm-bootstrap_server
- execute "sudo ./gm-bootstrap_server`

Current behaviour:

./gm-bootstrap_server.sh fails with the following exception:

2023-01-21 15:51:53  ERROR     gm.db_pool    [140404742406208 MainThread]  (/home/___/workspace/gnumed/gnume
d/gnumed/Gnumed/pycommon/gmConnectionPool.py::log_pg_settings() #814): cannot log actual collation version (pr
obably PG < 15)
Traceback (most recent call last):
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 812, in log_pg_s
ettings
 File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 146, in execute
   return super().execute(query, vars)
psycopg2.errors.UndefinedFunction: function pg_database_collation_actual_version(oid) does not exist
LINE 1: SELECT *, pg_database_collation_actual_version(oid), pg_enco...
                 ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.

2023-01-21 15:51:53  ERROR     gm.bootstrapper  [140404742406208 MainThread]  (/home/___/workspace/gnumed/gn
umed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py::bootstrap() #1494): Cannot bootstrap bundle [config]
.
Traceback (most recent call last):
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 812, in log_pg_s
ettings
 File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 146, in execute
   return super().execute(query, vars)
psycopg2.errors.UndefinedFunction: function pg_database_collation_actual_version(oid) does not exist
LINE 1: SELECT *, pg_database_collation_actual_version(oid), pg_enco...
                 ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 1492, i
n bootstrap
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 607, in
__init__
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 360, in
__init__
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 371, in
__bootstrap
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 412, in
__connect_superuser_to_srv_template
 File "/home/___/workspace/gnumed/gnumed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py", line 291, in
connect
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 305, in get_conn
ection
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 380, in get_raw_
connection
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 493, in __log_on
_first_contact
 File "/home/___/workspace/gnumed/gnumed/gnumed/Gnumed/pycommon/gmConnectionPool.py", line 815, in log_pg_s
ettings
 File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 146, in execute
   return super().execute(query, vars)
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transact
ion block

2023-01-21 15:51:53  ERROR     gm.bootstrapper  [140404742406208 MainThread]  (/home/___/workspace/gnumed/gn
umed/gnumed/server/bootstrap/./bootstrap_gm_db_system.py::exit_with_msg() #1682): Cannot bootstrap bundles.


Hint: Had gnumed-server 1.8.8 from the ppa installed before, where this error did not happen (but the "value of" error, fixed in `master`). However, did a initdb afterwards.
Hope this is helpful.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]