I’ve noticed this at least a week ago: new versions aren’t installed for days, even if I know that it is available, even after a reboot.
$ snap changes
error: no changes found
$ sudo snap refresh
telegram-desktop 2.1.2 from Telegram FZ-LLC (telegram.desktop) refreshed
beekeeper-studio 1.2.0 from Beekeeper Studio (matthew-rathbone) refreshed
node (14/stable) 14.2.0 from NodeSource, Inc. (nodesource✓) refreshed
System logs show many AppArmor messages like this:
After some time I’ve noticed that some snaps do update, but at least snaps with AppArmor errors in logs (like Telegram) don’t. I’ve tried to remove/install them again, but it had no impact on auto-refresh.
This is today after 15 min after turning on the PC in the morning:
$ snap changes
ID Status Spawn Ready Summary
387 Done yesterday at 18:05 +03 yesterday at 18:05 +03 Auto-refresh snap "beekeeper-studio"
$ sudo snap refresh
chromium (beta) 83.0.4103.56 from Canonical✓ refreshed
$ snap changes
ID Status Spawn Ready Summary
387 Done yesterday at 18:05 +03 yesterday at 18:05 +03 Auto-refresh snap "beekeeper-studio"
388 Done today at 09:38 +03 today at 09:38 +03 Refresh snap "chromium"
Maybe I didn’t get i right, but I think it did check updates on boot before. That’s why I was using just snap changes as my morning routine instead of refresh + changes.
Anyway, with Telegram I knew there is a newer version on Stapcraft and waited a 24h+, but it haven’t been updated. My understanding it should check for updates at least every 6 hours by default (which also implies checking on boot in the morning).
I’ve posted an example of AppArmor log in the first message. The log it spammed with those:
I missed earlier that you’d turned on the experimental refresh awareness feature flag. By any chance, is telegram-desktop running in the background when the automatic refreshes took place?
Could that be the case for the other snaps you’ve seen this with?
No, Telegram isn’t in autostarted (I disabled it because of Ubuntu/GNOME issues with desktop expanding animation on 4K and app starting as small windows). So, nothing is running from snaps on boot.
BTW, I’m now on freshly installed 20.04 and will look for refresh issues in the coming days (haven’t enabled refresh-awareness yet).