[MDEV-30607] CentOS 6 MariaDB 10.3 archive repo broke recently Created: 2023-02-07  Updated: 2023-06-05  Resolved: 2023-03-01

Status: Closed
Project: MariaDB Server
Component/s: Repositories
Affects Version/s: None
Fix Version/s: 10.3.38

Type: Bug Priority: Major
Reporter: Hans Borresen Assignee: Daniel Bartholomew
Resolution: Fixed Votes: 0
Labels: None


 Description   

I know this is an "EOL" operating system, but there are some people still using the package (some pay their OS vendor for extended support)

At https://archive.mariadb.org/mariadb-10.3/yum/centos/6/x86_64/
You guys published new RPMs recently, but the repodata does not match.

Anyone running a CentOS 6 or similar OS (like CloudLinux 6) who attempts to install from the archive will run into the following error:

[root@cloud ~]# yum install MariaDB-server
...
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.3.27-1.el6 will be installed
--> Processing Dependency: galera for package: MariaDB-server-10.3.27-1.el6.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-server-10.3.27-1.el6.x86_64
--> Processing Dependency: MariaDB-client for package: MariaDB-server-10.3.27-1.el6.x86_64
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.3.27-1.el6 will be installed
---> Package MariaDB-common.x86_64 0:10.3.27-1.el6 will be installed
--> Processing Dependency: MariaDB-compat for package: MariaDB-common-10.3.27-1.el6.x86_64
---> Package galera.x86_64 0:25.3.29-1.rhel6.el6 will be installed
--> Running transaction check
---> Package MariaDB-compat.x86_64 0:10.3.27-1.el6 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
==========================================================================================================================================================================================================
 Package                                           Arch                                      Version                                                  Repository                                     Size
==========================================================================================================================================================================================================
Installing:
 MariaDB-server                                    x86_64                                    10.3.27-1.el6                                            MariaDB103                                    136 M
Installing for dependencies:
 MariaDB-client                                    x86_64                                    10.3.27-1.el6                                            MariaDB103                                     59 M
 MariaDB-common                                    x86_64                                    10.3.27-1.el6                                            MariaDB103                                    176 k
 MariaDB-compat                                    x86_64                                    10.3.27-1.el6                                            MariaDB103                                    4.0 M
 galera                                            x86_64                                    25.3.29-1.rhel6.el6                                      MariaDB103                                    9.2 M
 
Transaction Summary
==========================================================================================================================================================================================================
Install       5 Package(s)
 
Total download size: 209 M
Installed size: 209 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): MariaDB-client-10.3.27-1.el6.x86_64.rpm                                                                                                                                     |  59 MB     00:04
https://archive.mariadb.org/mariadb-10.3/yum/centos/6/x86_64/rpms/MariaDB-client-10.3.27-1.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=MariaDB103 clean metadata
Trying other mirror.
(2/5): MariaDB-common-10.3.27-1.el6.x86_64.rpm                                                                                                                                     | 177 kB     00:00
https://archive.mariadb.org/mariadb-10.3/yum/centos/6/x86_64/rpms/MariaDB-common-10.3.27-1.el6.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=MariaDB103 clean metadata
...
Error Downloading Packages:
  MariaDB-client-10.3.27-1.el6.x86_64: failure: rpms/MariaDB-client-10.3.27-1.el6.x86_64.rpm from MariaDB103: [Errno 256] No more mirrors to try.
  galera-25.3.29-1.rhel6.el6.x86_64: failure: rpms/galera-25.3.29-1.rhel6.el6.x86_64.rpm from MariaDB103: [Errno 256] No more mirrors to try.
  MariaDB-common-10.3.27-1.el6.x86_64: failure: rpms/MariaDB-common-10.3.27-1.el6.x86_64.rpm from MariaDB103: [Errno 256] No more mirrors to try.
  MariaDB-compat-10.3.27-1.el6.x86_64: failure: rpms/MariaDB-compat-10.3.27-1.el6.x86_64.rpm from MariaDB103: [Errno 256] No more mirrors to try.
  MariaDB-server-10.3.27-1.el6.x86_64: failure: rpms/MariaDB-server-10.3.27-1.el6.x86_64.rpm from MariaDB103: [Errno 256] No more mirrors to try.

Running "yum --enablerepo=MariaDB103 clean metadata" does not resolve it, since the metadata actually on the archive server is out of date. The RPMs are from 2023, but the repo metadata is from 2021.

Would it be possible to update the metadata to match the new packages?



 Comments   
Comment by Daniel Bartholomew [ 2023-02-07 ]

Confirmed. Working on getting these deprecated repositories fixed ASAP.

Comment by Daniel Bartholomew [ 2023-02-07 ]

I think I've got the 10.3 repositories restored and working for RHEL 6 and the old Fedora releases we had 10.3 packages for. Now looking into other possibly affected repositories (e.g. 10.4 and etc...).

Comment by Daniel Bartholomew [ 2023-02-09 ]

Other legacy repositories for deprecated platforms have been fixed, mainly old Fedoras. I'll now look into what needs to be done to fix the signing issue that caused the problems. The core issue is with the part of the release process where packages get signed, the glob to gather up the packages is simply too broad and is matching rpms that don't need to be signed. It needs to be restricted to just signing new packages.

Comment by Quark [ 2023-05-26 ]

Same thing with 10.4 btw.
Really waiting for fix, Centos 6 is very old to star with , I was hoped at least to install 10.4

Comment by Weydson Lima [ 2023-06-01 ]

I see this issue marked as closed, but I just faced this exact issue when trying to rebuild an AMI image on AWS - it's failing when installing MariaDB and preventing the AMI image to be created.
Is there a workaround for now? I plan to download the binaries and storing them on Github but was hoping to keep using yum.

Comment by Hans Borresen [ 2023-06-05 ]

I've gone ahead and opened a new issue for the re-occurrence – MDEV-31405

I think it's unlikely this will happen again – it was the very last update to 10.3 before it went EOL that seems to have caused the problem.

Generated at Thu Feb 08 10:17:31 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.