π ~1 min read
Table of contents
Symptom & Impact
Application fails at runtime due to denied file or capability access.
Environment & Reproduction
Appears after app upgrades or config path changes.
sudo systemctl restart
Root Cause Analysis
AppArmor profile does not include newly required paths or permissions.
Quick Triage
Review kernel and audit logs for denial records.
sudo dmesg | grep -i apparmor
Step-by-Step Diagnosis
Extract denial events and identify profile name.
sudo journalctl -k | grep DENIED | grep apparmor

Solution – Primary Fix
Adjust the profile and reload AppArmor policies.
Still having issues? Our IT Consulting team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo aa-logprof && sudo systemctl reload apparmor

Solution – Alternative Approaches
Set profile to complain mode temporarily for controlled diagnostics.
Verification & Acceptance Criteria
Service starts and operates with no new AppArmor deny events.
Rollback Plan
Restore prior profile file from backup and reload policies.
Prevention & Hardening
Include AppArmor profile updates in application deployment process.
Related Errors & Cross-Refs
Related to SELinux migration assumptions and missing capability grants.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Ubuntu AppArmor profile authoring and troubleshooting docs.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.