Checking for updates never finishes on 3G when no updates available

Bug #1588349 reported by Anupam
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Confirmed
High
Bill Filler
system-image (Ubuntu)
New
High
Barry Warsaw
ubuntu-system-settings (Ubuntu)
Incomplete
Undecided
Jonas G. Drange

Bug Description

If I'm using wi-fi and go to settings and then select updates, "Checking for updates..." screen appears with a spinner for a few seconds; if there is any update available it shows, otherwise informs about the unavailability of updates.
But while using mobile data (3G/H) *if there is no update available*, it gets stuck on the "Checking for updates..." screen and the spinner keeps spinning. I waited as long as 10-15 minutes.
Note: If there is an update available then the behaviour is normal, i.e. shows the available update(s) after a few seconds.
I'm seeing this behaviour from the very beginning (OTA-6 days).

Related to bug #1528886

UPDATE: It's gotten weirder after the introduction of the new update panel in OTA-13. When there is an update available, it keeps on "Checking for updates..." along with the list of available updates:
https://launchpadlibrarian.net/297883544/screenshot20161212_215042136.png

Anupam (anupam207)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in ubuntu-system-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Seems the fix from the referenced bug regressed

Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
importance: Undecided → High
status: New → Confirmed
Changed in qtbase-opensource-src (Ubuntu):
assignee: nobody → Lorn Potter (lorn-potter)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I was not able to reproduce it, perhaps the cellular data connection is not really active?

Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Revision history for this message
Anupam (anupam207) wrote :

@Pat just tried this once again, it actually took 9-10 minutes to show "Software is up to date" on 3G (started at 17:23, showed at around 17:33). Maybe something to do with the data connection! But I noticed earlier, if there are updates available, it lists them after 2-3 seconds on the same data connection. Also before and after this update check I opened browser, facebook app, hangups app etc. All are working fine, not super slow or something like that.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I reproduced one case where there was an update available but something may have failed during the download so the UI got into a confused state with several different symptoms, the first was to get stuck on the spinner indefinitely. Renetering the panel showed an already downloaded system update.

So perhaps just generally racy logic. There is a rewrite of this panel in progress to address similar symptoms.

Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Jonas G. Drange (jonas-drange)
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → Bill Filler (bfiller)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@anupam what is your auto download setting?

Revision history for this message
Anupam (anupam207) wrote :

@Pat wi-fi only

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

I managed to repro it at 16:09 and 16:19 in the following log from system-image. I got it both with download anytime and download wifi only so that seems to not be related.

After 10 mins system-image reported a timeout error which resulted in "Software is up to date" while a timeout error should really be reported in the UI.

no longer affects: qtbase-opensource-src (Ubuntu)
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Set auto download to never (which is how I usually set it) rebooted and it worked fine on 3G
Set back to on wifi and it hung.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@barry any more steps we can do to debug

Changed in system-image (Ubuntu):
assignee: nobody → Barry Warsaw (barry)
Changed in canonical-devices-system-image:
status: Incomplete → Confirmed
Anupam (anupam207)
summary: - Checking for updates never finishes on 3G
+ Checking for updates never finishes on 3G when no updates available
Changed in ubuntu-system-settings (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Can reproduce this on the rewrite.

Seems to hang in s-i [1], whereas the UDM group download finishes [2]?

However, with the new panel I can cancel the check and successfully start a new one. Not sure if this is new, but recovery is possible.

[1] http://pastebin.ubuntu.com/23117265/
[2] http://pastebin.ubuntu.com/23117272/

Bill Filler (bfiller)
Changed in system-image (Ubuntu):
importance: Undecided → High
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Marked this bug as incomplete for System Settings as it's not clear to me that System Image tells System Settings that it has finished checking (i.e. timed out if that's the case). We need some sort of signal in these cases.

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

I was able to reproduce this with wifi. Checking updates takes a long time to finish. The panel thinks that a check was already in progress: http://paste.ubuntu.com/23136927/

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Revision history for this message
Anupam (anupam207) wrote :
description: updated
description: updated
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.