PostgreSQL Did not start in time
Fully replayed HAF DB using master
container stopped gracefully with docker stop HAFContainer
however, attempting to run the container again, it hangs at "Starting PostgreSQL 12 database server" for approximately 30 seconds before giving up.
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /usr/share/postgresql/12/extension/hive_fork_manager_update_script_generator.sh
-- Installing: /usr/share/postgresql/12/extension/hive_fork_manager_update--e863eacec400891d10d168ae37895a61147f562b.sql
-- Installing: /usr/share/postgresql/12/extension/hive_fork_manager.control
-- Installing: /usr/share/postgresql/12/extension/hive_fork_manager--e863eacec400891d10d168ae37895a61147f562b.sql
-- Installing: /usr/lib/postgresql/12/lib/./libhfm-e863eacec400891d10d168ae37895a61147f562b.so
-- Set runtime path of "/usr/lib/postgresql/12/lib/./libhfm-e863eacec400891d10d168ae37895a61147f562b.so" to "/usr/lib/postgresql/12/lib"
-- Up-to-date: /usr/lib/postgresql/12/lib
/home/haf_admin
* Starting PostgreSQL 12 database server
* Error: /usr/lib/postgresql/12/bin/pg_ctl /usr/lib/postgresql/12/bin/pg_ctl start -D /home/hived/datadir/haf_db_store/pgdata -l /var/log/postgresql/postgresql-12-main.log -s -o -c unix_socket_directories="/var/run/postgresql" -c config_file="/etc/postgresql/12/main/postgresql.conf" exited with status 1:
2022-12-23 05:26:54.234 GMT [39] LOG: skipping missing configuration file "/home/hived/datadir/haf_postgresql_conf.d/custom_postgres.conf"
2022-12-23 05:26:54.234 GMT [39] LOG: skipping missing configuration file "/home/hived/datadir/haf_postgresql_conf.d/custom_postgres.conf"
2022-12-23 05:26:54.239 UTC [39] LOG: starting PostgreSQL 12.12 (Ubuntu 12.12-0ubuntu0.20.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0, 64-bit
2022-12-23 05:26:54.240 UTC [39] LOG: listening on IPv4 address "0.0.0.0", port 5432
2022-12-23 05:26:54.240 UTC [39] LOG: listening on IPv6 address "::", port 5432
2022-12-23 05:26:54.253 UTC [39] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2022-12-23 05:26:54.573 UTC [40] LOG: database system shutdown was interrupted; last known up at 2022-12-23 05:25:00 UTC
2022-12-23 05:26:54.651 UTC [40] LOG: database system was not properly shut down; automatic recovery in progress
2022-12-23 05:26:54.658 UTC [40] LOG: redo starts at 27A/AD04F618
2022-12-23 05:27:06.572 UTC [40] LOG: invalid record length at 27B/F0B16020: wanted 24, got 0
2022-12-23 05:27:06.572 UTC [40] LOG: redo done at 27B/F0B15FE0
pg_ctl: server did not start in time
...fail!