Somehow AppArmor got FUBARd
Posted: Wed Jan 10, 2024 7:52 pm
I tried to log in to ZoneMinder (latest version on Ubuntu 22.04.3) and got an error saying that it could not connect to the database. I looked to see services and initially I saw that MySQL was running but then I noticed that AppArmor was NOT running and this was related to MySQL. I looked up logs for AppArmor and see:
I do not know what happened to cause this issue. I'm not quite sure how to fix it without erasing everything.
Code: Select all
Jan 10 11:38:00 zoneminder systemd[1]: Starting Load AppArmor profiles...
Jan 10 11:38:00 zoneminder apparmor.systemd[1801]: Restarting AppArmor
Jan 10 11:38:00 zoneminder apparmor.systemd[1801]: Reloading AppArmor profiles
Jan 10 11:38:00 zoneminder apparmor.systemd[1836]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Jan 10 11:38:00 zoneminder apparmor.systemd[1835]: AppArmor parser error for /etc/apparmor.d in profile /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql'
Jan 10 11:38:01 zoneminder apparmor.systemd[1971]: AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in profile /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql'
Jan 10 11:38:01 zoneminder apparmor.systemd[1973]: Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd
Jan 10 11:38:01 zoneminder apparmor.systemd[1801]: Error: At least one profile failed to load
Jan 10 11:38:01 zoneminder systemd[1]: apparmor.service: Main process exited, code=exited, status=1/FAILURE
Jan 10 11:38:01 zoneminder systemd[1]: apparmor.service: Failed with result 'exit-code'.
Jan 10 11:38:01 zoneminder systemd[1]: Failed to start Load AppArmor profiles.
Jan 10 11:38:01 zoneminder systemd[1]: apparmor.service: Consumed 1.977s CPU time.