• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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