Comment 3 for bug 1665808

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 1665808] Unable to install core snap in an ephemeral boot: cannot create namespace group directory /run/snapd/ns: Bad file descriptor

> Wiadomość napisana przez Mike Pontillo <email address hidden> w dniu 22.02.2017, o godz. 08:57:
>
> Well, that's interesting. The behavior has changed slightly, and I'm not
> sure why. Now when I install the core snap, I get:
>
> core 16-2 from 'canonical’ installed
This is most likely caused by the removal of the configure hook.

The error only happens when you run any hook/application.

The root of the error is: Feb 22 07:50:32 maas-commission snap[11789]: cannot create namespace group directory /run/snapd/ns: Bad
 file descriptor

I strongly suspect that snap-confine doesn’t work on top of overlayfs. I can investigate this but I cannot offer you any immediate fixes.

>
> (I used to see the same error when installing the core snap.)
>
> Next I tried installing the snap I *really* wanted to install (via `sudo
> snap install --devmode --edge sonic-lool`) and it still fails; and I see
> a syslog message very similar to the original error as follows (see like
> 45 in the paste):
>
> http://paste.ubuntu.com/24045264/
>
> Based on the syslog message, it looks like a problem with the AppArmor
> profile's lack of consideration for /overlay/... as a full path in the

overlayfs doesn’t support apparmor at all, it is not something that we can trivially fix.

> ephemeral environment. (Not that it should have been obvious!)
>
> --
> You received this bug notification because you are a member of Snappy
> Developers, which is subscribed to Snappy.
> Matching subscriptions: xxx-bugs-on-snapd
> https://bugs.launchpad.net/bugs/1665808
>
> Title:
> Unable to install core snap in an ephemeral boot: cannot create
> namespace group directory /run/snapd/ns: Bad file descriptor
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snappy/+bug/1665808/+subscriptions