snapd warns about apps needing to be restarted, but closing the app does not trigger a snap refresh

Bug #1978421 reported by Steve Langasek
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I've recently started receiving notifications on my jammy desktop that snaps I currently have running need to be closed, so that the snap can be updated; and tells me how many days I have left to restart it. This is great!

However, I have seen this message for both matterhorn and chromium, and after closing and restarting the applications, I still got notifications counting down the days. The notifications did not say that I needed to manually run 'snap refresh' after closing the app, or that I had to wait a certain amount of time after closing before restarting the app.

Ideally, snapd would detect when a snap whose refresh is blocked by a running process is no longer running, and immediately refresh it, blocking any further launches until the refresh is complete.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: snapd 2.55.5+22.04
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: lkp_Ubuntu_5_15_0_27_28_generic_86 zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun 12 17:15:04 2022
InstallationDate: Installed on 2019-12-23 (902 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: snapd
UpgradeStatus: Upgraded to jammy on 2022-04-15 (58 days ago)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2022-05-09T12:56:17.227125

Revision history for this message
Steve Langasek (vorlon) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
Chris Guiver (guiverc) wrote :

I've seen a user on askubuntu report this is expected behavior (ie. closing `firefox` snap should cause it to auto-update on next launch; ie. close & re-open will cause auto-update), but I've not experienced that behavior with snaps I regularly use on my desktop

Ubuntu kinetic; I mostly use LXQt/Lubuntu but have GNOME/Ubuntu & Xfce/Xubuntu desktops installed too (original install artful)

Snaps used for me are firefox, chromium & telegram.

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.