Welcome to Centmin Mod Community
Become a Member

Centmin Mod Updates For MariaDB 10.3 YUM Public Mirror Deprecated Removal

Discussion in 'Centmin Mod News' started by eva2000, Nov 25, 2023.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    52,721
    12,073
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,599
    Local Time:
    4:44 PM
    Nginx 1.25.x
    MariaDB 10.x
    The official MariaDB 10.3 YUM public mirror has now bee deprecated and removed as MariaDB 10.3 is end of life (EOL). MariaDB folks moved 10.3 YUM public mirror to archives mirror now.


    As MariaDB 10.3 yum mirrors are now deprecated as 10.3 is EOL:
    1. I updated Centmin Mod 124.00stable and 130.00beta01 to switch the MariaDB 10.3 yum mirror over to the archives mirror. You want to run cmupdate command to pull these update fixes to your local Centmin Mod install, and run and exit centmin.sh once to apply the fix updates. Example cmupdate command output showing syncing and pulling the fixed files to local Centmin Mod install:
      Code (Text):
      cmupdate
      No local changes to save
      remote: Enumerating objects: 20, done.
      remote: Counting objects: 100% (20/20), done.
      remote: Compressing objects: 100% (2/2), done.
      remote: Total 13 (delta 11), reused 12 (delta 11), pack-reused 0
      Unpacking objects: 100% (13/13), done.
      From https://github.com/centminmod/centminmod
         0f50819..90e6130  130.00beta01 -> origin/130.00beta01
      Updating 0f50819..90e6130
      Fast-forward
       centmin-cli.sh             |   2 +-
       centmin.sh                 |   2 +-
       inc/cpcheck.inc            |  15 ++
       inc/mariadb_install103.inc | 506 ++++++++++++++++++++++++------------------------
       inc/mariadb_upgrade103.inc | 506 ++++++++++++++++++++++++------------------------
       5 files changed, 531 insertions(+), 500 deletions(-)
      No local changes to save
      Already up-to-date.
      
    2. For Centmin Mod 124.00stable, like 130.00beta01, now has switched to MariaDB 10.4 initial fresh new installs. If you're using Centmin Mod with MariaDB 10.3, you'd want to run cmupdate command and then update to MariaDB 10.4 via centmin.sh menu option 11 submenu option 8 as outlined at https://community.centminmod.com/threads/mariadb-10-1-upgrades-to-mariadb-10-2-10-3-and-10-4.17793/
    For existing Centmin Mod users running MariaDB 10.3 and without the applied fixes, when you run yum update commands, you'll get the following error below. The above outlined steps to fix this, will prevent such errors below.
    Code (Text):
    http://yum.mariadb.org/10.3/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
    Trying other mirror.
    To address this issue please refer to the below wiki article
    
    https://wiki.centos.org/yum-errors
    
    If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
    
    
    
     One of the configured repositories failed (MariaDB),
     and yum doesn't have enough cached data to continue. At this point the only
     safe thing yum can do is fail. There are a few ways to work "fix" this:
    
         1. Contact the upstream for the repository and get them to fix the problem.
    
         2. Reconfigure the baseurl/etc. for the repository, to point to a working
            upstream. This is most often useful if you are using a newer
            distribution release than is supported by the repository (and the
            packages for the previous distribution release still work).
    
         3. Run the command with the repository temporarily disabled
                yum --disablerepo=mariadb ...
    
         4. Disable the repository permanently, so yum won't use it by default. Yum
            will then just ignore the repository until you permanently enable it
            again or use --enablerepo for temporary usage:
    
                yum-config-manager --disable mariadb
            or
                subscription-manager repos --disable=mariadb
    
         5. Configure the failing repository to be skipped, if it is unavailable.
            Note that yum will try to contact the repo. when it runs most commands,
            so will have to try and fail each time (and thus. yum will be be much
            slower). If it is a very temporary problem though, this is often a nice
            compromise:
    
                yum-config-manager --save --setopt=mariadb.skip_if_unavailable=true
    
    failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
     
  2. eva2000

    eva2000 Administrator Staff Member

    52,721
    12,073
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,599
    Local Time:
    4:44 PM
    Nginx 1.25.x
    MariaDB 10.x
    For Centmin Mod EL8 folks that are testing the beta installers on AlmaLinux 8, Rocky Linux 8 etc can still manually choose MariaDB 10.3 default via Appstream for support until May 2029 by setting up persistent config file /etc/centminmod/custom_config.in set variables BEFORE initial install https://community.centminmod.com/threads/official-mariadb-10-3-yum-repo-eol-may-25-2023.23756/
    Code (Text):
    MARIADB_INSTALLTENTHREE='y'
    MARIADB_INSTALLTENFOUR='n'
    MARIADB_INSTALLTENFIVE='n'
    MARIADB_INSTALLTENSIX='n'

    This only applies to AlmaLinux 8.x or Rocky Linux 8.x users in that you'll get continued MariaDB 10.3 updates in EL8 OSes until May 2029. If you do this on CentOS 7, MariaDB 10.3 will be installed via archives mirror, but there won't be any updates and will be stuck on MariaDB 10.3.37 to 10.3.39 versions.
     
Thread Status:
Not open for further replies.