Day 9: Fix a Failed MariaDB Service by Checking Permissions, Not the Engine
A Day 9 exercise from the 100 Days of DevOps and Cloud series tackled two practical tasks: reviving a failed MariaDB service and enabling EC2 termination protection on AWS. The MariaDB failure was traced not to the database engine itself but to a wrong directory ownership — /run/mariadb was owned by root, preventing the mysql user from writing its socket and PID files. Fixing the issue required a single chown command followed by a service restart, with systemctl logs serving as the diagnostic tool throughout. On the AWS side, termination protection was enabled on an EC2 instance using the --disable-api-termination flag, which blocks accidental permanent deletion via the API. The exercise highlighted that termination and stop protection are separate settings, and that API-level protection does not cover attached volume deletion.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in