Red Hat Satellite or Capsule (installation or upgrade) fails with the Error rh-postgresql96-postgresql-syspaths conflicts with postgresql-9.2.24-1.el7_5.x86_64
Environment
- Red Hat Satellite 6.8
- Red Hat Capsule 6.10
Issue
-
While trying to install Red Hat Satellite, it fails with the following error message:
[ERROR 2019-10-23T14:51:25 main] /Stage[main]/Postgresql::Server::Install/Package[postgresql-server]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install postgresql-server' returned 1: Error: rh-postgresql96-postgresql-syspaths conflicts with postgresql-9.2.24-1.el7_5.x86_64 -
A similar error could be observed during the upgrade to Red Hat Capsule 6.10 as well.
2021-11-17 09:19:31 [ERROR ] [configure] Execution of '/bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-syspaths' returned 1: Error: rh-postgresql12-postgresql-syspaths conflicts with postgresql-9.2.24-7.el7_9.x86_64 2021-11-17 09:19:31 [ERROR ] [configure] You could try using --skip-broken to work around the problem 2021-11-17 09:19:31 [ERROR ] [configure] You could try running: rpm -Va --nofiles --nodigest 2021-11-17 09:19:31 [ERROR ] [configure] Loaded plugins: langpacks, product-id, subscription-manager 2021-11-17 09:19:31 [ERROR ] [configure] /Stage[main]/Postgresql::Client/Package[postgresql-client]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/yum -d 0 -e 0 -y install rh-postgresql12-postgresql-syspaths' returned 1: Error: rh-postgresql12-postgresql-syspaths conflicts with postgresql-9.2.24-7.el7_9.x86_64
Resolution
-
Create a snapshot\backup of the affected Red Hat Satellite or Capsule server and then proceed with the removal of
postgresqlpackage from the affected system.# rpm --nodeps -evh postgresql -
Once the removal is completed,
-
If It was an installation attempt that had failed, then simply execute the
satellite-installercommand to get it completed. -
If it was an upgrade attempt that failed, then re-run the upgrade and observe it till the end of the execution.
-
-
NOTE: To address this concern during the upgrade of capsule
6.9to6.10, The Bugzilla This content is not included.2204490 has been opened.
- In case of any further queries or concerns, please reach out to This content is not included.Red Hat Technical Support.
For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.
Root Cause
- Package postgresql was installed on the Satellite or Capsule server which was not required.
Diagnostic Steps
-
Check the log file
satellite.logfor Red Hat Satellite orcapsule.logfor Red Hat Satellite Capsule server inside/var/log/foreman-installerdirectory for the errors. -
In case no error messages were found in
/var/log/foreman-installer/satellite.logor/var/log/foreman-installer/capsule.log, please check for errors in/var/log/foreman-maintain/foreman-maintain.log
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.