Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-102361

Cannot in-place upgrade with PHP 8.2 installed

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • No
    • Moderate
    • rhel-upgrades
    • 20
    • 0
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work?

      IHAC who has PHP 8.2 installed on his RHEL 8.10 machine.
      While in-place upgrading to RHEL 9.6, we can see the PHP 8.2 packages for RHEL 9 are downloaded and then the transaction fails, as it wants to install PHP 8.0.

      AFAICS, the RHEL9 PHP 8.2 dnf module is not triggered to be enabled, as per dnf-plugin-data.txt:

          "modules_to_enable": [],
      

      What is the impact of this issue to you?

      Cannot IPU without removing PHP packages.

      Please provide the package NVR for which the bug is seen:

      leapp-upgrade-el8toel9-0.22.0-1.el8_10.noarch

      How reproducible is this bug?:

      Always

      Steps to reproduce

      1. Install RHEL 8.10, up-to-date.
      2. dnf module enable php:8.2
      3. dnf module install php:8.2
      4. And then leapp upgrade

      Expected results

      PHP 8.2 packages are correctly upgraded.

      Actual results

      2025-07-07 16:45:49.651 DEBUG    PID: 3612721 leapp.workflow.FactsCollection.rpm_scanner: php|8.2.25|1.module+el8.10.0+22478+9eb07224|0|Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>|x86_64|RSA/SHA256, Thu 14 Nov 2024 04:27:30 PM CET, Key ID 199e2f91fd431d51
      2025-07-07 16:45:49.940 DEBUG    PID: 3612721 leapp.workflow.FactsCollection.rpm_scanner: php-cli|8.2.25|1.module+el8.10.0+22478+9eb07224|0|Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>|x86_64|RSA/SHA256, Thu 14 Nov 2024 04:27:30 PM CET, Key ID 199e2f91fd431d51
       :
      2025-07-07 16:48:22.33  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (952/995): php-8.2.28-1.module+el9.6.0+23063+43 2.4 MB/s | 4.7 kB     00:00    
      2025-07-07 16:48:22.51  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (954/995): php-common-8.2.28-1.module+el9.6.0+2  62 MB/s | 723 kB     00:00    
      2025-07-07 16:48:22.80  DEBUG    PID: 3623362 leapp.workflow.Download.dnf_package_download: (955/995): php-cli-8.2.28-1.module+el9.6.0+2306  77 MB/s | 3.6 MB     00:00    
       :
      2025-07-07 16:51:42.273 DEBUG    PID: 3675796 leapp.workflow.InterimPreparation.dnf_dry_run:  php                                      x86_64  8.2.28-1.module+el9.6.0+23063+43495379    AppStream     4.7 k
      2025-07-07 16:51:42.274 DEBUG    PID: 3675796 leapp.workflow.InterimPreparation.dnf_dry_run:  php-cli                                  x86_64  8.2.28-1.module+el9.6.0+23063+43495379    AppStream     3.6 M
       :
      [REBOOT]
       :
      Jul 07 14:55:45 localhost upgrade[954]:             Downgrading:
       :
      Jul 07 14:55:45 localhost upgrade[954]:              php                                      x86_64  8.0.30-3.el9_6                            AppStream     5.2 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-cli                                  x86_64  8.0.30-3.el9_6                            AppStream     3.1 M
      Jul 07 14:55:45 localhost upgrade[954]:              php-common                               x86_64  8.0.30-3.el9_6                            AppStream     682 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-fpm                                  x86_64  8.0.30-3.el9_6                            AppStream     1.6 M
      Jul 07 14:55:45 localhost upgrade[954]:              php-intl                                 x86_64  8.0.30-3.el9_6                            AppStream     149 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-ldap                                 x86_64  8.0.30-3.el9_6                            AppStream      40 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-mbstring                             x86_64  8.0.30-3.el9_6                            AppStream     469 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-mysqlnd                              x86_64  8.0.30-3.el9_6                            AppStream     151 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-opcache                              x86_64  8.0.30-3.el9_6                            AppStream     511 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-pdo                                  x86_64  8.0.30-3.el9_6                            AppStream      82 k
      Jul 07 14:55:45 localhost upgrade[954]:              php-xml                                  x86_64  8.0.30-3.el9_6                            AppStream     135 k
       :
      Jul 07 14:55:45 localhost upgrade[954]:     Stderr: No matches found for the following disable plugin patterns: subscription-manager
      Jul 07 14:55:45 localhost upgrade[954]:             Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp leapp-upgrade-el8toel9 python3-leapp
      Jul 07 14:55:45 localhost upgrade[954]:             Error opening /var/cache/dnf/AppStream-65638f2119ce3bcc/packages/php-8.0.30-3.el9_6.x86_64.rpm: No such file or directory
      Jul 07 14:55:45 localhost upgrade[954]:             Package "php-8.0.30-3.el9_6.x86_64" from repository "AppStream" has incorrect checksum
      Jul 07 14:55:45 localhost upgrade[954]:             Error opening /var/cache/dnf/AppStream-65638f2119ce3bcc/packages/php-cli-8.0.30-3.el9_6.x86_64.rpm: No such file or directory
      Jul 07 14:55:45 localhost upgrade[954]:             Package "php-cli-8.0.30-3.el9_6.x86_64" from repository "AppStream" has incorrect checksum
       :
      Jul 07 14:55:45 localhost upgrade[954]: Following errors occurred and the upgrade cannot continue:
      Jul 07 14:55:45 localhost upgrade[954]:     1. Actor: dnf_upgrade_transaction
      Jul 07 14:55:45 localhost upgrade[954]:        Message: DNF execution failed with non zero exit code. 

              leapp-notifications leapp-notifications
              rhn-support-cbesson Christophe Besson
              Remi Collet Remi Collet
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: