Recently on a VPS running Cyberpanel, MariaDB service failed with the error: Failed at step NAMESPACE spawning / bin / sh: Invalid argument
For VPS based on the openvz that are using old kernel you need to edit the service file to fix the problem:
nano /usr/lib/systemd/system/mariadb.service
Find the following value PrivateDevices = true and comment it by putting # before it so that it does not run.
Afterwards, run the following commands:
systemctl daemon-reload
and to start mariadb:
service mariadb stop service mariadb start
then check its status: