[MDEV-14658] Selecting certain versions in mariadb_repo_setup results in failed install and broken repository Created: 2017-12-14  Updated: 2017-12-18  Resolved: 2017-12-16

Status: Closed
Project: MariaDB Server
Component/s: Configuration
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Juan Assignee: Kolbe Kegel (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

Tested on Centos 6 & 7



 Description   

Looking at https://downloads.mariadb.org/mariadb/+releases/ one could be led to think 10.0.10, the first stable 10.0 release, is a good one to install. Running

curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=10.0.10

does not result in any errors. It concludes normally.

[warning] Adjusting given --mariadb-server-version ('10.0.10') to have the correct prefix ('mariadb-10.0.10')
[info] Repository file successfully written to /etc/yum.repos.d/mariadb.repo.
[info] Adding trusted package signing keys...
[info] Succeessfully added trusted package signing keys.

However, then trying to install the server results in an error

[root@16698-10 ~]# yum -y install vim screen wget MariaDB-server
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
 * base: mirror.netflash.net
 * extras: mirror.netflash.net
 * updates: mirror.netaddicted.ca
base                                                                                          | 3.7 kB     00:00
base/primary_db                                                                               | 4.7 MB     00:00
extras                                                                                        | 3.4 kB     00:00
extras/primary_db                                                                             |  29 kB     00:00
https://downloads.mariadb.com/MariaDB/mariadb-10.0.10/yum/rhel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
 
https://access.redhat.com/articles/1320623
 
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mariadb-main. Please verify its path and try again

and tryign to install any package after that also results in an error

[root@16698-10 ~]# yum -y install vim screen wget
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.netflash.net
 * extras: mirror.netflash.net
 * updates: mirror.netaddicted.ca
https://downloads.mariadb.com/MariaDB/mariadb-10.0.10/yum/rhel/6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article
 
https://access.redhat.com/articles/1320623
 
If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.
 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: mariadb-main. Please verify its path and try again

Subsequently selecting a package that does exist in the repository and running mariadb_repo_setup again results in a successful installation.



 Comments   
Comment by Daniel Black [ 2017-12-15 ]

I strongly suspect --mariadb-server-version only takes a major version like 10.0 rather than a specific release version like 10.0.10

Comment by Sergei Golubchik [ 2017-12-15 ]

Not really, 10.0.29, for example, works. I didn't try to install ☺ but looking at the url — https://downloads.mariadb.com/MariaDB/mariadb-10.0.29/yum/rhel/ — it should. While for 10.0.10 — https://downloads.mariadb.com/MariaDB/mariadb-10.0.10/yum/rhel/ — it doesn't.

Comment by Kolbe Kegel (Inactive) [ 2017-12-15 ]

The issue here is that the directory structure for releases changed at some point. The script can only support the new directory structure, and I don't think investing a lot of time into changing that makes sense.

I think "10.0.10, the first stable 10.0 release, is a good one to install" is troubling logic, and I'm not inclined to change this repository configuration script to make it easier to install old software with lots of known security, stability, and other bugs ...

Comment by Juan [ 2017-12-18 ]

I'm not sure I understand the logic "trouble" with a customer choosing to install something MariaDB calls "a stable release" unless there's a problem trusting MariaDB's assertion that 10.0.10 is stable & supported.
EDIT - As explained by Kolbe, the MariaDB repository set-up was introduced along with 10.0.18, making support of any prior release an exercise in completeness, and not something that was there before & is now malfunctioning.

Comment by Kolbe Kegel (Inactive) [ 2017-12-18 ]

The salient point here is that it was never possible to use mariadb_repo_setup (or the "MariaDB Package Repository") to install MariaDB Server 10.0.10. The directory structure of releases changed to more easily facilitate package repository configuration with the MariaDB Server 10.0.18 release, a couple years before "MariaDB Package Repository" was created.

Anyone who installed MariaDB Server 10.0.10 will have done so using the repository configuration tool at mariadb.org or by downloading the packages directly or via some other means. Those options continue to be available for anyone who needs to install older product releases not supported by the MariaDB Package Repository.

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