Applicable to:
- Plesk for Linux
Symptoms
-
After a manual installation/update of PostgreSQL, the following error appears for tasks that involve
sw-engine:CONFIG_TEXT: /usr/bin/sw-engine: /lib64/libpq.so.5: no version information available (required by /usr/bin/sw-engine)
-
libpq5package is supplied by PostgreSQL Global Development Group:# rpm -qi libpq5 | grep Vendor
Vendor : PostgreSQL Global Development Group
Cause
During the manual installation/update of PostgreSQL, an incompatible version of the libpq library was installed.
Resolution
- Connect to your Plesk server via SSH.
-
Remove the
libpq5package without dependencies:# rpm -e --nodeps libpq5
-
Find the repository name from which
libpq5package was installed:# yes n | yum install libpq5 | grep libpq5 | awk '{print $4}'
In the example below, it is
pgdg-common:# yes n | yum install libpq5 | grep libpq5 | awk '{print $4}'
Operation aborted.
pgdg-common -
Locate the file with this repository:
# grep -ir pgdg-common /etc/yum.repos.d/
In the example below, the file is
/etc/yum.repos.d/pgdg-redhat-all.repo:# grep -ir pgdg-common /etc/yum.repos.d/
/etc/yum.repos.d/pgdg-redhat-all.repo:[pgdg-common] -
Open the file from step 4 in a text editor. In this example, we are using vi editor:
# vi /etc/yum.repos.d/pgdg-redhat-all.repo
-
In the
[pgdg-common]section, add the following line:CONFIG_TEXT: exclude=libpq*
- Save the changes and close the file.
-
Install
libpq5from the system repository:# yum install libpq
-
Verify that sw-engine no longer produces errors:
# sw-engine -v
Comments
Not working for custom installed postgres, upgraded to 15.
According to his https://support.plesk.com/hc/en-us/articles/12377086739863-PostgreSQL-support-in-Plesk it should support 15
Please sign in to leave a comment.