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
    • WP Guardian
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • WP Guardian
    • Sitejet Builder for Plesk
    • SEO 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
      • WP Guardian
      • 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
      • WP Guardian
      • 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

MariaDB crashes after update on a Plesk server: mariadb.service: main process exited, code=exited, status=218/CAPABILITIES

 
centoscentos 7databasedatabase serverdatabases

Symptoms

  • After an update on a Plesk server with CentOS 7.9 and MariaDB 10.5, MariaDB is crashing and does not start.

  • Output of systemctl status mariadb shows the following:

    May 15 09:34:50 server.example.com systemd[1]: Starting MariaDB 10.5.25 database server...
    May 15 09:34:51 server.example.com systemd[1]: mariadb.service: main process exited, code=exited, status=218/CAPABILITIES
    May 15 09:34:51 server.example.com systemd[1]: Failed to start MariaDB 10.5.25 database server.
    May 15 09:34:51 server.example.com systemd[1]: Unit mariadb.service entered failed state.
    May 15 09:34:51 server.example.com systemd[1]: mariadb.service failed.

  • Yum log /var/log/yum.log shows a recent update:

    May 15 03:30:58 Updated: MariaDB-common-10.5.25-1.el7.centos.x86_64
    May 15 03:30:58 Updated: MariaDB-compat-10.5.25-1.el7.centos.x86_64
    May 15 03:31:02 Updated: MariaDB-client-10.5.25-1.el7.centos.x86_64
    May 15 03:31:04 Updated: galera-4-26.4.18-1.el7.centos.x86_64
    May 15 03:31:22 Updated: MariaDB-server-10.5.25-1.el7.centos.x86_64
    May 15 03:31:22 Updated: MariaDB-shared-10.5.25-1.el7.centos.x86_64

Cause

Outdated kernel incompatibility with systemd unit functionality used by MariaDB starting from recent 10.5 update and above.

# [root@plesk my.cnf.d]# uname -a
Linux hostname 3.10.0-327.28.3.el7.x86_64 #1 SMP Thu Aug 18 19:05:49 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Resolution

  1. Connect to the server via SSH

  2. Update the kernel via the package manager.

    # yum update -y

Alternatively, if the kernel cannot be updated at the present moment, a workaround can be used:

Workaround #1

Workaround #2

 

Comment out the affecting line:

  1. Connect to the server via SSH

  2. Create the folder /etc/systemd/system/mariadb.service.d/

    # mkdir -p /etc/systemd/system/mariadb.service.d/ && cd /etc/systemd/system/mariadb.service.d/

  3. Within that folder, create the file override.conf with your preferred text editor.

  4. Add the following lines to the file:

    [Service]
    CapabilityBoundingSet=
    AmbientCapabilities=

  5. Save the file.

  6. Reload the daemon:

    # systemctl daemon-reload

  7. Restart MariaDB:

    # systemctl restart mariadb

 

Downgrade the MariaDB packages:

  1. Check the last update list:

    # yum history

  2. Confirm the latest update with Action corresponding to I,U or Update that altered MariaDB packages:

    # yum history info <ID>

  3. Undo that transaction ID:

    # yum history undo <ID>

  4. Restart MariaDB

    # systemctl restart mariadb

Read the full article
Related Posts

Plesk with Centralized Database and Network File System

Read More »

Recommended OSs for Plesk

Read More »

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

Read More »
Knowledge Base

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

Read More »

MariaDB fails to start: Aria engine is not enabled or did not start

Read More »

How to reinstall phpMyAdmin in Plesk for Linux

Read More »

MySQL/MariaDB service fails to start on a Plesk server: Table ‘mysql.user’ doesn’t exist

Read More »

Hosting Wiki

  • Server Redundancy
  • Linux Containers
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
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