Applicable to:
- Plesk for Linux
Symptoms
-
On a Plesk for Linux server, checking for system updates in Tools & Settings > System Updates fails:
PLESK_ERROR: Error: Unable to receive update information for the package(s)
-
Plesk Installer or system update fails with the error message:
CONFIG_TEXT: failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
CONFIG_TEXT: failure: repodata/repomd.xml from mariadb: [Errno 256] No more mirrors to try.
http://yum.mariadb.org/10.2/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
PLESK_WARN: There are no products for your operating system
( 'CentOS' 'Linux' '7.9.2009' 'x86_64' ) available
from the selected source.
You can try using another source
Cause
Due to the fact that MariaDB 10.1 and 10.2 reached their end-of-life, the vendor have moved corresponding repositories to archive.
Resolution
It is strongly recommended to upgrade MariaDB server to the supported one (10.3 - 10.6) using the steps from the article How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.x on Linux?
If the upgrade is not possible for some reasons, apply the following workaround:
Warning: Applying the workaround is done with taking the risk of not getting further security updates for MariaDB.
-
Connect to the Plesk server using SSH.
-
Open the MariaDB repository file in a text editor. In this example, the vi editor is used:
# vi /etc/yum.repos.d/MariaDB.repo
-
Modify the option
baseurl
as described below:-
For MariaDB 10.1:
Note: 10.1.48 is the latest version in MariaDB 10.1 series. Example below is for CentOS 7.
CONFIG_TEXT: [mariadb]
name = MariaDB
baseurl = https://archive.mariadb.org/mariadb-10.1.48/yum/centos7-amd64/
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgheck = 1
enabled = 1 -
For MariaDB 10.2:
CONFIG_TEXT: [mariadb]
name = MariaDB
baseurl = https://archive.mariadb.org/mariadb-10.2.44/yum/centos7-amd64/
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgheck = 1
enabled = 1
-
-
Save the changes and close the file.
-
Rerun Plesk/system update.
Comments
4 comments
I have 10.2.44 version.
so baseurl must be:
https://archive.mariadb.org/mariadb-10.2.44/yum/centos7-amd64/
But if i change the baseurl to an specific version as you mentioned. when version 10.2.45 apper, will not be updated?
thanks
Try with just 10.2
baseurl = https://archive.mariadb.org/mariadb-10.2/yum/centos7-amd64/
how to update mariadb 10.2 to 10.3 or 10.6 y centos 7?
thanks
Hi @Luis Zubeldia!
MariaDB 10.1 and 10.2 will not be updated anymore as they are end-of-life, so there won't be the version 10.2.45.
So both these URLs are correct:
https://archive.mariadb.org/mariadb-10.2.44/yum/centos7-amd64/
https://archive.mariadb.org/mariadb-10.2/yum/centos7-amd64/
To upgrade MariaDB, follow the instructions from the article https://support.plesk.com/hc/en-us/articles/213403429.
Please sign in to leave a comment.