Modular dependency problems encountered while installing Red Hat Capsule 6.15

Solution Verified - Updated

Environment

  • Red Hat Capsule 6.15

Issue

  • The following error was encountered while installing a new Red Hat Capsule 6.15 server:

     Problem 1: module satellite-capsule:el8:61520240418172655:980ee624.x86_64 from satellite-capsule-6.15-for-rhel-8-x86_64-rpms requires module(postgresql:12), but none of the providers can be installed
      - module postgresql:10:8020020200825115746:4cda2c84.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:12) provided by postgresql:12:8010120191120141335:e4e244f9.x86_64 from rhel-8-for-x86_64-appstream-rpms
      - module postgresql:12:8010120191120141335:e4e244f9.x86_64 from rhel-8-for-x86_64-appstream-rpms conflicts with module(postgresql:10) provided by postgresql:10:8020020200825115746:4cda2c84.x86_64 from rhel-8-for-x86_64-appstream-rpms
     Problem 5: module satellite-capsule:el8:61520240903125913:30aa3ae0.x86_64 from satellite-capsule-6.15-for-rhel-8-x86_64-rpms requires module(postgresql:12), but none of the providers can be installed
    

    and while proceeding with the troubleshooting as per B.2. PostgreSQL, the following error was encountered:

      # dnf install postgresql-upgrade
      .
      .
      Complete!
    
      # postgresql-setup --upgrade
      ERROR: config file /var/lib/pgsql/data/postgresql.conf is not readable or does not exist
      FATAL: Old cluster in '/var/lib/pgsql/data' does not seem to be initialized
    

Resolution

  1. Perform the checks in the Diagnostic Steps section of this solution article. If step (2) in the Diagnostic Steps section indicates that the following PostgreSQL packages are installed on the system, then proceed with the next steps (otherwise, open a This content is not included.support case with the Red Hat Technical Support for assistance):
  • postgresql-12.22-1.module+el8.10.0+22548+dd326681.x86_64
  • postgresql-server-12.22-1.module+el8.10.0+22548+dd326681.x86_64
  • postgresql-upgrade-12.22-1.module+el8.10.0+22548+dd326681.x86_64
  1. Identify the dnf transaction which installed the PostgreSQL packages on the system:
  # dnf history

     ID     | Command line                                                       | Date and time    | Action(s)      | Altered
     -------------------------------------------------------------------------------------------------------------------------
          .
          .
          5 | install postgresql-upgrade                                         | 2025-03-17 05:17 | Install        |   47
          .
          .
  1. Uninstall the PostgreSQL packages from the system by rolling back the dnf transaction identified in the previous step:
# dnf history undo 5
  1. Proceed with the steps to install the Capsule starting according to 2.4. Installing Capsule Server packages.

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

postgresql packages were pre-installed on the system to be configured as a new Capsule server. These packages were installed on the system prior to 2.4. Installing Capsule Server packages.

Diagnostic Steps

  1. Confirm that the config file /var/lib/pgsql/data/postgresql.conf referred to in the output of the postgresql-setup --upgrade does not exist on the Capsule server:
# ls -laR /var/lib/pgsql/data/
/var/lib/pgsql/data/:
total 0
drwx------. 2 postgres postgres  6 Nov 22 09:28 .
drwx------. 4 postgres postgres 54 Mar 17 05:17 ..
  1. Confirm if there are any postgresql packages installed on the system (the expectation is that no postgresql packages should be already installed on the system before 2.4. Installing Capsule Server packages):
# rpm -qa | grep postgresql
#
SBR
Product(s)
Components
Category

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.