Error! MariaDB is not running

Error! MariaDB is not running on your system - database list could not be retrieved.

MariaDB error messageThe full MariaDB error message was : DBI connect failed : Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (111) ?

Failed to start database : Redirecting to /bin/systemctl start mariadb.service Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.

And what do systemctl status mariadb.service and journalctl -xe say about this?
Use preformatted text for the console output.
```
Add your text inside 3 backquotes.
```

systemctl status


systemctl status mariadb.service
● mariadb.service - MariaDB database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2023-10-05 15:22:15 CEST; 17min ago
  Process: 5574 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
  Process: 5573 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
  Process: 5538 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
 Main PID: 5573 (code=exited, status=0/SUCCESS)


.contaboserver.net systemd[1]: Starting MariaDB database server...
.contaboserver.net mariadb-prepare-db-dir[5538]: Database MariaDB is probably initialized in /var/lib/mysql already, nothing is done.
contaboserver.net mariadb-prepare-db-dir[5538]: If this is not the case, make sure the /var/lib/mysql is empty before runnin...b-dir.
contaboserver.net mysqld_safe[5573]: 231005 15:22:14 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
.contaboserver.net mysqld_safe[5573]: 231005 15:22:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
contaboserver.net systemd[1]: mariadb.service: control process exited, code=exited status=1
contaboserver.net systemd[1]: Failed to start MariaDB database server.
contaboserver.net systemd[1]: Unit mariadb.service entered failed state.
contaboserver.net systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Any specific reason to ignore the troubleshooting template @dub ?

At least it would give some information on your system.

CentOS Linux 7.9.2009

Linux 3.10.0-1160.99.1.el7.x86_64 on x86_64
Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz, 4 cores
Real memory 9 GB



This is not a DietPi system?

i use webmin

Looks like another instance of mariaDB is already running?
I already found similiar threads in the official webmin forum:
https://forum.virtualmin.com/t/error-mariadb-is-not-running-on-your-system-database-list-could-not-be-retrieved/115395

This doesn’t answer my quest in any sense.

We are within a DietPi forum supporting DietPi operating system. We don’t maintain Webmin. It’s just an app you can install on our system.

From what I see, you are running CentOS 7.9, which seems to be outdated and going out of support shortly End dates are coming for CentOS Stream 8 and CentOS Linux 7 – Blog.CentOS.org

Same for kernel version 3.10, which is as well years old.

Next one MariaDB 5.5.68. Current version is 11.3

Anyway you can reboot your system and check database logs

journalctl -u mariadb
1 Like

ok i get it