Snap installed in lxc can't run apps/services after refresh

Bug #1690906 reported by Kyle Fazzari
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released

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:

Kyle Fazzari (kyrofa)
summary: - Snap installed in lxc doesn't restart services after refresh
+ Snap installed in lxc can't run apps/services after refresh
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

The bug status here hasn't moved, but I can no longer reproduce it, so I'll mark it fix released.

Changed in snapd:
status: New → Fix Released
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.