Long update delays with automatic snap refresh Firefox and Thunderbird
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Confirmed
|
Undecided
|
Przemysław Suliga | ||
snapd |
New
|
Undecided
|
Unassigned |
Bug Description
System Ubuntu 24.04.1, snapd 2.63.
Firefox being closed prevents automatic snap updates for firefox when snapd update is taking place.
Normally snap refresh checks updates four times a day. If Firefox is not open during any refresh check, the update goes to the background system and gets stuck.
As a reference to the earlier Pug tracking: https:/
I have encountered this same problem in many 24.04 installations and updated installations.
Yesterday, by chance, I noticed in another installation where Firefox has not been updated automatically for a 19 days after firefox 132.0 release. When Firefox was open, and snapd automatic refresh took over. There was a notification about a Firefox update. And after closing Firefox, it had updated to the latest version.
I've tried to look for instructions on how to get the trace a reason more precisely snapd background updater, but I haven't found any instructions.
These data and logs below are from a virtual machine where I've been letting everything update automatically for over a month now. I haven't done any manual updates.
snap list
Name Version Rev Tracking Publisher Notes
bare 1.0 5 latest/stable canonical✓ base
core 16-2.61.4-20240607 17200 latest/stable canonical✓ core
core22 20241001 1663 latest/stable canonical✓ base
firefox 131.0.3-1 5134 latest/stable mozilla✓ -
firmware-updater 0+git.7983059 147 latest/stable/… canonical✓ -
gnome-42-2204 0+git.510a601 176 latest/stable/… canonical✓ -
gtk-common-themes 0.1-81-g442e511 1535 latest/stable/… canonical✓ -
snap-store 0+git.4fcd62b7 1218 latest/stable/… canonical✓ -
snapd 2.63 21759 latest/stable canonical✓ snapd
snapd-desktop-
thunderbird 128.4.2esr-1 562 latest/stable/… canonical✓ -
snap info firefox
name: firefox
summary: Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https:/
contact: https:/
license: unset
description: |
Firefox is a powerful, extensible web browser with support for modern web
application technologies.
commands:
- firefox
- firefox.geckodriver
snap-id: 3wdHCAVyZEmYsCM
tracking: latest/stable
refresh-date: 33 days ago, at 17:49 EEST
channels:
latest/stable: 132.0.2-2 2024-11-12 (5273) 286MB -
latest/candidate: 132.0.2-2 2024-11-11 (5273) 286MB -
latest/beta: 133.0b9-1 2024-11-15 (5299) 286MB -
latest/edge: 134.0a1 2024-11-18 (5308) 313MB -
esr/stable: 128.4.0esr-1 2024-10-29 (5191) 283MB -
esr/candidate: 128.4.0esr-1 2024-10-30 (5218) 283MB -
esr/beta: ↑
esr/edge: ↑
installed: 131.0.3-1 (5134) 285MB -
snap changes
no changes found
snap refresh --time
timer: 00:00~24:00/4
last: today at 18:59 EET
next: tomorrow at 03:30 EET
journalctl -u snapd
-- Boot c38fe82b08df47a
Nov 13 16:25:03 kayttaja-VirtualBox systemd[1]: Starting snapd.service - Snap Daemon...
Nov 13 16:25:03 kayttaja-VirtualBox snapd[973]: overlord.go:271: Acquiring state lock file
Nov 13 16:25:03 kayttaja-VirtualBox snapd[973]: overlord.go:276: Acquired state lock file
Nov 13 16:25:03 kayttaja-VirtualBox snapd[973]: daemon.go:250: started snapd/2.65.3+24.04 (series 16; classic) ubuntu/24.04 (amd64) linux/6.
Nov 13 16:25:03 kayttaja-VirtualBox snapd[973]: daemon.go:353: adjusting startup timeout by 1m25s (pessimistic estimate of 30s plus 5s per snap)
Nov 13 16:25:03 kayttaja-VirtualBox snapd[973]: backends.go:58: AppArmor status: apparmor is enabled and all features are available
Nov 13 16:25:04 kayttaja-VirtualBox systemd[1]: Started snapd.service - Snap Daemon.
Nov 13 16:35:04 kayttaja-VirtualBox snapd[973]: devicemgr.go:2562: no NTP sync after 10m0s, trying auto-refresh anyway
Nov 13 16:35:04 kayttaja-VirtualBox snapd[973]: storehelpers.
Nov 13 17:20:27 kayttaja-VirtualBox snapd[973]: storehelpers.
Nov 13 18:45:46 kayttaja-VirtualBox snapd[973]: main.go:168: Exiting on terminated signal.
Nov 13 18:45:46 kayttaja-VirtualBox systemd[1]: Stopping snapd.service - Snap Daemon...
Nov 13 18:45:49 kayttaja-VirtualBox snapd[973]: overlord.go:515: Released state lock file
Nov 13 18:45:49 kayttaja-VirtualBox systemd[1]: snapd.service: Deactivated successfully.
Nov 13 18:45:49 kayttaja-VirtualBox systemd[1]: Stopped snapd.service - Snap Daemon.
Nov 13 18:45:49 kayttaja-VirtualBox systemd[1]: snapd.service: Consumed 1.465s CPU time, 40.0M memory peak, 0B memory swap peak.
-------
-- Boot 84f5f501ab2e4bd
Nov 14 16:48:16 kayttaja-VirtualBox systemd[1]: Starting snapd.service - Snap Daemon...
Nov 14 16:48:16 kayttaja-VirtualBox snapd[934]: overlord.go:271: Acquiring state lock file
Nov 14 16:48:16 kayttaja-VirtualBox snapd[934]: overlord.go:276: Acquired state lock file
Nov 14 16:48:16 kayttaja-VirtualBox snapd[934]: daemon.go:250: started snapd/2.65.3+24.04 (series 16; classic) ubuntu/24.04 (amd64) linux/6.
Nov 14 16:48:16 kayttaja-VirtualBox snapd[934]: daemon.go:353: adjusting startup timeout by 1m25s (pessimistic estimate of 30s plus 5s per snap)
Nov 14 16:48:16 kayttaja-VirtualBox snapd[934]: backends.go:58: AppArmor status: apparmor is enabled and all features are available
Nov 14 16:48:16 kayttaja-VirtualBox systemd[1]: Started snapd.service - Snap Daemon.
Nov 14 16:58:16 kayttaja-VirtualBox snapd[934]: devicemgr.go:2562: no NTP sync after 10m0s, trying auto-refresh anyway
Nov 14 16:58:17 kayttaja-VirtualBox snapd[934]: storehelpers.
Nov 14 16:58:27 kayttaja-VirtualBox snapd[934]: storehelpers.
Nov 14 17:15:05 kayttaja-VirtualBox systemd[1]: Stopping snapd.service - Snap Daemon...
Nov 14 17:15:05 kayttaja-VirtualBox snapd[934]: main.go:168: Exiting on terminated signal.
Nov 14 17:15:08 kayttaja-VirtualBox snapd[934]: overlord.go:515: Released state lock file
Nov 14 17:15:08 kayttaja-VirtualBox systemd[1]: snapd.service: Deactivated successfully.
Nov 14 17:15:08 kayttaja-VirtualBox systemd[1]: Stopped snapd.service - Snap Daemon.
Nov 14 17:15:08 kayttaja-VirtualBox systemd[1]: snapd.service: Consumed 4.056s CPU time, 452.6M memory peak, 0B memory swap peak.
-------
-- Boot eeb89191abe14ae
Nov 18 16:24:19 kayttaja-VirtualBox systemd[1]: Starting snapd.service - Snap Daemon...
Nov 18 16:24:19 kayttaja-VirtualBox snapd[984]: overlord.go:271: Acquiring state lock file
Nov 18 16:24:19 kayttaja-VirtualBox snapd[984]: overlord.go:276: Acquired state lock file
Nov 18 16:24:20 kayttaja-VirtualBox snapd[984]: daemon.go:250: started snapd/2.65.3+24.04 (series 16; classic) ubuntu/24.04 (amd64) linux/6.
Nov 18 16:24:20 kayttaja-VirtualBox snapd[984]: daemon.go:353: adjusting startup timeout by 1m25s (pessimistic estimate of 30s plus 5s per snap)
Nov 18 16:24:20 kayttaja-VirtualBox snapd[984]: backends.go:58: AppArmor status: apparmor is enabled and all features are available
Nov 18 16:24:20 kayttaja-VirtualBox systemd[1]: Started snapd.service - Snap Daemon.
Nov 18 16:34:20 kayttaja-VirtualBox snapd[984]: devicemgr.go:2562: no NTP sync after 10m0s, trying auto-refresh anyway
Nov 18 16:34:20 kayttaja-VirtualBox snapd[984]: storehelpers.
Nov 18 18:49:46 kayttaja-VirtualBox systemd[1]: Stopping snapd.service - Snap Daemon...
Nov 18 18:49:46 kayttaja-VirtualBox snapd[984]: main.go:168: Exiting on terminated signal.
Nov 18 18:49:49 kayttaja-VirtualBox snapd[984]: overlord.go:515: Released state lock file
Nov 18 18:49:49 kayttaja-VirtualBox systemd[1]: snapd.service: Deactivated successfully.
Nov 18 18:49:49 kayttaja-VirtualBox systemd[1]: Stopped snapd.service - Snap Daemon.
Nov 18 18:49:49 kayttaja-VirtualBox systemd[1]: snapd.service: Consumed 1.248s CPU time, 39.4M memory peak, 0B memory swap peak.
I have shortened the log. I can also deliver the previous log complete if necessary.
uprecords -B -m 20
# Uptime | System Boot up
-------
-> 1 0 days, 01:46:13 | Linux 6.8.0-48-generic Mon Nov 18 18:49:52 2024
2 0 days, 02:25:31 | Linux 6.8.0-48-generic Mon Nov 18 16:24:15 2024
3 0 days, 02:20:46 | Linux 6.8.0-48-generic Wed Nov 13 16:25:00 2024
4 0 days, 03:31:44 | Linux 6.8.0-48-generic Tue Nov 12 17:31:29 2024
5 0 days, 01:39:58 | Linux 6.8.0-47-generic Mon Oct 28 19:12:33 2024
6 0 days, 01:00:04 | Linux 6.8.0-47-generic Sat Oct 26 20:35:59 2024
7 0 days, 01:05:09 | Linux 6.8.0-47-generic Fri Oct 25 16:21:29 2024
8 0 days, 01:14:12 | Linux 6.8.0-45-generic Fri Oct 18 18:02:53 2024
9 0 days, 02:16:16 | Linux 6.8.0-45-generic Thu Oct 17 16:43:32 2024
10 0 days, 01:19:01 | Linux 6.8.0-45-generic Sat Oct 12 17:26:52 2024
11 0 days, 02:39:02 | Linux 6.8.0-41-generic Fri Sep 6 17:21:57 2024
12 0 days, 02:15:45 | Linux 6.8.0-41-generic Sat Aug 31 10:59:02 2024
13 0 days, 02:27:30 | Linux 6.8.0-40-generic Fri Aug 23 15:58:08 2024
14 0 days, 01:07:46 | Linux 6.8.0-40-generic Thu Aug 15 21:47:30 2024
15 0 days, 01:06:18 | Linux 6.8.0-39-generic Tue Aug 13 21:44:59 2024
The new thing about this particular installation is that Thunderbird has also not updated automatically for six days now. In the past, there have been no update problems with Thunderbird. I suspect this stuck Firefox update is blocking the Thunderbird update as well.
Thunderbird was updated today. Firefox has still not been updated because I have kept it closed during the automatic refresh check.
-- Boot cb12409811dd40d a82c80945ff89f1 40 -- 8.0-48- generic. go:1019: cannot refresh: snap has no updates available: "bare", "core", "core22", "firefox", "firmware-updater", "gnome-42-2204", "gtk-common- themes" , "snap-store", "snapd", "snapd- desktop- integration" go:1019: cannot refresh snap "thunderbird": snap has no updates available
Nov 21 16:03:15 kayttaja-VirtualBox systemd[1]: Starting snapd.service - Snap Daemon...
Nov 21 16:03:15 kayttaja-VirtualBox snapd[985]: overlord.go:271: Acquiring state lock file
Nov 21 16:03:15 kayttaja-VirtualBox snapd[985]: overlord.go:276: Acquired state lock file
Nov 21 16:03:15 kayttaja-VirtualBox snapd[985]: daemon.go:250: started snapd/2.65.3+24.04 (series 16; classic) ubuntu/24.04 (amd64) linux/6.
Nov 21 16:03:15 kayttaja-VirtualBox snapd[985]: daemon.go:353: adjusting startup timeout by 1m25s (pessimistic estimate of 30s plus 5s per snap)
Nov 21 16:03:15 kayttaja-VirtualBox snapd[985]: backends.go:58: AppArmor status: apparmor is enabled and all features are available
Nov 21 16:03:15 kayttaja-VirtualBox systemd[1]: Started snapd.service - Snap Daemon.
Nov 21 16:13:15 kayttaja-VirtualBox snapd[985]: devicemgr.go:2562: no NTP sync after 10m0s, trying auto-refresh anyway
Nov 21 16:13:16 kayttaja-VirtualBox snapd[985]: storehelpers.
Nov 21 16:13:26 kayttaja-VirtualBox snapd[985]: storehelpers.
snap changes
ID Status Spawn Ready Summary
53 Done today at 16:13 EET today at 16:13 EET Automaattisesti päivitä snap "thunderbird"
snap info firefox /snapcraft. io/firefox /support. mozilla. org/kb/ file-bug- report- or-feature- request- mozilla FDE9qt92UV8rC8W dk
name: firefox
summary: Mozilla Firefox web browser
publisher: Mozilla✓
store-url: https:/
contact: https:/
license: unset
description: |
Firefox is a powerful, extensible web browser with support for modern web application
technologies.
commands:
- firefox
- firefox.geckodriver
snap-id: 3wdHCAVyZEmYsCM
tracking: latest/stable
refresh-date: 36 days ago, at 17:49 EEST
channels:
latest/stable: 132.0.2-2 2024-11-12 (5273) 286MB -
latest/candidate: 133.0-1 2024-11-21 (5330) 286MB -
latest/beta: 133.0b9-1 2024-11-19 (5317) 286MB -
latest/edge: 134.0a1 2024-11-21 (5334) 314MB -
esr/stable: 128.4.0esr-1 2024-10-29 (5191) 283MB -
esr/candidate: 128.5.0esr-1 2024-11-20 (5325) 282MB -
esr/beta: ↑
esr/edge: ↑
installed: 131.0.3-1 (5134) 285MB -
uprecords -B -m 20 ------- ------- ------- +------ ------- ------- ------- ------- ------- ------- ---
# Uptime | System Boot up
-------
-> 1 0 days, 00:30:08 | Linux 6.8.0-48-generic Thu Nov 21 16:03:10 2024
2 0 days, 01:02:11 | Linux 6.8.0-48-generic Wed Nov 20 16:45:59 2024
3 0 days, 01:02:53 | Linux 6.8.0-48-generic Tue Nov 19 16:38:00 2024
4 0 days, 03:07:11 | Linux 6.8.0-48-generic M...