Plesk

Plesk or system update fails on Linux: http://yum.mariadb.org/10.1/centos7-amd64/repodata/repomd.xml: [Errno 14] HTTP Error 404 – Not Found

Symptoms

Cause

Due to the fact that MariaDB 10.1, 10.2, and 10.3 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.4 - 10.6, 10.11) 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:

Workaround (not recommended)

Warning: Applying the workaround is done with taking the risk of not getting further security updates for MariaDB.

  1. Connect to the Plesk server using SSH.

  2. Open the MariaDB repository file in a text editor. In this example, the vi editor is used:

    # vi /etc/yum.repos.d/MariaDB.repo

  3. 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.

      [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:

      [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

    • For MariaDB 10.3:

      [mariadb]
      name = MariaDB
      baseurl = https://archive.mariadb.org/mariadb-10.3.39/yum/centos7-amd64/
      gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
      gpgheck = 1
      enabled = 1

  4. Save the changes and close the file.

  5. Rerun Plesk/system update.