Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-37417

dnf errors when upgrading MariaDB from 10.6.15 to 11.4.7 in Almalinux 9.6 and Almalinux 8.1

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      When upgrading MariaDB from 10.6.15 to 11.4.7 in Almalinux 9.6 and Almalinux 8.1
      I noticed for the
      MariaDB-server
      package upgrade would fail, while other packages upgraded fine, when using the following command:

      dnf update Maria*
      

      Workaround was to delete MariaDB-server and reinstall.
      So the following workaround worked to upgrade MariaDB-server and all packages without problems:

      dnf remove  MariaDB-server MariaDB-server-compat
      dnf update Maria*
      dnf install  MariaDB-server MariaDB-server-compat
      

      Here are related log:

      Upgrading directly from MariaDB or MySQL 10
      to MariaDB 11 may not be safe in all cases.
      A manual dump and restore using mariadb-dump (or mysqldump) is recommended.
      It is important to review the MariaDB manual's Upgrading section for
      version-specific incompatibilities.
       
      A manual upgrade is required.
       
      - Ensure that you have a complete, working backup of your data and my.cnf
      files
      - Shut down the MariaDB or MySQL server cleanly
      - Remove the existing MariaDB or MySQL packages. Usually this command will
      list the packages you should remove:
      rpm -qa | grep -iE '^(mariadb|mysql)-'
          
          You may choose to use 'rpm --nodeps -ev <package-name>' to remove
          the package which contains the mysqlclient shared library.  The
          library will be reinstalled by the MariaDB-shared package.
          
      - Install the new MariaDB packages supplied by MariaDB Foundation
      - Ensure that the MariaDB server is started
      - Run the 'mariadb-upgrade' program
       
      This is a brief description of the upgrade process.  Important details
      can be found in the MariaDB manual, in the Upgrading section.
       
      ---
       
      error: %prein(MariaDB-server-11.4.7-1.el8.x86_64) scriptlet failed, exit status 1
       
      Error in PREIN scriptlet in rpm package MariaDB-server
      Upgrading        : MariaDB-backup-11.4.7-1.el8.x86_64                                                                                                                                             9/14
      error: MariaDB-server-11.4.7-1.el8.x86_64: install failed
       
      Cleanup          : MariaDB-client-10.6.20-1.el8.x86_64                                                                                                                                           10/14
      error: MariaDB-server-10.6.20-1.el8.x86_64: erase skipped
       
      Cleanup          : MariaDB-backup-10.6.20-1.el8.x86_64                                                                                                                                           11/14
      Cleanup          : MariaDB-common-10.6.20-1.el8.x86_64                                                                                                                                           12/14
      Cleanup          : MariaDB-shared-10.6.20-1.el8.x86_64                                                                                                                                           13/14
      Running scriptlet: MariaDB-shared-10.6.20-1.el8.x86_64                                                                                                                                           13/14
      Verifying        : MariaDB-client-compat-11.4.7-1.el8.noarch                                                                                                                                      1/14
      Verifying        : MariaDB-server-compat-11.4.7-1.el8.noarch                                                                                                                                      2/14
      Verifying        : liburing-1.0.7-3.el8.x86_64                                                                                                                                                    3/14
      Verifying        : pv-1.6.6-7.el8.x86_64                                                                                                                                                          4/14
      Verifying        : MariaDB-backup-11.4.7-1.el8.x86_64                                                                                                                                             5/14
      Verifying        : MariaDB-backup-10.6.20-1.el8.x86_64                                                                                                                                            6/14
      Verifying        : MariaDB-client-11.4.7-1.el8.x86_64                                                                                                                                             7/14
      Verifying        : MariaDB-client-10.6.20-1.el8.x86_64                                                                                                                                            8/14
      Verifying        : MariaDB-common-11.4.7-1.el8.x86_64                                                                                                                                             9/14
      Verifying        : MariaDB-common-10.6.20-1.el8.x86_64                                                                                                                                           10/14
      Verifying        : MariaDB-server-11.4.7-1.el8.x86_64                                                                                                                                            11/14
      Verifying        : MariaDB-server-10.6.20-1.el8.x86_64                                                                                                                                           12/14
      Verifying        : MariaDB-shared-11.4.7-1.el8.x86_64                                                                                                                                            13/14
      Verifying        : MariaDB-shared-10.6.20-1.el8.x86_64                                                                                                                                           14/14
       
      Upgraded:
      MariaDB-backup-11.4.7-1.el8.x86_64                MariaDB-client-11.4.7-1.el8.x86_64                MariaDB-common-11.4.7-1.el8.x86_64                MariaDB-shared-11.4.7-1.el8.x86_64
       
      Installed:
      MariaDB-client-compat-11.4.7-1.el8.noarch                 MariaDB-server-compat-11.4.7-1.el8.noarch                 liburing-1.0.7-3.el8.x86_64                 pv-1.6.6-7.el8.x86_64
       
      Failed:
      MariaDB-server-10.6.20-1.el8.x86_64                                                                 MariaDB-server-11.4.7-1.el8.x86_64
       
      Error: Transaction failed
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              FK F K
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.