postgres  | The files belonging to this database system will be owned by user "postgres".
postgres  | This user must also own the server process.
postgres  | 
postgres  | The database cluster will be initialized with locale "en_US.utf8".
postgres  | The default database encoding has accordingly been set to "UTF8".
postgres  | The default text search configuration will be set to "english".
postgres  | 
postgres  | Data page checksums are disabled.
postgres  | 
postgres  | fixing permissions on existing directory /var/lib/postgresql/data ... ok
postgres  | creating subdirectories ... ok
postgres  | selecting dynamic shared memory implementation ... posix
postgres  | selecting default "max_connections" ... 100
postgres  | selecting default "shared_buffers" ... 128MB
postgres  | selecting default time zone ... Etc/UTC
postgres  | creating configuration files ... ok
postgres  | running bootstrap script ... ok
postgres  | performing post-bootstrap initialization ... ok
postgres  | syncing data to disk ... ok
postgres  | 
postgres  | 
postgres  | Success. You can now start the database server using:
postgres  | 
postgres  |     pg_ctl -D /var/lib/postgresql/data -l logfile start
postgres  | 
postgres  | initdb: warning: enabling "trust" authentication for local connections
postgres  | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
postgres  | waiting for server to start....2026-05-15 10:31:27.967 UTC [48] LOG:  starting PostgreSQL 17.7 (Debian 17.7-3.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
postgres  | 2026-05-15 10:31:27.970 UTC [48] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres  | 2026-05-15 10:31:27.982 UTC [51] LOG:  database system was shut down at 2026-05-15 10:31:27 UTC
postgres  | 2026-05-15 10:31:27.989 UTC [48] LOG:  database system is ready to accept connections
postgres  |  done
postgres  | server started
postgres  | 
postgres  | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/db-pg.conf
postgres  | 
postgres  | /usr/local/bin/docker-entrypoint.sh: running /docker-entrypoint-initdb.d/db-pg.sh
postgres  | #!/bin/bash -xv
postgres  | # Copyright (C) 2022, 2024 Nordix Foundation. All rights reserved
postgres  | #
postgres  | # Licensed under the Apache License, Version 2.0 (the "License");
postgres  | # you may not use this file except in compliance with the License.
postgres  | # You may obtain a copy of the License at
postgres  | #
postgres  | #         http://www.apache.org/licenses/LICENSE-2.0
postgres  | #
postgres  | # Unless required by applicable law or agreed to in writing, software
postgres  | # distributed under the License is distributed on an "AS IS" BASIS,
postgres  | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
postgres  | # See the License for the specific language governing permissions and
postgres  | # limitations under the License.
postgres  | 
postgres  | psql -U postgres -d postgres --command "CREATE USER ${PGSQL_USER} WITH PASSWORD '${PGSQL_PASSWORD}';"
postgres  | + psql -U postgres -d postgres --command 'CREATE USER policy_user WITH PASSWORD '\''policy_user'\'';'
postgres  | 
postgres  | for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | do
postgres  |     psql -U postgres -d postgres --command "CREATE DATABASE ${db};"
postgres  |     psql -U postgres -d postgres --command "ALTER DATABASE ${db} OWNER TO ${PGSQL_USER} ;"
postgres  |     psql -U postgres -d postgres --command "GRANT ALL PRIVILEGES ON DATABASE ${db} TO ${PGSQL_USER} ;"
postgres  | done
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE migration;'
postgres  | CREATE ROLE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE migration OWNER TO policy_user ;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE migration TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | GRANT
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE pooling;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE pooling OWNER TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE pooling TO policy_user ;'
postgres  | GRANT
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE policyadmin;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE policyadmin OWNER TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE policyadmin TO policy_user ;'
postgres  | GRANT
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE policyclamp;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE policyclamp OWNER TO policy_user ;'
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE policyclamp TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | GRANT
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE operationshistory;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE operationshistory OWNER TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE operationshistory TO policy_user ;'
postgres  | GRANT
postgres  | + for db in migration pooling policyadmin policyclamp operationshistory clampacm
postgres  | + psql -U postgres -d postgres --command 'CREATE DATABASE clampacm;'
postgres  | CREATE DATABASE
postgres  | + psql -U postgres -d postgres --command 'ALTER DATABASE clampacm OWNER TO policy_user ;'
postgres  | ALTER DATABASE
postgres  | + psql -U postgres -d postgres --command 'GRANT ALL PRIVILEGES ON DATABASE clampacm TO policy_user ;'
postgres  | GRANT
postgres  | 
postgres  | 2026-05-15 10:31:29.516 UTC [48] LOG:  received fast shutdown request
postgres  | waiting for server to shut down....2026-05-15 10:31:29.520 UTC [48] LOG:  aborting any active transactions
postgres  | 2026-05-15 10:31:29.522 UTC [48] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
postgres  | 2026-05-15 10:31:29.524 UTC [49] LOG:  shutting down
postgres  | 2026-05-15 10:31:29.526 UTC [49] LOG:  checkpoint starting: shutdown immediate
postgres  | 2026-05-15 10:31:30.308 UTC [49] LOG:  checkpoint complete: wrote 5529 buffers (33.7%); 0 WAL file(s) added, 0 removed, 1 recycled; write=0.577 s, sync=0.194 s, total=0.784 s; sync files=1788, longest=0.005 s, average=0.001 s; distance=25541 kB, estimate=25541 kB; lsn=0/2DDEC68, redo lsn=0/2DDEC68
postgres  | 2026-05-15 10:31:30.320 UTC [48] LOG:  database system is shut down
postgres  |  done
postgres  | server stopped
postgres  | 
postgres  | PostgreSQL init process complete; ready for start up.
postgres  | 
postgres  | 2026-05-15 10:31:30.440 UTC [1] LOG:  starting PostgreSQL 17.7 (Debian 17.7-3.pgdg13+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit
postgres  | 2026-05-15 10:31:30.443 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
postgres  | 2026-05-15 10:31:30.443 UTC [1] LOG:  listening on IPv6 address "::", port 5432
postgres  | 2026-05-15 10:31:30.451 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres  | 2026-05-15 10:31:30.458 UTC [101] LOG:  database system was shut down at 2026-05-15 10:31:30 UTC
postgres  | 2026-05-15 10:31:30.463 UTC [1] LOG:  database system is ready to accept connections
postgres  | 2026-05-15 10:33:02.771 UTC [128] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:33:02.771 UTC [128] DETAIL:  Key (identificationid)=(dd36aaa4-580f-4193-a52b-37c3a955b11a) already exists.
postgres  | 2026-05-15 10:33:02.771 UTC [128] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:33:51.662 UTC [128] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:33:51.662 UTC [128] DETAIL:  Key (identificationid)=(bd47d5b9-75b7-47b0-8246-75708145b91e) already exists.
postgres  | 2026-05-15 10:33:51.662 UTC [128] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:34:12.597 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:34:12.597 UTC [132] DETAIL:  Key (identificationid)=(eb599df7-901c-4727-91df-1418bffe7de6) already exists.
postgres  | 2026-05-15 10:34:12.597 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:35:55.345 UTC [128] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:35:55.345 UTC [128] DETAIL:  Key (identificationid)=(27054afa-6b9f-43e1-8b40-4f00a87caa52) already exists.
postgres  | 2026-05-15 10:35:55.345 UTC [128] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:36:30.553 UTC [99] LOG:  checkpoint starting: time
postgres  | 2026-05-15 10:36:54.419 UTC [99] LOG:  checkpoint complete: wrote 241 buffers (1.5%); 0 WAL file(s) added, 0 removed, 0 recycled; write=23.853 s, sync=0.007 s, total=23.867 s; sync files=131, longest=0.001 s, average=0.001 s; distance=1341 kB, estimate=1341 kB; lsn=0/2F2E4F0, redo lsn=0/2F2E460
postgres  | 2026-05-15 10:37:49.470 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:37:49.470 UTC [130] DETAIL:  Key (identificationid)=(bd0aa383-50e2-4622-892c-a9c7745f2c46) already exists.
postgres  | 2026-05-15 10:37:49.470 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:39:40.301 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:39:40.301 UTC [132] DETAIL:  Key (identificationid)=(df7dfb7f-958a-4e58-9000-8364a5c13521) already exists.
postgres  | 2026-05-15 10:39:40.301 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:39:53.836 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:39:53.836 UTC [132] DETAIL:  Key (identificationid)=(df7dfb7f-958a-4e58-9000-8364a5c13521) already exists.
postgres  | 2026-05-15 10:39:53.836 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:40:15.752 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:40:15.752 UTC [132] DETAIL:  Key (identificationid)=(df7dfb7f-958a-4e58-9000-8364a5c13521) already exists.
postgres  | 2026-05-15 10:40:15.752 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:40:26.804 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:40:26.804 UTC [130] DETAIL:  Key (identificationid)=(df7dfb7f-958a-4e58-9000-8364a5c13521) already exists.
postgres  | 2026-05-15 10:40:26.804 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:40:44.465 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:40:44.465 UTC [130] DETAIL:  Key (identificationid)=(df7dfb7f-958a-4e58-9000-8364a5c13521) already exists.
postgres  | 2026-05-15 10:40:44.465 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:41:30.505 UTC [99] LOG:  checkpoint starting: time
postgres  | 2026-05-15 10:41:35.933 UTC [99] LOG:  checkpoint complete: wrote 55 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=5.416 s, sync=0.006 s, total=5.428 s; sync files=31, longest=0.003 s, average=0.001 s; distance=522 kB, estimate=1259 kB; lsn=0/2FB0CC8, redo lsn=0/2FB0C70
postgres  | 2026-05-15 10:41:51.730 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:41:51.730 UTC [132] DETAIL:  Key (identificationid)=(a1c3205f-b38c-4eac-bc08-c15109dc61fb) already exists.
postgres  | 2026-05-15 10:41:51.730 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:41:57.373 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:41:57.373 UTC [130] DETAIL:  Key (identificationid)=(a1c3205f-b38c-4eac-bc08-c15109dc61fb) already exists.
postgres  | 2026-05-15 10:41:57.373 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:41:57.579 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:41:57.579 UTC [130] DETAIL:  Key (identificationid)=(a1c3205f-b38c-4eac-bc08-c15109dc61fb) already exists.
postgres  | 2026-05-15 10:41:57.579 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:41:57.717 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:41:57.717 UTC [132] DETAIL:  Key (identificationid)=(a1c3205f-b38c-4eac-bc08-c15109dc61fb) already exists.
postgres  | 2026-05-15 10:41:57.717 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:08.488 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:08.488 UTC [130] DETAIL:  Key (identificationid)=(a1c3205f-b38c-4eac-bc08-c15109dc61fb) already exists.
postgres  | 2026-05-15 10:42:08.488 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:19.406 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:19.406 UTC [130] DETAIL:  Key (identificationid)=(77330b23-94e5-46b1-83f5-bed44a803fe4) already exists.
postgres  | 2026-05-15 10:42:19.406 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:19.781 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:19.781 UTC [130] DETAIL:  Key (identificationid)=(77330b23-94e5-46b1-83f5-bed44a803fe4) already exists.
postgres  | 2026-05-15 10:42:19.781 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:19.917 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:19.917 UTC [130] DETAIL:  Key (identificationid)=(77330b23-94e5-46b1-83f5-bed44a803fe4) already exists.
postgres  | 2026-05-15 10:42:19.917 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:25.487 UTC [130] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:25.487 UTC [130] DETAIL:  Key (identificationid)=(77330b23-94e5-46b1-83f5-bed44a803fe4) already exists.
postgres  | 2026-05-15 10:42:25.487 UTC [130] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
postgres  | 2026-05-15 10:42:53.023 UTC [132] ERROR:  duplicate key value violates unique constraint "messagejob_identificationid_index"
postgres  | 2026-05-15 10:42:53.023 UTC [132] DETAIL:  Key (identificationid)=(9bc644cd-b852-4117-bcd7-3025bae24a54) already exists.
postgres  | 2026-05-15 10:42:53.023 UTC [132] STATEMENT:  insert into MessageJob (identificationId,jobStarted,jobId) values ($1,$2,$3)
