I am trying to create a box through Fabric on Openstack. Part of the installation includes installing and starting PostgreSQL.
This command works just fine:
$ sudo service postgresql initdb
This command does not work:
$ sudo service postgresql start
Exiting the error log does not cause problems when executing this command:
$ cat /var/lib/pgsql/pgstartup.log
This command displays the following messages:
$ cat /var/lib/pgsql/data/pg_log/postgresql-Wed.log
LOG: could not open configuration file "/var/lib/pgsql/data/pg_hba.conf": permission denied FATAL: could not load pg_hba.conf
My user, when executing these commands, has the following groups:
vagrant, wheel
My user is on the sudoers list in the /etc/sudoers section with these permissions:
vagrant ALL=(ALL) NOPASSWD: ALL
perms on pgsql :
[ root@integration ~]
and sub dir data :
[ root@integration ~]
source share