Skip to content

Permission fix

Konrad Botor requested to merge kbotor/hive-453-permission-fixes into develop

Fix for the permission issue discussed here: https://chat.syncad.com/channel/hive?msg=ywHwHfJzNxNrSDrjC

changed ownership of '/home/hived/datadir/haf_db_store' from hived:users to postgres:postgres
./haf/scripts/setup_postgres.sh parameters: --haf-admin-account=haf_admin --haf-binaries-dir=/home/haf_admin/build --haf-database-store=/home/hived/datadir/haf_db_store/tablespace
Script path is: /home/haf_admin/haf/scripts
Attempting to install hive_fork_manager extenstion into PostgreSQL directories...
/home/haf_admin/build /home/haf_admin
[0/1] Install the project...
-- Install configuration: "Release"
-- Installing: /usr/share/postgresql/14/extension/hive_fork_manager_update_script_generator.sh
-- Installing: /usr/share/postgresql/14/extension/hive_fork_manager_update--555a7bf0d729aa235e08c99435fdca129d9ef7ec.sql
-- Installing: /usr/share/postgresql/14/extension/hive_fork_manager.control
-- Installing: /usr/share/postgresql/14/extension/hive_fork_manager--555a7bf0d729aa235e08c99435fdca129d9ef7ec.sql
-- Installing: /usr/lib/postgresql/14/lib/./libhfm-555a7bf0d729aa235e08c99435fdca129d9ef7ec.so
-- Set runtime path of "/usr/lib/postgresql/14/lib/./libhfm-555a7bf0d729aa235e08c99435fdca129d9ef7ec.so" to "/usr/lib/postgresql/14/lib"
-- Up-to-date: /usr/lib/postgresql/14/lib
/home/haf_admin
 * Starting PostgreSQL 14 database server
 * Error: /usr/lib/postgresql/14/bin/pg_ctl /usr/lib/postgresql/14/bin/pg_ctl start -D /home/hived/datadir/haf_db_store/pgdata -l /var/log/postgresql/postgresql-14-main.log -s -o -c unix_socket_directories="/var/run/postgresql" -c config_file="/etc/postgresql/14/main/postgresql.conf"  exited with status 1:
2023-02-16 20:15:44.480 UTC [56] FATAL:  could not open log file "/home/hived/datadir/postgresql_logs/postgresql-2023-02-16_201544.log": Permission denied
2023-02-16 20:15:44.580 UTC [56] LOG:  database system is shut down
pg_ctl: could not start server
Examine the log output.
   ...fail!
Performing cleanup....
Hived pid:
Waiting for hived finish...
Hived finish done.
 * Stopping PostgreSQL 14 database server
   ...done.
Waiting for postgres process: 0 finish...
postgres finish done.
Cleanup actions done.

Merge request reports

Loading