scorpio2002
18th April 2011, 03:53 PM
Hi there,
I installed postgres but I can't start it:
# service postgresql start
Starting postgresql (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
Now, I checked some logs and there is nothing. The systemctl command just gives me useless info:
# systemctl --failed
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
postgresql.service loaded failed failed SYSV: PostgreSQL database server.
This looks scary: error messages should be shown clearly, not hidden carefully. Where can I find thee actual error? xD
---------- Post added at 06:53 AM ---------- Previous post was at 05:50 AM ----------
I solved the problem by running:
initdb -D /var/lib/pgsql/data/
I installed postgres but I can't start it:
# service postgresql start
Starting postgresql (via systemctl): Job failed. See system logs and 'systemctl status' for details.
[FAILED]
Now, I checked some logs and there is nothing. The systemctl command just gives me useless info:
# systemctl --failed
UNIT LOAD ACTIVE SUB JOB DESCRIPTION
postgresql.service loaded failed failed SYSV: PostgreSQL database server.
This looks scary: error messages should be shown clearly, not hidden carefully. Where can I find thee actual error? xD
---------- Post added at 06:53 AM ---------- Previous post was at 05:50 AM ----------
I solved the problem by running:
initdb -D /var/lib/pgsql/data/