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

Fedora broken RPM repository on archive.mariadb.org for 10.4.24-28

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.4.24, 10.4.25, 10.4.26, 10.4.27, 10.4.28
    • N/A
    • Repositories
    • Fedora 37

    Description

      There appears to be a broken repository on https://archive.mariadb.org/. When manually selecting the yum repository for versions 10.4.24-10.4.28, installing MariaDB Server fails with

      Downloading error(s): repodata/50a4af1d6779e8011267b3557b29e874e97cf7d83003df58a467be319c858fbf-updateinfo.xml.gz - Cannot download, all mirrors were already tried without success

      This is reproducible in a docker container with the following commands

       
      docker run --rm -it fedora:latest bash
       
      cat <<EOF >/etc/yum.repos.d/MariaDB.repo
      [mariadb]
      name=MariaDB
      baseurl=https://archive.mariadb.org/mariadb-10.4.26/yum/fedora/33/x86_64/
      gpgkey=https://ftp.osuosl.org/pub/mariadb/yum/RPM-GPG-KEY-MariaDB
      gpgcheck=1
      EOF
       
      dnf install -y MariaDB-server
      # Errors during downloading metadata for repository 'mariadb':
      #   - Status code: 404 for https://archive.mariadb.org/mariadb-10.4.26/yum/fedora/33/x86_64/repodata/50a4af1d6779e8011267b3557b29e874e97cf7d83003df58a467be319c858fbf-updateinfo.xml.gz (IP: 138.201.152.105)
      # Error: Failed to download metadata for repo 'mariadb': Yum repo downloading error: Downloading error(s): repodata/50a4af1d6779e8011267b3557b29e874e97cf7d83003df58a467be319c858fbf-updateinfo.xml.gz - Cannot download, all mirrors were already tried without success
       
      cat <<EOF >/etc/yum.repos.d/MariaDB.repo
      [mariadb]
      name=MariaDB
      baseurl=https://archive.mariadb.org/mariadb-10.4.22/yum/fedora/33/x86_64/
      gpgkey=https://ftp.osuosl.org/pub/mariadb/yum/RPM-GPG-KEY-MariaDB
      gpgcheck=1
      EOF
       
       
      # Separate issue. Latest fedora does not have the earlier required version of boost. Install it manually.
      dnf install -y http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/boost173-program-options-1.73.0-7.sdl7.x86_64.rpm
       
      dnf install -y MariaDB-server
      mariadb --version
      # mariadb  Ver 15.1 Distrib 10.4.22-MariaDB, for Linux (x86_64) using  EditLine wrapper
      

      Attachments

        Activity

          More specifically, it is missing the "*-updateinfo.xml.gz" file that is present in other repositories.

          e.g. 10.4.22: https://archive.mariadb.org/mariadb-10.4.22/yum/fedora/33/x86_64/repodata/50a4af1d6779e8011267b3557b29e874e97cf7d83003df58a467be319c858fbf-updateinfo.xml.gz

          robinnew Robin Newhouse added a comment - More specifically, it is missing the "*-updateinfo.xml.gz" file that is present in other repositories. e.g. 10.4.22: https://archive.mariadb.org/mariadb-10.4.22/yum/fedora/33/x86_64/repodata/50a4af1d6779e8011267b3557b29e874e97cf7d83003df58a467be319c858fbf-updateinfo.xml.gz
          danblack Daniel Black added a comment -

          Well noticed robinnew, note old fedora mariadb versions probably won't work on newer Fedora version as in addition to boost, they will require an old openssl version.

          Recommend container based tests for a independence from OS using the verion as a tag mariadb:10.4.24.

          danblack Daniel Black added a comment - Well noticed robinnew , note old fedora mariadb versions probably won't work on newer Fedora version as in addition to boost, they will require an old openssl version. Recommend container based tests for a independence from OS using the verion as a tag mariadb:10.4.24.
          robinnew Robin Newhouse added a comment - - edited

          Thanks @Daniel Black, I've encountered trouble with building older versions on newer distributions before, but it appears installing old versions from RPMs brings along the correct libraries (mostly), including OpenSSL 1.1.

          e.g., In Fedora 37, after installing MariaDB 10.4.22

          [root@fe3fb4985b05 /]# ldd /usr/bin/mariadb | grep ssl
                  libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f55e89d2000)
          

          This issue was found while working on some tests of upgrades between minor and major versions starting from 10.3. All of them installed correctly (after installing the correct boost library) and the server started without issue. That is except for the 10.4.24-28.

          robinnew Robin Newhouse added a comment - - edited Thanks @Daniel Black, I've encountered trouble with building older versions on newer distributions before, but it appears installing old versions from RPMs brings along the correct libraries (mostly), including OpenSSL 1.1. e.g., In Fedora 37, after installing MariaDB 10.4.22 [root@fe3fb4985b05 /]# ldd /usr/bin/mariadb | grep ssl libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f55e89d2000) This issue was found while working on some tests of upgrades between minor and major versions starting from 10.3. All of them installed correctly (after installing the correct boost library) and the server started without issue. That is except for the 10.4.24-28.

          I went through and fixed several of the old fedora releases a few months ago, but these must have been missed. Thanks. I'll get them updated with correct metadata.

          dbart Daniel Bartholomew added a comment - I went through and fixed several of the old fedora releases a few months ago, but these must have been missed. Thanks. I'll get them updated with correct metadata.
          danblack Daniel Black added a comment -

          I checked. Its fixed.

          [root@9f55972a968c /]# dnf install -y MariaDB-server
          Fedora 33 openh264 (From Cisco) - x86_64                                                                                                                 946  B/s | 2.5 kB     00:02    
          Fedora Modular 33 - x86_64                                                                                                                               1.7 MB/s | 3.3 MB     00:01    
          Fedora 33 - x86_64 - Updates                                                                                                                             5.1 MB/s |  31 MB     00:06    
          Fedora Modular 33 - x86_64 - Updates                                                                                                                     1.2 MB/s | 3.2 MB     00:02    
          Dependencies resolved.
          =========================================================================================================================================================================================
           Package                                             Architecture                        Version                                              Repository                            Size
          =========================================================================================================================================================================================
          Installing:
           MariaDB-server                                      x86_64                              10.4.22-1.fc33                                       mariadb                               17 M
          Installing dependencies:
           MariaDB-client                                      x86_64                              10.4.22-1.fc33                                       mariadb                              7.6 M
           MariaDB-common                                      x86_64                              10.4.22-1.fc33                                       mariadb                            
          

          danblack Daniel Black added a comment - I checked. Its fixed. [root@9f55972a968c /]# dnf install -y MariaDB-server Fedora 33 openh264 (From Cisco) - x86_64 946 B/s | 2.5 kB 00:02 Fedora Modular 33 - x86_64 1.7 MB/s | 3.3 MB 00:01 Fedora 33 - x86_64 - Updates 5.1 MB/s | 31 MB 00:06 Fedora Modular 33 - x86_64 - Updates 1.2 MB/s | 3.2 MB 00:02 Dependencies resolved. ========================================================================================================================================================================================= Package Architecture Version Repository Size ========================================================================================================================================================================================= Installing: MariaDB-server x86_64 10.4.22-1.fc33 mariadb 17 M Installing dependencies: MariaDB-client x86_64 10.4.22-1.fc33 mariadb 7.6 M MariaDB-common x86_64 10.4.22-1.fc33 mariadb

          People

            dbart Daniel Bartholomew
            robinnew Robin Newhouse
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.