Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Failed to start the postgresql service

Discussion in 'Database Discussions' started by benhuragmf, Sep 20, 2017.

Tags:
  1. benhuragmf

    benhuragmf Member

    Joined:
    Feb 12, 2012
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    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.
     
    #1 benhuragmf, Sep 20, 2017
    Last edited by a moderator: Sep 20, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page