snap 2.59.2 is not doing Firefox updates automatically
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Committed
|
High
|
Miguel Pires |
Bug Description
Changelog for snap 2.59 says that pending updates will be applied once "all apps are closed".
I assume this means "all processes associated with an app that has a pending update".
Well, it is not working for in four Ubuntu installs, two 22.04 and two 23.04 including a vanilla 23.04 VM.
See discussion here: https:/
I do not know where to report this bug.
I can reproduce this with firefox beta or firefox snap.
snap refresh --list shows there is an update
But it is never automatically applied when the app is closed.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Sergio Cazzolato (sergio-j-cazzolato) wrote : | #1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing updates automatically | #2 |
I don't have 2.59.3, only 2.59.2
How do I get 2.59.3 ?
On Tue, 16 May 2023 at 00:29, Sergio Cazzolato <email address hidden>
wrote:
> Hi, I see snaps are being auto-refreshed using snapd 2.59.3, could you
> please share the snapd journal logs and snap changes?
> # journalctl -u snapd
> # snap changes
>
> Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #3 |
I found 2.59.4 in latest/beta.
It doesn't work any differently though.
Firefox does not refresh when I exit
this is some terminal output. I had Firefox running.
tim@tim-
snap 2.59.4
snapd 2.59.4
series 16
ubuntu 23.04
kernel 6.2.0-20-generic
tim@tim-
Name Version Rev Size Publisher Notes
firefox 113.0.1-1 2681 255MB mozilla\u2713 -
tim@tim-
All snaps up to date.
tim@tim-
Name Version Rev Size Publisher Notes
firefox 113.0.1-1 2681 255MB mozilla\u2713 -
tim@tim-
Name Version Rev Size Publisher Notes
firefox 113.0.1-1 2681 255MB mozilla\u2713 -
tim@tim-
I close it. It's been closed for a few minutes now.
ps -e | grep firefox is empty.
tim@tim-
Name Version Rev Size Publisher Notes
firefox 113.0.1-1 2681 255MB mozilla\u2713 -
tim@tim-
May 16 17:00:50 tim-Standard-
snapd.service - Snap Daemon...
May 16 17:00:51 tim-Standard-
Acquiring state lock file
May 16 17:00:51 tim-Standard-
Acquired state lock file
May 16 17:00:51 tim-Standard-
started snapd/2.59.4 (series 16; classic) ubuntu/23.04 (amd64)
linux/6.2.0-2>
May 16 17:00:51 tim-Standard-
adjusting startup timeout by 1m10s (pessimistic estimate of 30s plus 5s per
>
May 16 17:00:51 tim-Standard-
AppArmor status: apparmor is enabled and all features are available
May 16 17:00:52 tim-Standard-
snapd.service - Snap Daemon.
May 16 17:01:08 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:01:09 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:01:10 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:01:27 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:01:37 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:01:37 tim-Standard-
snapstate.go:1854: cannot refresh snap "firefox": snap "firefox" has
running apps (firefox)>
May 16 17:01:43 tim-Standard-
storehelpers.
"core22", "gnom>
May 16 17:02:24 tim-Standard-
storehelpers.
"core22"...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Sergio Cazzolato (sergio-j-cazzolato) wrote : Re: snap 2.59.2 is not doing updates automatically | #4 |
I see it is listed "firefox 113.0.1-1 2681" and there is not a stable release with that revision.
Could you please add the output of
# snap info firefox
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing updates automatically | #5 |
However, snap updated successfully when I closed firefox and sudo snap
refresh. So there is no problem with snap doing the update the legacy way.
It just is not updating when the app closes. It's not just me, it's mostly
everyone (see discussion on snapcraft:
https:/
)
For me, this is trivial to reproduce. I have this problem in all four
ubuntu desktop installs, I use, two on 22.04 and two on 23.04.
The one I am using for this ticket is a vanilla VM install.
I am glad you are looking into it, and I hope we can work out what is wrong.
here is me manually updating it.
This always works. On my of those Ubuntu installs, I am using the beta
channel because it updates so often, it seems like a good test of this
problem.
It never updates when the application closes, not once. And it always
updates the legacy method (that is, by cli invocation after I close the
browser processes).
tim@tim-
Name Version Rev Size Publisher Notes
firefox 113.0.1-1 2681 255MB mozilla\u2713 -
tim@tim-
tim@tim-
tim@tim-
tim@tim-
[sudo] password for tim:
firefox (stable/
tim@tim-
error: no snap found for "firefix"
tim@tim-
name: firefox
summary: Mozilla Firefox web browser
publisher: Mozilla\u2713
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/
refresh-date: today at 08:09 AEST
channels:
latest/stable: 113.0.1-1 2023-05-12 (2667) 253MB -
latest/candidate: 113.0.1-1 2023-05-12 (2667) 253MB -
latest/beta: 114.0b4-1 2023-05-15 (2677) 255MB -
latest/edge: 115.0a1 2023-05-16 (2684) 261MB -
esr/stable: 102.11.0esr-2 2023-05-09 (2642) 186MB -
esr/candidate: 102.11.0esr-2 2023-05-04 (2642) 186MB -
esr/beta: \u2191
esr/edge: \u2191
installed: 113.0.1-1 (2681) 255MB -
On Wed, 17 May 2023 at 04:15, Sergio Cazzolato <email address hidden>
wrote:
> I see it is listed "firefox 113.0.1-1 2681" and there is not a stable
> release with that revision.
> Could you please add the output of
>
> # snap info firefox
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: snap 2.59.2 is not doing updates automatically | #6 |
On a 22.04 VM, I got a pop up about a firefox update, please close.... snap changes says "pre-download tasks for auto-refresh" with a timestamp matching the pop up.
But no update happens.
...
... I just got the notification that pending updates are available for firefox in my dev VM (the VM thinks it has a cable connection).
this is output from systemctl status snapd
The notification happened at 09:59 so the 09:54 error, whatever it is, did not stop the notification pop up:
\u25cf snapd.service - Snap Daemon Loaded: loaded (/lib/systemd/
May 18 09:53:45 ubuntu-virtio systemd[1]: Starting Snap Daemon...
May 18 09:53:46 ubuntu-virtio snapd[907]: overlord.go:272: Acquiring state lock file
May 18 09:53:46 ubuntu-virtio snapd[907]: overlord.go:277: Acquired state lock file
May 18 09:53:46 ubuntu-virtio snapd[907]: daemon.go:247: started snapd/2.59.4 (series 16; classic) ubuntu/22.04 (amd64) linux/5.
May 18 09:53:46 ubuntu-virtio snapd[907]: daemon.go:340: adjusting startup timeout by 2m35s (pessimistic estimate of 30s plus 5s per snap)
May 18 09:53:46 ubuntu-virtio snapd[907]: backends.go:58: AppArmor status: apparmor is enabled and all features are available
May 18 09:53:46 ubuntu-virtio systemd[1]: Started Snap Daemon.
May 18 09:54:19 ubuntu-virtio snapd[907]: stateengine.go:149: state ensure error: persistent network error: Get https:/
May 18 09:59:21 ubuntu-virtio snapd[907]: storehelpers.
I still have firefox open.
[sudo] password for tim:
snap-store (preview/edge) 0.2.9-alpha from Canonical\u2713 refreshed
[~] [cultiver@eks] $ sudo snap refresh --list
Name Version Rev Size Publisher Notes
firefox 114.0b5-6 2690 255MB mozilla\u2713 -
[~] [cultiver@eks] $
I am using latest snap 2.59.4
[~] [cultiver@eks] $ snap --version
snap 2.59.4
snapd 2.59.4
series 16
ubuntu 22.04
kernel 5.19.0-41-generic
[~] [cultiver@eks] $
It has reported "pre-download tasks":
[~] [cultiver@eks] $ snap changes
ID Status Spawn Ready Summary
393 Done yesterday at 11:08 AEST yesterday at 11:08 AEST Switch "snapd" snap to channel "latest/beta"
394 Done yesterday at 11:08 AEST yesterday at 11:09 AEST Refresh snaps "core20", "snapd"
395 Done today at 09:59 AEST today at 09:59 AEST Pre-download tasks for auto-refresh
396 Done today at 10:03 AEST today at 10:03 AEST Refres...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #7 |
[cultiver@eks] $ journalctl -e
May 18 10:06:12 ubuntu-virtio firefox_
May 18 10:06:12 ubuntu-virtio firefox_
May 18 10:06:12 ubuntu-virtio firefox_
May 18 10:06:12 ubuntu-virtio firefox_
May 18 10:06:13 ubuntu-virtio systemd[1763]: snap.firefox.
May 18 10:06:15 ubuntu-virtio snapd[907]: storehelpers.
May 18 10:06:22 ubuntu-virtio sudo[9194]: tim : TTY=pts/0 ; PWD=/home/tim ; USER=root ; COMMAND=
May 18 10:06:22 ubuntu-virtio sudo[9194]: pam_unix(
May 18 10:06:24 ubuntu-virtio snapd[907]: storehelpers.
May 18 10:06:24 ubuntu-virtio sudo[9194]: pam_unix(
May 18 10:06:24 ubuntu-virtio systemd[1763]: Started snap.kubectl.
May 18 10:06:46 ubuntu-virtio systemd[1763]: Started Application launched by gnome-shell.
May 18 10:06:46 ubuntu-virtio systemd[1763]: Started snap.firefox.
May 18 10:06:46 ubuntu-virtio firefox[9248]: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
May 18 10:06:46 ubuntu-virtio audit[9248]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.
May 18 10:06:46 ubuntu-virtio kernel: audit: type=1326 audit(168436840
May 18 10:06:46 ubuntu-virtio firefox_
May 18 10:06:46 ubuntu-virtio firefox_
May 18 10...
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #8 |
For the first time, I have seen it work, on a 22.04 desktop with snap 2.59.4.
The only thing I did was to reset firefox via that option in Firefox help, and remove the KDE Plamsa extension based on it occuring in the journalctl -e output above.
It worked quickly.
I will try that elsewhere.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #9 |
Hi. I think this is happening because firefox leaves processes hanging in its cgroup scope which means snapd can't detect it has closed and refresh it (see: https:/
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing updates automatically | #10 |
Will do. at one point I meticulously checked all the processes reported by
snap as blocking,; they had all exited but still the update did not trigger.
For debugging, it is ok for me to do a snap revert to go back to a prior
version in order to simulate a pending update?
On Thu, 18 May 2023, 20:21 Miguel Pires, <email address hidden> wrote:
> Hi. I think this is happening because firefox leaves processes hanging
> in its cgroup scope which means snapd can't detect it has closed and
> refresh it (see: https:/
> disruptions-
> <https:/
> If this happens
> again, you can check if that's the case by running `systemctl status`
> and checking if there's still a cgroup scope for the snap.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote (last edit ): Re: snap 2.59.2 is not doing updates automatically | #11 |
On all three of my desktops where I have Firefox beta the auto refresh worked as expected just now. This is using snap 2.59.4.
The only change was to remove the KDE Plasma Integration extension and do a firefox refresh.
This might indicate that this fixed a problem related to hanging processes, although previously I meticulously killed all the nominates processes blocking the update (all of which were already gone after quitting firefox).
It is fun and excellent to see the update working as advertised. So cool.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #12 |
I will reinstall that extension on the VM I have dedicated to this, just to see if I can reproduce the original problem.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #13 |
Marking as invalid (for now) based on the current state of this forum post https:/
Changed in snapd: | |
status: | New → Invalid |
Changed in snapd: | |
importance: | Undecided → Critical |
importance: | Critical → Wishlist |
Changed in snapd: | |
assignee: | nobody → Miguel Pires (miguelpires1) |
importance: | Wishlist → High |
status: | Invalid → Incomplete |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #14 |
- journalctl -u snapd Edit (14.2 MiB, text/plain)
regarding
Regarding my post here, I attach the journalctl - u snapd
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #15 |
- snapd_logs Edit (7.3 KiB, text/plain)
With respect to this comment, logs are attached:
This is very frustrating. My firefox beta is stuck on 115.0b4 (64-bit)
but
tim@yellow:~$ snap refresh --list
Name Version Rev Size Publisher Notes
firefox 115.0b6-1 2786 257MB mozilla✓ -
so I am now two version behind. I got the desktop notification for 115.0b5 but as I said above, the update did not actually happen. And now I get no more notifications. Why not? So what happens now? I have set the snap refresh time to every hour but still no notifications.
snap changes actually did things today, but it just ignored firefox, why?
snap changes
ID Status Spawn Ready Summary
248 Done yesterday at 19:43 AEST yesterday at 19:43 AEST Auto-refresh snap "firmware-updater"
249 Done today at 10:22 AEST today at 10:22 AEST Change configuration of "core" snap
250 Done today at 10:22 AEST today at 10:23 AEST Auto-refresh snaps "code", "snapd"
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #16 |
- journalctl_snapd Edit (13.5 MiB, text/plain)
My snap has updated to 2.60
The same problem just happened again with Firefox beta. I received a desktop notification.
shap changes indicates that it has done the predownload.
But the update does not happen.
[~] [cultiver@eks] $ snap changes
ID Status Spawn Ready Summary
437 Done today at 04:34 AEST today at 04:34 AEST Auto-refresh snap "cups"
438 Done today at 11:54 AEST today at 11:54 AEST Auto-refresh snap "core20"
439 Done today at 13:04 AEST today at 13:04 AEST Pre-download "firefox" for auto-refresh
[~] [cultiver@eks] $ snap info firefox
name: firefox
summary: Mozilla Firefox web browser
publisher: Mozilla\u2713
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/beta
refresh-date: 2 days ago, at 16:59 AEST
channels:
latest/stable: 114.0.1-1 2023-06-09 (2760) 256MB -
latest/candidate: 114.0.1-1 2023-06-09 (2760) 256MB -
latest/beta: 115.0b7-1 2023-06-19 (2794) 256MB -
latest/edge: 116.0a1 2023-06-18 (2793) 262MB -
esr/stable: 102.12.0esr-1 2023-06-06 (2735) 186MB -
esr/candidate: 102.12.0esr-1 2023-05-29 (2735) 186MB -
esr/beta: \u2191
esr/edge: \u2191
installed: 115.0b6-1 (2786) 257MB -
[~] [cultiver@eks] $ # will now close firefox
[~] [cultiver@eks] $ snap changes
ID Status Spawn Ready Summary
437 Done today at 04:34 AEST today at 04:34 AEST Auto-refresh snap "cups"
438 Done today at 11:54 AEST today at 11:54 AEST Auto-refresh snap "core20"
439 Done today at 13:04 AEST today at 13:04 AEST Pre-download "firefox" for auto-refresh
[~] [cultiver@eks] $ snap refresh --list
Name Version Rev Size Publisher Notes
firefox 115.0b7-1 2794 256MB mozilla\u2713 -
[~] [cultiver@eks] $ snap --version
snap 2.60
snapd 2.60
series 16
ubuntu 22.04
kernel 5.19.0-45-generic
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote (last edit ): | #17 |
by the way, when I did a manual sudo snap refresh, the download progress indicator indicated that the entire snap was downloaded, not that it was cached or already available. If the snap changes preload was true (it said)
439 Done today at 13:04 AEST today at 13:04 AEST Pre-download "firefox" for auto-refresh
why would the manual snap refresh download the snap (again)? Does this imply that the pre-download did not download anything?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #18 |
Thank you for the logs and the confirmation. I don't see anything out of the ordinary in the logs. Can you use `sudo systemctl edit snapd.service` (which will open an editor) to add the lines:
[Service]
Environment=
Environment=
to snapd's override? This will add more information to the logs. Also, when this problem happens again can you run:
{ snap changes; sudo snap debug stacktraces; systemctl status --no-pager; } > snapd.log
Then close snapd with `systemctl stop snapd.{
To answer your question, the fact that the snap was downloaded again doesn't necessarily imply that it wasn't downloaded in the first place. This is because during an installation or refresh the downloaded snap is moved out of the cache. In that case, I'd expect there to be an auto-refresh attempt after the pre-download (even if it fails for some reason) but it seems like there isn't one. With the debug logs, we'll be able to get a better idea of what's happening.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing updates automatically | #19 |
Thanks. For 22.04 I have done that, adding the debug messages worked so now
I wait for the next firefox beta update.
I also have a 23.04 VM which I am using to help with this bug.
Currently the firefox beta snap is 115.0b4 (so it is several releases
behind).
Hopefully at some point it will get the notification and I will have
another "test point"
Regarding setting up the debugging: On 23.04
when I do:
sudo systemctl edit snapd.service
I consistently get this error when exiting the editor:
Editing "/etc/systemd/
temporary file is empty.
It happens even when I explicitly save my changes before exiting the
editor.
and my changes are not saved. This VM defaulted to nano and it had this
problem. I changed the default editor to vim.tiny and had the same problem.
Google and chatgpt don't have useful answers.
On Mon, 19 Jun 2023 at 21:45, Miguel Pires <email address hidden>
wrote:
> Thank you for the logs and the confirmation. I don't see anything out of
> the ordinary in the logs. Can you use `sudo systemctl edit snapd.service`
> (which will open an editor) to add the lines:
> [Service]
> Environment=
> Environment=
>
> to snapd's override? This will add more information to the logs. Also,
> when this problem happens again can you run:
> { snap changes; sudo snap debug stacktraces; systemctl status --no-pager;
> } > snapd.log
>
> Then close snapd with `systemctl stop snapd.{
> file `/var/lib/
> file with the logs to me at `<email address hidden>`? Thank you.
>
> To answer your question, the fact that the snap was downloaded again
> doesn't necessarily imply that it wasn't downloaded in the first place.
> This is because during an installation or refresh the downloaded snap is
> moved out of the cache. In that case, I'd expect there to be an auto-
> refresh attempt after the pre-download (even if it fails for some
> reason) but it seems like there isn't one. With the debug logs, we'll be
> able to get a better idea of what's happening.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #20 |
using
systemctl show -p FragmentPath snapd.service
I found the file and edited it manually.
I have reported a bug to the systemd package
https:/
On Tue, 20 Jun 2023 at 08:05, Tim Richardson <email address hidden> wrote:
> Thanks. For 22.04 I have done that, adding the debug messages worked so
> now I wait for the next firefox beta update.
>
> I also have a 23.04 VM which I am using to help with this bug.
> Currently the firefox beta snap is 115.0b4 (so it is several releases
> behind).
> Hopefully at some point it will get the notification and I will have
> another "test point"
>
> Regarding setting up the debugging: On 23.04
> when I do:
>
> sudo systemctl edit snapd.service
>
> I consistently get this error when exiting the editor:
> Editing "/etc/systemd/
> temporary file is empty.
>
> It happens even when I explicitly save my changes before exiting the
> editor.
>
> and my changes are not saved. This VM defaulted to nano and it had this
> problem. I changed the default editor to vim.tiny and had the same problem.
> Google and chatgpt don't have useful answers.
>
>
> On Mon, 19 Jun 2023 at 21:45, Miguel Pires <email address hidden>
> wrote:
>
>> Thank you for the logs and the confirmation. I don't see anything out of
>> the ordinary in the logs. Can you use `sudo systemctl edit snapd.service`
>> (which will open an editor) to add the lines:
>> [Service]
>> Environment=
>> Environment=
>>
>> to snapd's override? This will add more information to the logs. Also,
>> when this problem happens again can you run:
>> { snap changes; sudo snap debug stacktraces; systemctl status --no-pager;
>> } > snapd.log
>>
>> Then close snapd with `systemctl stop snapd.{
>> file `/var/lib/
>> file with the logs to me at `<email address hidden>`? Thank you.
>>
>> To answer your question, the fact that the snap was downloaded again
>> doesn't necessarily imply that it wasn't downloaded in the first place.
>> This is because during an installation or refresh the downloaded snap is
>> moved out of the cache. In that case, I'd expect there to be an auto-
>> refresh attempt after the pre-download (even if it fails for some
>> reason) but it seems like there isn't one. With the debug logs, we'll be
>> able to get a better idea of what's happening.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https:/
>>
>> Title:
>> snap 2.59.2 is not doing updates automatically
>>
>> To manage notifications about this bug go to:
>> https:/
>>
>>
>
> --
> Tim Richardson
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote (last edit ): Re: snap 2.59.2 is not doing updates automatically | #21 |
I just got this issue on my machine. Turns out the first guess was correct, the first auto-refresh returns the new snap but the auto-refresh triggered by closing the snap doesn't. I've spoken to the store team again who have confirmed that this is possible, despite what was thought before. Apparently firefox doesn't use phasing but there is a throttling mechanism that might cause subsequent requests to the store to get different results. I'll keep this report updated as we work on and release the fix. Thank you for your help.
Changed in snapd: | |
status: | Incomplete → Confirmed |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #22 |
- snap_info_firefox_after_firefox_quit.txt Edit (1.0 KiB, text/plain)
Problem again. Not sure if these reports are still useful. While your hypothesis or information is that a throttling problem "might" cause this problem, I can not remember the last time I had a successful update. I guessing that if it works one time in ten, I am being generous. So for me at least, it is almost completely broken.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #23 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #24 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #25 |
I've opened https:/
Changed in snapd: | |
status: | Confirmed → In Progress |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing updates automatically | #26 |
Thanks for giving an update. I look forward to the fix.
On Tue, 11 July 2023, 02:40 Miguel Pires, <email address hidden>
wrote:
> I've opened https:/
> issue. https:/
> https:/
> pre-requisites to the first one.
>
> ** Changed in: snapd
> Status: Confirmed => In Progress
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
Changed in snapd: | |
status: | In Progress → Fix Committed |
summary: |
- snap 2.59.2 is not doing updates automatically + snap 2.59.2 is not doing Firefox updates automatically |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #27 |
Hi Tim. This should be fixed in edge so if you're tracking that branch of snapd, you should see the correct behaviour now. If not, please let me know if you can. Thanks
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : Re: [Bug 2019158] Re: snap 2.59.2 is not doing Firefox updates automatically | #28 |
Thanks. I'm using the nightly git channel and I'll wait for a Firefox
update ...
On Mon, 31 July 2023, 23:21 Miguel Pires, <email address hidden>
wrote:
> Hi Tim. This should be fixed in edge so if you're tracking that branch
> of snapd, you should see the correct behaviour now. If not, please let
> me know if you can. Thanks
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing Firefox updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #29 |
I just got the first success on kubuntu 23.10 with the latest update on the firefox beta channel. So that is 1 out of 1 so far. Thanks, it is fun to see it working.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #30 |
two out of two: it worked on an ubuntu 22.04 VM (with latest snapd edge)
On Thu, 3 Aug 2023 at 09:36, Tim Richardson <email address hidden>
wrote:
> I just got the first success on kubuntu 23.10 with the latest update on
> the firefox beta channel. So that is 1 out of 1 so far. Thanks, it is
> fun to see it working.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing Firefox updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
reisig (reisig) wrote : | #31 |
I'm wondering when the fix is rolled out to snapd/stable. My firefox snap was still not auto-updated from 116.0.3 and I have seen delays of a month+ on some machines.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #32 |
I forgot to update this bug report, but it is working reliably for me now.
In the process of reporting and following this, I updated my snapd to the
channel latest/beta and I have not reverted to stable.
However, on 22.04 snap info snapd tells me that the stable channel is
2.60.3 so you should be on that, and this version definitely has the bug
fix tracked by this report.
The bug was specifically about how an available update responded to Firefox
being open and then closed in response to the notification.
If you are not getting the update notifications in the first place, it's a
different problem, I guess.
On Mon, 11 Sept 2023 at 12:01, reisig <email address hidden> wrote:
> I'm wondering when the fix is rolled out to snapd/stable. My firefox
> snap was still not auto-updated from 116.0.3 and I have seen delays of a
> month+ on some machines.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing Firefox updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Miguel Pires (miguelpires1) wrote : | #33 |
Hi. This fix is currently only on latest/edge. It will be in 2.61 which is scheduled to be released in some a few weeks.
As Tim said, this bug is only about the closing of the Firefox not triggering a new auto-refresh after a notification. If that's not the case, then it might be something else which is worth exploring in a new bug report.
Also, thanks Tim for confirming that this is working as intended now.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Tim Richardson (tim-richardson) wrote : | #34 |
so much for "definitely". However, I have been on latest/beta and it has
been working. latest/beta reports as 2.60.3.
I did spend time on latest/edge and it was completely stable.
On Tue, 12 Sept 2023 at 18:51, Miguel Pires <email address hidden>
wrote:
> Hi. This fix is currently only on latest/edge. It will be in 2.61 which is
> scheduled to be released in some a few weeks.
> As Tim said, this bug is only about the closing of the Firefox not
> triggering a new auto-refresh after a notification. If that's not the case,
> then it might be something else which is worth exploring in a new bug
> report.
> Also, thanks Tim for confirming that this is working as intended now.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> snap 2.59.2 is not doing Firefox updates automatically
>
> To manage notifications about this bug go to:
> https:/
>
>
--
Tim Richardson
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
reisig (reisig) wrote : | #35 |
Thank you both for your answers.
My issue seen on 2 Ubuntu 22.04 systems:
While firefox is running I usually have one update notification and the snap is downloaded. Then this snap revision will not be installed after closing firefox or later on regular snapd auto-update checks (FF open = no notification; FF not running = no update). It seems like if the first auto-update failed, that revision is ignored afterwards.
The failed revisions pile up:
/var/lib/
/var/lib/
/var/lib/
/var/lib/
/var/lib/
snap list --all:
firefox 116.0.2-1 2987 latest/stable mozilla✓ disabled
firefox 116.0.3-2 3026 latest/stable mozilla✓ -
I thought it matches this bugs description (and Tim's comment #15).
Hi, I see snaps are being auto-refreshed using snapd 2.59.3, could you please share the snapd journal logs and snap changes?
# journalctl -u snapd
# snap changes
Thanks