-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supervised: AppArmor issue with Raspberrymatic addon after upgrading to Debian 12 #311
Comments
Adding apparmor kernel log:
|
I am assuming the cgroup v1 switch successfully works on Debian 12 (e.g. It seems that some kind of socket operation is denied.
@jens-maus maybe you have some insights here? |
Yes it is not a cgroup issue, I checked /proc/cmdline. It is weird that it worked with identical config and components on Debian 11. Main difference between 11 and 12 seems to be Apparmor 2.x vs 3. Especially since I was running same kernel versions (I e. back ported 6.10 kernel for Bullseye before). |
Could be related to AppArmor 3.x, however, we do use AppArmor 3.x on HAOS as well, and I haven't seen such reports. Also, I don't think that the regular AppArmor profiles are used by Docker. What could be a issue is the new version of Docker: What version of Docker are you using? E.g. what is |
No sorry, haven't seen this yet and have no idea what might be the root cause. As usual: HA Supervised installations are unfortunately very prone to these kind of OS related issues and especially in cases where new major versions like Debian11->12 are arriving ppl commonly popup with these kind of issues. That's why HA supervised installations should IMHO really be discouraged more and more and suggestions should be raised that ppl should use HomeAsssistantOS instead ;) |
I gave up on it already and switched to HAOS in VM in the meantime which works fine. If you don't want to look into it further we can close this. |
Thanks for the update. Yeah without exact information e.g. what Docker version is in use its kinda hard to investigate. I'll close it for now, if someone else experiences the same issue, feel free to speak up so we can resume investigation. |
FYI: Downgrading AppArmor from 3.0.8-3 to 2.13.6-10 maybe can solve this issue also (it helped in a similar situation), for steps see lmagyar/homeassistant-addon-mariadb-inmemory#44 (comment) |
Thanks @lmagyar that confirms my initial suspicion. |
@lmagyar you may want to try adding a line "network," to your apparmor policy (or more specific network rules). This is what seems to do the trick for me. I don't know why it wasn't necessary on Debian 11 and is on 12 now. |
@sbyx Please provide more detail on the specific |
In short I moved from HAOS/Supervised to individually managed containers with podman on top of Debian 12. While trying to run your raspberrymatic container unprivileged I essentially ran into the same issue as with HA supervised under Debian 12 (permission denied when binding / connecting sockets). What did the trick was adding a "network" directive into the apparmor profile. See my example here (5th line in the profile block):
|
There are reports of changes in how AppArmor behaves. It seems that with AppArmor 3.0 What I do wonder is why this is not showing up on Home Assistant OS. After all, Home Assistant OS 10.x is using AppArmor 3.1. |
Describe the issue you are experiencing
Since upgrading from Debian 11 to 12 I'm encountering an issue with the Raspberrymatic addon which is unable to start due to an issue with AppArmor. This was running fine with Debian 11 and identical HA components and same Addon version.
This is from the addon log:
Disabling apparmor with "apparmor=0" onm kernel command line works around this issue and makes the addon run correctly again.
What type of installation are you running?
Home Assistant Supervised
Which operating system are you running on?
Debian
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
The text was updated successfully, but these errors were encountered: