Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

dnf-makecache service error on a Plesk server: Failed to download metadata for repo

 
almalinuxcentosdebiandeveloperhttps

Symptoms

  • Service dnf-makecache fails to start, and shows a 404 error for a specific repository:

    # systemctl status dnf-makecache.service
    dnf-makecache.service - dnf makecache
    Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.service; static; vendor preset: disabled)
    Active: failed (Result: exit-code) since Sat 2024-11-02 08:43:37 MDT; 30min ago
    Process: 509243 ExecStart=/usr/bin/dnf makecache --timer (code=exited, status=1/FAILURE)
    Main PID: 509243 (code=exited, status=1/FAILURE)

    Nov 02 08:43:37 example.com systemd[1]: Starting dnf makecache...
    Nov 02 08:43:37 example.com dnf[509243]: MariaDB 669 B/s | 146 B 00:00
    Nov 02 08:43:37 example.com dnf[509243]: Errors during downloading metadata for repository 'mariadb':
    Nov 02 08:43:37 example.com dnf[509243]: - Status code: 404 for https://mirrors.xtom.com/mariadb/yum/10.11/rhel/8/x86_64/repodata/repomd.xml (IP: 2604:a840::7)
    Nov 02 08:43:37 example.com dnf[509243]: Error: Failed to download metadata for repo 'mariadb': Cannot download repomd.xml: Status code: 404 for https://mirrors.xtom.com/mariadb/yum/10.11/rhel/8/x86_64/repodata/repomd.xml (IP: 2604:a840::7)
    Nov 02 08:43:37 example.com systemd[1]: dnf-makecache.service: Main process exited, code=exited, status=1/FAILURE
    Nov 02 08:43:37 example.com systemd[1]: dnf-makecache.service: Failed with result 'exit-code'.
    Nov 02 08:43:37 example.com systemd[1]: Failed to start dnf makecache.

Cause

Configured repository is temporarily or permanently unavailable.

Resolution

Edit the necessary repository:

  1. Connect to the server via SSH

  2. Use the URL in the error to find which file is configured to use that specific repository:

    1. For CentOS/AlmaLinux/RHEL/Rocky Linux:

      # grep -ir mirrors.xtom.com /etc/yum.repos.d/
      /etc/yum.repos.d/MariaDB.repo:#baseurl = https://mirrors.xtom.com/mariadb/yum/10.11/rhel/$releasever/$basearch
      /etc/yum.repos.d/MariaDB.repo:gpgkey = https://mirrors.xtom.com/mariadb/yum/RPM-GPG-KEY-MariaDB

    2. For Ubuntu/Debian:

      # grep -ir mirrors.xtom.com /etc/apt/sources.list.d/

    Note: Please change the URL above for the one that shows up on your server.

  3. Edit the found repository file with your favorite editor:

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

  4. Comment the line that starts with "baseurl" with a hash (#) and add a new line like this:

    baseurl = https://mirrors.xtom.com/mariadb/yum/10.11/rhel/$releasever/$basearch

    Note: The new URL is provided by the software provider/developer. If the URL is from Plesk, please contact Plesk Support.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Recommended OSs for Plesk

Read More »

CentOS Project Announces Early End-of-Life Date for CentOS 8

Read More »

How to Install and Configure CSF

Read More »
Knowledge Base

Unable to start migration in Plesk: Failed to connect to the source server ‘source’ (203.0.113.2) by SSH: encountered RSA key, expected OPENSSH key

Read More »

 How to install ‘sqlsrv’ extension for Plesk PHP handlers?

Read More »

Cannot start MariaDB on Plesk server: the directory /var/lib/mysql is not empty, so initialization cannot be done

Read More »

How to install MongoDB database server in Plesk?

Read More »

Hosting Wiki

  • RESTful Web Service
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • On-Demand Services
  • Linux Containers
  • Bare Metal Server
  • Denial of Service
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Virtualization
  • JavaScript
  • VirtualMin
  • Plesk
  • Web Server
  • DNS Server
  • IPv6
  • IPv4
  • SIP
  • SSH
  • UDP/IP
  • URL
  • Email Virus Protection
  • TCP/IP
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family