Failed to start the postgresql service

benhuragmf

Member
Feb 12, 2012
17
0
51
cPanel Access Level
Website Owner
Need help my server has this error
what can I do


Code:
Reiniciando Servidor PostgresSQL:[

The Postgres database is not initialized. The system will now initialize it.The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale "en_US.UTF-8". The default database encoding has accordingly been set to "UTF8". The default text search configuration will be set to "english". Data page checksums are disabled. initdb: directory "/var/lib/pgsql/9.4/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/9.4/data" or run initdb with an argument other than "/var/lib/pgsql/9.4/data". Done Waiting for “postgresql” to start ……Job for postgresql.service failed because the control process exited with error code. See "systemctl status postgresql.service" and "journalctl -xe" for details. …failed.

Cpanel::Exception::Services::StartError Service Status

Service Error
(XID nny2g8) Falha ao iniciar o serviço “postgresql”.
The “postgresql” service failed to start.

Startup Log
Sep 20 06:26:08 linux.domain.net systemd[1]: Starting PostgreSQL database server...
Sep 20 06:26:08 linux.domain.net systemd[1]: postgresql.service: control process exited, code=exited status=1
Sep 20 06:26:08 linux.domain.net systemd[1]: Failed to start PostgreSQL database server.
Sep 20 06:26:08 linux.domain.net systemd[1]: Unit postgresql.service entered failed state.
Sep 20 06:26:08 linux.domain.net systemd[1]: postgresql.service failed.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

Do you notice any error messages output to the most recent log file under the /var/lib/pgsql/data/pg_log/ directory?

Thank you.