Question

Upgrade 21.10 to 22.10 - MariaDB Repos unavailble

  • 24 November 2022
  • 6 replies
  • 93 views

Userlevel 1
Badge +6

Hello there !

 

I’m trying to upgrade my 21.10.7 centreon web to 22.10 (using https://docs.centreon.com/docs/upgrade/upgrade-from-21-10/)

I finally managed to make my apache configuration work :) but now i got a message telling me Mariadb repos is unreachable :

https://dlm.mariadb.com/repo/mariadb-server/10.50/yum/rhel/7/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

I’m trying to find a new repo here : https://dlm.mariadb.com/browse/mariadb_server/101/1545/yum/

But to be honest I have no idea which one to use, I’m on Centos7 but the setup use a rhel repo.

If anyone has a working mariadb repo that would be perfect :)

 

Thank you


6 replies

Userlevel 1
Badge +6

Well,

I tried again to update mariadb but ended with this message :

 

******************************************************************
A MySQL or MariaDB server package (MariaDB-server-10.1.19-1.el7.centos.x86_64) is installed.

Upgrading directly from MySQL 10.1 to MariaDB 10.5 may not
be safe in all cases. A manual dump and restore using mysqldump is
recommended. It is important to review the MariaDB manual's Upgrading
section for version-specific incompatibilities.

A manual upgrade is required.

- Ensure that you have a complete, working backup of your data and my.cnf
files
- Shut down the MySQL server cleanly
- Remove the existing MySQL packages. Usually this command will
list the packages you should remove:
rpm -qa | grep -i '^mysql-'

You may choose to use 'rpm --nodeps -ev <package-name>' to remove
the package which contains the mysqlclient shared library. The
library will be reinstalled by the MariaDB-shared package.
- Install the new MariaDB packages supplied by MariaDB Foundation
- Ensure that the MariaDB server is started
- Run the 'mysql_upgrade' program

This is a brief description of the upgrade process. Important details
can be found in the MariaDB manual, in the Upgrading section.
******************************************************************
error: %pre(MariaDB-server-10.5.18-1.el7.centos.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package MariaDB-server-10.5.18-1.el7.centos.x86_64
error: MariaDB-server-10.5.18-1.el7.centos.x86_64: install failed
error: MariaDB-server-10.1.19-1.el7.centos.x86_64: erase skipped
Nettoyage : MariaDB-client-10.5.8-1.el7.centos.x86_64 3/4
Vérification : MariaDB-client-10.5.18-1.el7.centos.x86_64 1/4
Vérification : MariaDB-server-10.5.18-1.el7.centos.x86_64 2/4
MariaDB-server-10.1.19-1.el7.centos.x86_64 was supposed to be removed but is not!
Vérification : MariaDB-server-10.1.19-1.el7.centos.x86_64 3/4
Vérification : MariaDB-client-10.5.8-1.el7.centos.x86_64 4/4

Mis à jour :
MariaDB-client.x86_64 0:10.5.18-1.el7.centos

Échec:
MariaDB-server.x86_64 0:10.1.19-1.el7.centos MariaDB-server.x86_64 0:10.5.18-1.el7.centos

I’ll try again another day after i read how to manually upgrade mariadb.

Badge +10


there is a specific section for mariadb

https://docs.centreon.com/docs/upgrade/upgrade-from-21-10/#install-the-mariadb-repository

Did you follow that?

Userlevel 1
Badge +6


there is a specific section for mariadb

https://docs.centreon.com/docs/upgrade/upgrade-from-21-10/#install-the-mariadb-repository

Did you follow that?

Hello,

The first times I followed that documentation line > Got the Error 404 on the repo, that’s why I tried another way.

 

I tried again with the official doc and still getthe error 404.

 

Will look for a way to report that to mariadb

Userlevel 1
Badge +4

Hi,

For the MariaDB repo, could you try with this command:

 

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --os-type=rhel --os-version=7 --mariadb-server-version="mariadb-10.5"

 

By the way, you need to upgrade your MariaDB with all versions.

10.1 to 10.2 then 10.2 to 10.3….., not directly from 10.1 to 10.5

Badge

TY @MichaelW  !

[EDIT] i dont know how but the docs https://docs.centreon.com/docs/upgrade/upgrade-from-21-04/#update-the-centreon-repository has to be updated

Badge
Well i sopke too quickly, arrived at the webconf part i had a message indicating that mariadb was in 10.3 instead  of 10.5...So i updated (https://mariadb.com/docs/ent/service-management/upgrades/community-server/release-series-cs10-5/), and…………… “URL not found” on http://ipserver/centreon/install/upgrade.php

Hoppefully i backup server state before 😰

Reply