MariaDB service exits immediately despite correct startup attempts (possible environment issue)

Troubleshooting Performed

  • Logged into the database server (stdb01) as the designated user.
  • Verified the MariaDB service status using systemctl status mariadb and confirmed the service was inactive.
  • Attempted to start and restart the service using:
systemctl start mariadb
systemctl restart mariadb

The service exited immediately without running.

  • Verified the service is enabled and not masked:
systemctl is-enabled mariadb
  • Checked SELinux status and confirmed it is disabled:
getenforce → Disabled
  • Reviewed systemd and MariaDB logs using:
journalctl -xeu mariadb.service

No explicit MariaDB configuration or permission errors were reported.

  • Confirmed no disk space or ownership issues affecting `/var/lib/mysql

Conclusion

The MariaDB service exits cleanly immediately after startup despite correct configuration and standard recovery steps. This appears to be an environment or systemd state issue rather than a configuration error. Requesting review of the task execution.

Which lab is this? It looks to be a KKE lab, so the exact name of the lab would help a lot in finding what you’re working on.

It is 100 days of devops, Day 9: MariaDB Troubleshooting