Skip to content
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

aa_is_enabled() failed unexpectedly (No such file or directory): No such file or directory #9

Open
oneacl opened this issue Apr 25, 2022 · 4 comments

Comments

@oneacl
Copy link

oneacl commented Apr 25, 2022

Hi,

the host runs ubuntu 20.04 with the following snap version:

snap 2.55.3
snapd 2.55.3
series 16
ubuntu 20.04
kernel 5.13.0-39-generic

I tried 18.04, 20.04 and 22.04 containers but all snaps fail to start in the container with:

/# hello-world
aa_is_enabled() failed unexpectedly (No such file or directory): No such file or directory
/#

There are a few random posts on the internet around this issue (mostly certbot on debian) but nothing that may lead to a fix.

Would you happen to know what's causing this and what I can attempt to get it working?

Thank you.

@crumbjp
Copy link

crumbjp commented Jun 21, 2022

I also experienced this.

It seems like this issue is the same as diddlesnaps/snapcraft-container#8

My temporary patch
mount -t securityfs securityfs /sys/kernel/security

@srinivasdhanabalan
Copy link

Hi,

I currently experienced the same problem, suggestion from @crumbjp worked. Thanks!

But now it gives me a new error

`error: cannot perform the following tasks:

  • Run configure hook of "snapcraft" snap if present (run hook "configure":

missing profile snap.snapcraft.hook.configure.
Please make sure that the snapd.apparmor service is enabled and started
-----)
`
Is there a solution available for this as well ?

@hlfernandez
Copy link

Hi,

I currently experienced the same problem, suggestion from @crumbjp worked. Thanks!

But now it gives me a new error

`error: cannot perform the following tasks:

* Run configure hook of "snapcraft" snap if present (run hook "configure":

missing profile snap.snapcraft.hook.configure. Please make sure that the snapd.apparmor service is enabled and started -----) ` Is there a solution available for this as well ?

Same issue here. Any idea @ogra1?

I would like to build snaps from a specific image with other packages installed and this is why I think in Docker to avoid having a VM.

@RahulRavichandran1
Copy link

Is there a solution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants