Hi,
With Fedora 18 incoming, I took the perfectly sane decision to wipe out my pgsql server to start this year clean. Unfortunatly I've not been able to get it working back.
Here is the steps I've followed :
Here is the error's log with selinux set on permissive :
Do you have any idea ? Google gives too many different answers to sort it out...
Regards,
JRM
With Fedora 18 incoming, I took the perfectly sane decision to wipe out my pgsql server to start this year clean. Unfortunatly I've not been able to get it working back.
Here is the steps I've followed :
Code:
sudo yum install postgresql-server pgadmin3 postgis postgresql-upgrade
sudo postgresql-setup initdbf
sudo systemctl start postgresql.service
sudo systemctl enable postgresql.service
sudo su - postgres
# conf of the users
sudo vi /var/lib/pgsql/data/pg_hba.conf
# set to md5
sudo service postgresql restart
Code:
$ sudo systemctl start postgresql.service
Job for postgresql.service failed. See 'systemctl status postgresql.service' and 'journalctl -n' for details.
Code:
$ systemctl status postgresql.service
postgresql.service - PostgreSQL database server
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
Active: failed (Result: exit-code) since Mon, 2013-01-07 16:57:49 CET; 12ms ago
Process: 1902 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE)
Process: 1895 ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/postgresql.service
Code:
$ sudo journalctl -n
dbus[1178]: avc: received setenforce notice (enforcing=0)
sudo[1892]: jrm : TTY=pts/2 ; PWD=/home/jrm ; USER=root ; COMMAND=/bin/systemctl start postgresql.service
systemd[1]: Starting PostgreSQL database server...
pg_ctl[1902]: pg_ctl: could not start server
pg_ctl[1902]: Examine the log output.
systemd[1]: postgresql.service: control process exited, code=exited status=1
systemd[1]: Failed to start PostgreSQL database server.
systemd[1]: Unit postgresql.service entered failed state
systemd[1]: SELinux Got Sender :1.72
sudo[1909]: jrm : TTY=pts/2 ; PWD=/home/jrm ; USER=root ; COMMAND=/bin/journalctl -n
Regards,
JRM