Announcement

Collapse
No announcement yet.

Trying to update mariadb repo throws Error verisio nis not supported

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Trying to update mariadb repo throws Error verisio nis not supported

    Noticed in repolist still MariDB 105 after manually Upgraded MariaDB to 106. So went to update manually and came across the native mariadb_repo_setup script. Then go this.

    Code:
    [root@alderaan tmp]# sudo bash mariadb_repo_setup --mariadb-server-version=10.6
    # [error] Detected RHEL or compatible but version () is not supported.
    # [error] # The MariaDB Repository only supports these distributions:
    #    * RHEL/Rocky 8 & 9 (rhel)
    #    * RHEL/CentOS 7 (rhel)
    #    * Ubuntu 18.04 LTS (bionic), 20.04 LTS (focal), and 22.04 LTS (jammy)
    #    * Debian 10 (buster), & 11 (bullseye)
    #    * SLES 12 & 15 (sles)
    # [error] # See https://mariadb.com/kb/en/mariadb/mariadb-package-repository-setup-and-usage/#platform-support​
    1) Recommended strategy to solve this? Not the right way to do this for cloudlinux?
    2) Can you tag engineers to this and perhaps reach out to mariadb to get cloudlinux added to support? I am assuming this would be the missing connection...


  • #2
    ok, correct me if I'm wrong here please, used this line:
    Code:
    sudo bash mariadb_repo_setup --mariadb-server-version=10.6 --os-type=rhel --os-version=8
    Just manually forcing "centos" 8, even tho that's dead, everything understands it to be essentially rocky 8 right?

    My target server is cloudlinux 8 box.

    Code:
    CloudLinux release 8.7 (Valeri Polyakov)
    NAME="CloudLinux"
    VERSION="8.7 (Valeri Polyakov)"
    ID="cloudlinux"
    ID_LIKE="rhel fedora centos"
    VERSION_ID="8.7"
    PLATFORM_ID="platform:el8"
    PRETTY_NAME="CloudLinux 8.7 (Valeri Polyakov)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:cloudlinux:cloudlinux:8.7:GA:server"
    HOME_URL="https://www.cloudlinux.com/"
    BUG_REPORT_URL="https://www.cloudlinux.com/support"
    CloudLinux release 8.7 (Valeri Polyakov)
    CloudLinux release 8.7 (Valeri Polyakov)​
    hmmmm, didn't add Mariadb106 to repolist as I'd thought it was going to.... Just have to do this manually?
    Last edited by RevivalTech; 01-11-2023, 05:52 PM.

    Comment


    • #3
      Hi,

      Can you please show the output of:
      Code:
      cat /etc/redhat-release
      rpm -qf /etc/redhat-release
      And, reading through the link provided by their script - I believe you have to specify the os type and version manually, for example for CloudLinux 8 the arguments will be:

      Code:
      --os-type=rhel --os-version=8

      Comment


      • #4
        You are blazing fast

        Great job finding the actual solution. Yes, seems you have to force OS type and version here.
        Last edited by bogdan.sh; 01-11-2023, 05:58 PM.

        Comment


        • #5
          Hmmmm ok, I currently have:
          Code:
          [root@alderaan tmp]# cat /etc/yum.repos.d/MariaDB106.repo
          [MariaDB106]
          name = MariaDB106
          baseurl = https://yum.mariadb.org/10.6/centos8-amd64
          gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
          gpgcheck=1​
          but at this page https://www.how2shout.com/linux/how-...r-rocky-linux/ they recommend the url:
          Code:
          baseurl = http://yum.mariadb.org/10.5/rhel8-amd64
          as well as
          Code:
          module_hotfixes=1
          Thoughts?

          Also heads up, running this with cpanel setup if that at all matters for this chat.

          Comment


          • #6
            As I understand you already updated MariaDB from 10.5 to 10.6 and it's up and running.

            From what I see there is no difference between centos8-amd64 and rhel8-amd64 in MariaDB repo, please leave the repo file you have.

            Setting the "module_hotfixes=1" you are saying yum/dnf not to use the packages by module streams, but only use the repository. Depending on the setup you might have the option could be set to 1, so yes, please add it.

            Comment


            • #7
              Originally posted by bogdan.sh View Post
              As I understand you already updated MariaDB from 10.5 to 10.6 and it's up and running.

              From what I see there is no difference between centos8-amd64 and rhel8-amd64 in MariaDB repo, please leave the repo file you have.

              Setting the "module_hotfixes=1" you are saying yum/dnf not to use the packages by module streams, but only use the repository. Depending on the setup you might have the option could be set to 1, so yes, please add it.
              Yes yes, so far so good, seems to have upgraded and functioning all successful. Also glad that it subsequently fixed innodb corruptions, as that's what started me down this rabbit hole haha.
              ok ok, centos/rhel/alma/rocky/cloud all real mushy the same but technically not some times lol. Just wanted to see your opinion / recommendations.

              Ok, yea is this is situation where I general am to assume getting hotfixes is a "duh you want the inbetween quick hotfixes! Yea edge nerding!" ? haha

              Comment


              • #8
                Okay, great to hear you are all set.

                And the repos are absolutely same, the quickest way is to check md5 sums file in both: https://mirror.ihost.md/mariadb/mari...64/md5sums.txt and https://mirror.ihost.md/mariadb/mari...64/md5sums.txt . I guess it's just a symbolic link rhel -> centos


                Welcome to the club!

                Comment

                Working...
                X