Hi,
We’re having trouble installing the LXD snap for snapcraft’s and charmcraft’s github workflows.
This is the error:
+ snap install lxd
error: cannot perform the following tasks:
- Run configure hook of "lxd" snap if present (run hook "configure":
-----
cat: /proc/self/attr/current: Permission denied
/snap/lxd/23680/snap/hooks/configure: 5: exec: aa-exec: Permission denied
-----)
-----
The environment setup is brief. We apply the following steps to a stock ubuntu image:
apt-get install -y snapd
snap install snapd
snap wait system seed.loaded
if [ "$SPREAD_SYSTEM" = "ubuntu-18.04-64" ] || [ "$SPREAD_SYSTEM" = "ubuntu-20.04-64" ]; then
# Remove lxd and lxd-client deb packages as our implementation (pylxd) does not
# nicely handle the snap and deb being installed at the same time.
apt-get remove --purge --yes lxd lxd-client
fi
# Install and setup the lxd snap
snap install lxd
# Add the ubuntu user to the lxd group.
adduser ubuntu lxd
lxd init --auto
The biggest mystery for us is the inconsistency. LXD installs fine most of the time. Maybe 10-15% of the time, it fails with this error.
I’m not sure when this started (github logs expire quickly), but it has certainly been occurring more often in the last 2-3 weeks.
Any help or advice? Or is this more of a snapd issue?