• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved [PPP-48341] Unable to create PostgreSQL service

simoncsc

New Pleskian
Hi,

I installed PostgreSQL sever on my latest version plesk with Centos 7, but couldn't start the service, here is the captured screen.
postpresql_failed1.JPG
I click on the localhost(PostgreSQL), then enter the username and password, after clicking OK, the screen is displayed as below:
postpresql_500.JPG
then I followed the instructions to type these two command via SSH "systemctl status postgresql.service" &
"journalctl -xe" , below is the output:
postpresql_failed3.JPG

postpresql_failed4.JPG
Any body can help me to fix this problem?

Best regards,

Simon
 

Attachments

  • postpresql_failed2.JPG
    postpresql_failed2.JPG
    66.1 KB · Views: 1
  • postpresql_failed2.JPG
    postpresql_failed2.JPG
    66.1 KB · Views: 0
@simoncsc,

Seems like the PostgreSQL instance is not initialized (as it reports empty data directory error). Seems like we don't initialize it anymore after installation, which is reported as bug with ID PPP-48341.

It should work if you run postgresql-setup initdb manually in console and only then then add the database server to Plesk.
 
Thank you for your reply, I run the command your provided, but fail, below is the error message and initdb log.
postpresql_error4.JPG

postpresql_error5.JPG
does it means I need to create a user "postgres" to run the command?
 
Hi

I have fixed the problem, solution: remove postpresql > delete folder /var/lib/pgsql > re-install postpresql > run postgresql-setup initdb
 
Back
Top