Hi Team,
can you please help on on MariaDB Troubleshooting, as im not DB guy…
i dont have much knowledge on DB as im a devops in application side.
Hi Team,
can you please help on on MariaDB Troubleshooting, as im not DB guy…
i dont have much knowledge on DB as im a devops in application side.
Is this for a specific lab (in which case, a link would be pretty handy)? What problem do you have?
Yes,
below the task, im not aware of DB tasks, please help me to reslove.
that the application is unable to connect to the database. After digging into the issue, the team found that mariadb service is down on the database server.
Please, include a link to that lab so I can get a bit more context to what you’re asking.
This is NOT what I’m asking for. What I need for a KKE task is:
Then I can figure out what you’re talking about. Thanks!
OK, after rooting around awhile, I’m guessing that you’re working on Day 9 of 100 Days of Devops, maybe. If so, you don’t need to know anything specific about mariadb, since this is a Systemd problem.
The log for mariadb on the stdb01 host is at tail /var/log/mariadb/mariadb.log. If you look there, you’ll see this message:
2025-10-31 22:47:00 0 [ERROR] mariadbd: Can’t create/write to file ‘/run/mariadb/mariadb.pid’ (Errcode: 13 “Permission denied”)
2025-10-31 22:47:00 0 [ERROR] Can’t start server: can’t create PID file: Permission denied
If you look at the directory /run/mariadb, you’ll see in turn that it belongs to root.mysql, but that the directory is not writeable by mysql. This is the problem; making the directory writable by group mysql allows the server to be restarted.