Hello, I would like your help with the following problem I tried to create a CPanel account to associate a domain from the WHM panel, when creating the account it gives me the following error:
I tried restarting the PostgreSQL service thinking it would solve the problem, but it also gives me an error:Account Creation Status: failed (XID cpt5j9) The system failed to connect to the “PostgreSQL” database “postgres” because of an error: connection_failure (could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP /IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" ( ::1) and accepting TCP/IP connections on port 5432?) at /usr/local/cpanel/Whostmgr/ Accounts/Create.pm line 1374.
I appreciate the help you can give meThe Postgres database is not initialized. The system will now initialize it.initdb: directory "/var/lib/pgsql/data" exists but is not empty If you want to create a new database system, either remove or empty the directory "/var/lib/pgsql/data" or run initdb with an argument other than "/var/lib/pgsql/data". 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". Done Waiting for “postgresql” to start ………failed.
Cpanel::Exception::Services::StartError Service Status
undefined status from Cpanel::ServiceManager::Services::Postgresql
Service Error
(XID 2u4952) The “postgresql” service failed to start.
Startup Log
Mar 15 16:36:57 vps-139996.iegrupo.co systemd[1]: Starting PostgreSQL database server...
Mar 15 16:36:57 vps-139996.iegrupo.co systemd[1]: postgresql.service: control process exited, code=exited status=1
Mar 15 16:36:57 vps-139996.iegrupo.co systemd[1]: Failed to start PostgreSQL database server.
Mar 15 16:36:57 vps-139996.iegrupo.co systemd[1]: Unit postgresql.service entered failed state.
Mar 15 16:36:57 vps-139996.iegrupo.co systemd[1]: postgresql.service failed.
postgresql has failed. Contact your system administrator if the service does not automagically recover.
Last edited by a moderator: