• 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.

Issue Postgresql Installation bug

unibtc

New Pleskian
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Web Pro edition, Plesk Onyx 17.5.3, Ubuntu 14.04.5 LTS‬

PROBLEM DESCRIPTION:
When installing postgresql server via Plesk > Tools & Settings > Updates and Upgrades > Add and Remove Product Components > PostgreSQL server support. This installs the latest version which is postgresql 9.6, which is not currently supported by plesk onyx. The installation goes tru perfectly but adding an admin user gives an error.
Internal error: ERROR: unrecognized role option "createuser" LINE 1: create user "admin" password 'xxxxxxx' createdb createuser ^
error thrown by DatabaseManagerPostgreSQL.php on line 360.

The reason for this error is because according to postgresql 9.6 release notes:
Remove the long-deprecated CREATEUSER/NOCREATEUSER options from CREATE ROLE and allied commands (Tom Lane)

CREATEUSER actually meant SUPERUSER, for ancient backwards-compatibility reasons. This has been a constant source of confusion for people who (reasonably) expect it to mean CREATEROLE. It has been deprecated for ten years now, so fix the problem by removing it.

Possible Resolution:
  • Allow user to choose which version of Postgresql to install.
  • Or, Update DatabaseManagerPostgreSQL.php to use the newer syntax:
    CREATE ROLE 'admin' WITH LOGIN PASSWORD 'xxxxxx' CREATEDB CREATEROLE;

 
Alternative Solution:
  • Go tru with the regular installation via Plesk > Tools & Settings > Updates and Upgrades > Add and Remove Product Components > PostgreSQL server support
  • Uninstall postgresql 9.6 -
    Code:
    /etc/init.d/postgresql stop && apt-get --purge remove postgresql\*
  • Install postgresql 9.5 and other components -
    Code:
    apt-get install postgresql-9.5 postgresql-client-9.5 postgresql-client-common postgresql-common postgresql-contrib-9.5
  • Check if postgresql is started
    Code:
    service postgresql status
    , if its not started, start it using
    Code:
    service postgresql start
  • Now you can add admin user via Plesk > Tools & Settings > Database Servers
 
Back
Top