Snap installed in lxc can't run apps/services after refresh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Installing a snap within an lxc container works fine (services launch as expected, apps run fine, etc.). However, a subsequent refresh of said in-container snap results in every service dying and every attempt to run an app ending with a message like this (using the nextcloud snap as an example):
cannot snap-exec: cannot read info for "nextcloud": cannot find installed snap "nextcloud" at revision 1311
(note that revision 1311 is the new revision that was just installed via the refresh.)
A reboot of the container fixes things: the services come back up, and apps are runnable again. However, that's not a workaround when you consider that the `configure` hook runs as part of the installation process. It fails with the same error, and the snap rolls back, which means any snap using the `configure` hook can never be updated if it's running within lxc. Reboots don't help.
Discussion where this issue was discovered: https:/
summary: |
- Snap installed in lxc doesn't restart services after refresh + Snap installed in lxc can't run apps/services after refresh |
The bug status here hasn't moved, but I can no longer reproduce it, so I'll mark it fix released.