Snapd LXD exec: aa-exec: Permission denied

Bug #1882261 reported by Andrew Cloke
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
Confirmed
High
Unassigned

Bug Description

After having "snap remove lxd" and "snap install lxd", I'm getting the following issue:

$ lxc
cat: /proc/self/attr/current: Permission denied
snap/lxd/15359/commands/lxc: 6: exec: aa-exec: Permission denied

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

"systemd-analyze plot" output

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

lxd snap connections appear to be "unplugged":

$ snap connections lxd
Interface Plug Slot Notes
lxd - lxd:lxd -
lxd-support lxd:lxd-support - -
network lxd:network - -
network-bind lxd:network-bind - -
system-observe lxd:system-observe - -

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap list core
Name Version Rev Tracking Publisher Notes
core 16-2.45 9289 latest/stable canonical✓ core

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ systemd-analyze critical-chain snapd.service
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

snapd.service +12.817s
└─basic.target @2.641s
  └─sockets.target @2.641s
    └─snapd.socket @2.637s +2ms
      └─sysinit.target @2.617s
        └─systemd-timesyncd.service @2.347s +268ms
          └─systemd-tmpfiles-setup.service @2.324s +20ms
            └─local-fs.target @2.316s
              └─boot-efi.mount @2.306s +8ms
                └─systemd-fsck@dev-disk-by\x2duuid-DEA6\x2dE70F.service @1.871s +428ms
                  └─dev-disk-by\x2duuid-DEA6\x2dE70F.device @1.806s

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ systemd-analyze critical-chain snap-core-9289.mount
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

snap-core-9289.mount +1.735s
└─local-fs-pre.target @483ms
  └─systemd-tmpfiles-setup-dev.service @428ms +53ms
    └─systemd-sysusers.service @401ms +19ms
      └─systemd-remount-fs.service @358ms +28ms
        └─systemd-journald.socket @317ms
          └─system.slice @292ms
            └─-.slice @292ms

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap interfaces > tmp7.txt

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap list snapd
error: no matching snaps installed

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap changes
ID Status Spawn Ready Summary
194 Done today at 08:02 BST today at 08:02 BST Disable "lxd" snap
195 Done today at 08:05 BST today at 08:10 BST Remove "lxd" snap
196 Done today at 08:49 BST today at 08:49 BST Forget of snapshot set #12
197 Done today at 08:49 BST today at 08:49 BST Forget of snapshot set #13
198 Done today at 08:49 BST today at 08:49 BST Install "lxd" snap
199 Done today at 13:35 BST today at 13:35 BST Disable "juju" snap
200 Done today at 13:38 BST today at 13:38 BST Remove "juju" snap
201 Done today at 13:43 BST today at 13:43 BST Remove "lxd" snap
202 Done today at 14:02 BST today at 14:02 BST Install "lxd" snap
203 Done today at 14:04 BST today at 14:04 BST Install "juju" snap
204 Done today at 14:08 BST today at 14:08 BST Remove "lxd" snap
205 Done today at 14:08 BST today at 14:08 BST Forget of snapshot set #14
206 Done today at 14:08 BST today at 14:08 BST Forget of snapshot set #15
207 Done today at 14:08 BST today at 14:08 BST Forget of snapshot set #16
208 Done today at 14:11 BST today at 14:11 BST Install "lxd" snap
209 Done today at 14:15 BST today at 14:15 BST Remove "lxd" snap
210 Done today at 14:19 BST today at 14:19 BST Refresh all snaps: no updates
211 Done today at 14:19 BST today at 14:20 BST Install "lxd" snap

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap interfaces
Slot Plug
lxd:lxd -
- juju:peers
- lxd:lxd-support
- lxd:network
- lxd:network-bind
- lxd:system-observe
'snap interfaces' is deprecated; use 'snap connections'.

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ journalctl -u snapd.service

Output in https://paste.ubuntu.com/p/3ynNJWStPW/

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ snap list --all

Output in https://paste.ubuntu.com/p/bCCvWfwYmK/

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ cat /proc/self/mountinfo

Output in https://paste.ubuntu.com/p/VM4TyqXsws/

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

$ ls -l /snap/core/9289/meta
total 1
drwxr-xr-x 2 root root 32 May 12 17:49 hooks
-rw-r--r-- 1 root root 181 May 12 17:49 snap.yaml

Revision history for this message
Andrew Cloke (andrew-cloke) wrote :

Issue resolved by restarting snapd service and reconnecting the lxd "plugs":
$ sudo systemctl restart snapd.service
$ for i in :lxd-support :network :network-bind :system-observe ; do sudo snap connect lxd$i ; done

Michael Vogt (mvo)
Changed in snapd:
status: New → Confirmed
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.