Closed tarruda closed 2 weeks ago
I assume this will be fixed in 6.6?
Is there an older version to go back to that will work till than?
incus network delete natbr0
Error: Couldn't identify AppArmor cache directory
@jalbstmeijer the fix was merged but not released yet.
Until a fix is released, the only way to bypass the error is to activate apparmor. If you are using raspbian, it is possible to activate by appending apparmor=1 security=apparmor
to /boot/firmware/cmdline.txt
and then rebooting
@stgraber got a temporary fix? I am on void linux and they take forever to upstream shit with incus...
Nope, the main options are:
Required information
Issue description
After the last update (IIRC I was on 0.7, now on 6.5, also updated a lot of other packages including kernel), I'm unable to make changes to the proxy devices due to "Couldn't identify AppArmor cache directory" . For example, I have a container called "dante-socks5-proxy ". This is what happens when I try to modify it
Steps to reproduce
Not sure how to reproduce, except that all containers I had in Incus 0.7 were affected by this after upgrading to 6.5. Apparently I can modify the configuration as long as I don't touch the proxy devices.
Information to attach
incus info NAME --show-log
)Log:
lxc dante-socks5-proxy 20240909000749.312 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing lxc dante-socks5-proxy 20240909000749.313 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing lxc dante-socks5-proxy 20240909000749.326 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing lxc dante-socks5-proxy 20240909000749.327 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing lxc dante-socks5-proxy 20240909000749.331 WARN cgfsng - ../src/lxc/cgroups/cgfsng.c:fchowmodat:1897 - No such file or directory - Failed to fchownat(16, memory.oom.group, 1000000000, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW ) lxc dante-socks5-proxy 20240909000749.331 WARN cgfsng - ../src/lxc/cgroups/cgfsng.c:fchowmodat:1897 - No such file or directory - Failed to fchownat(16, memory.reclaim, 1000000000, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW ) lxc dante-socks5-proxy 20240909000757.953 WARN attach - ../src/lxc/attach.c:get_attach_context:478 - No security context received lxc dante-socks5-proxy 20240909000757.955 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing lxc dante-socks5-proxy 20240909000757.955 WARN idmap_utils - ../src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing
Let me know if you need any more information that might be relevant to this error.