Closed Bug 842890 Opened 11 years ago Closed 11 years ago

[OTA] after download system update when asking for installing it, cancel it and then go back to install it won't work

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)

VERIFIED FIXED
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.0 --- wontfix
b2g18-v1.0.1 --- fixed

People

(Reporter: wachen, Unassigned)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

*Device: Unagi

*Build:
https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18_v1_0_1-unagi/2013/02/
[DIR]	2013-02-19-07-02-00/	19-Feb-2013 08:03 
User/Password is your LDAP user/password

*STR:
  0. Flash the phone
  1. Go to "settings" app
  2. Go to "cellular & data" section
  3. enable "data connection"
  4. enable "data roaming"
  5. there would be a notification about update, choose to download only required update
  6. when it asked to install it, choose later
  7. go back to the system update notification

*expected result:
  1. it has a notification of installing the uncompressed update or installing the update
  2. it should not ask to download system update again
  3. if you choose to install later and did want to install later, it should allow you to install it.

*actual result:
  1. it asked you to download again but when you choose to download only system update, it would just give you a dialect asking about if you want to install it
  2. after choosing to install later, installing it afterward is actually not working, too
Assignee: nobody → arthur.chen
blocking-b2g: --- → shira?
QA Contact: wachen
Triage:
this is a common issue. simpler STR. TEF?
1. Download update
2. When prompt to install, choose later
3. Then later when you pull down notification for update
4. phone will ask you to download update again <-- this is one problem
5. once you click download, actually install prompt will show up asking you to install
6. And install will fail
need to reboot to download/install update
blocking-b2g: shira? → tef?
Moving this to Dave so he might be able to look into this today.
Assignee: arthur.chen → dhylands
Keywords: qawanted, verifyme
verifyme is only needed on resolved bugs. qawanted is what you want in this case.

What's the purpose for qawanted?
Flags: needinfo?(lsblakk)
Keywords: verifyme
Component: Gaia → Gaia::System
Hmm. When I installed:

https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18_v1_0_1-unagi/2013/02/2013-02-19-07-02-00/unagi.zip

and tried to perform an update, it said it was already at the latest. I checked logcat and it was using http://update.boot2gecko.org/beta/update.xml?force=1

When I downloaded that update.xml it showed:

URL="http://update.boot2gecko.org/beta/b2g_beta_update_20130219070200.mar?build_id=20130219070200

I'll try using an earlier build and see if I can reproduce.
(In reply to Jason Smith [:jsmith] from comment #3)
> verifyme is only needed on resolved bugs. qawanted is what you want in this
> case.
> 
> What's the purpose for qawanted?

sorry about that - just wanted verification that this a) is still occuring and b) if this is a regression.
Flags: needinfo?(lsblakk)
Okay, sounds good. Walter - Can you investigate what's specified in comment 5?
I was able to reproduce.

I downloaded and flashed https://pvtbuilds.mozilla.org/pub/mozilla.org/b2g/nightly/mozilla-b2g18_v1_0_1-unagi/2013/02/2013-02-18-07-02-01/unagi.zip

and then updated.

I deferred using Later, and then selected Download from the notification bar.

I see the following in logcat when I click Download:

*** AUS:SVC Creating Downloader
*** AUS:SVC UpdateService:_downloadUpdate
*** AUS:SVC readStatusFile - status: applied, path: /data/local/updates/0/update.status
*** AUS:SVC Downloader:_selectPatch - found existing patch with state: applied
*** AUS:SVC Downloader:_selectPatch - failed to apply complete patch!
*** AUS:SVC Downloader:downloadUpdate - no patch to download
*** AUS:SVC readStatusFile - status: null, path: /data/local/updates/0/update.status
UpdatePrompt: Error downloading update Firefox 18.0: 0
UpdatePrompt: Update error, state: applied, errorCode: 0

This is a regression, since I'm sure I tested that it was working before.

The fact that it still says Download and not Apply is related to bug 833137
Steps to recover:

1 - Restart the phone (Long press on Power -> choose restart)
2 - Goto Settings->Device Information, click on Check Now
3 - Click on download from the notification bar.

This seems to redownload the update.
Click Install Now (if you click Later, then go back to step 1)
Removing qawanted tag as per Comment 7
Keywords: qawanted
Marshall, I'm going to be on the road Friday and won't be able to check on this until Friday evening.

If you r+ this, could you land this too?

Thanks
Attachment #716923 - Flags: review?(marshall)
blocking-b2g: tef? → tef+
Keywords: regression
Changed _applyPromptTimer to this._applyPromptTimer
Attachment #717337 - Flags: review?(marshall)
Attachment #716923 - Attachment is obsolete: true
Attachment #716923 - Flags: review?(marshall)
Attachment #717337 - Flags: review?(marshall) → review+
https://hg.mozilla.org/mozilla-central/rev/f6f8457d3436
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Hi,

Is it possible to get this in b2g18 gecko branch (gecko18)?
This is important to new v1.0.1
thanks so much.
Flags: in-moztrap?(cschmoeckel)
Added additional steps to Test #4203 to include the process of canceling the install of an update (after downloading it) and then attempting to install the update again. 

https://moztrap.mozilla.org/manage/cases/?filter-id=4203
Flags: in-moztrap?(cschmoeckel) → in-moztrap+
The Update is not able to be installed correctly when selecting to Install Later. Attempting to install again after the download hangs on the compression message, the phone must be reboot to install the update. This issue is still affecting both the v1 OTA build and v1.0.1 build. 
Kernel Date: Dec 5
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/f35275c90b13
Gaia: 73c24b0b8fa34da37e5cbdda188595c2bd9b4c25
Another bug was created for this issue. Bug 855420
Depends on: 855420
No longer depends on: 855420
Andela Hubenya,
It's a totally different bug.
That bug is: Cancel Download -> Need to Restart Phone for Re-downloading
This bug is: Cancel Download -> No Warning for Data Usage Again
Andela Hubenya,
It's a totally different bug.
That bug is: Cancel Download -> Need to Restart Phone for Re-downloading
This bug is: Cancel Download -> No Warning for Data Usage Again

PS. It does had the description of the bug 855420. I will be verifying this later :P
I didn't see it fixed in PVT Unagi V1Train(B2G18, V110) daily build 2013/05/06.
And, yes, bug 855420 is also part of the bug in this one.

This bug contains:
1.Cancel Download -> Need to Restart Phone for Re-downloading
2.Cancel Download -> No Warning for Data Usage Again

While 855420 contains
1.Cancel Download -> Need to Restart Phone for Re-downloading
Status: RESOLVED → REOPENED
Depends on: 855420
Resolution: FIXED → ---
I'm not going to be able to spend any time on this in the next week, so I'm unassigning myself.
Assignee: dhylands → nobody
I didnt see it fixed in:
 1. PVT Unagi V1Train(B2G18, V110) daily build 2013/05/06.
 2. PVT Unagi shira(V101) daily build 2013/05/06.
Umm. Please do not reopen bugs for patches that have already landed. File followup bugs as dependencies.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Blocks: 869293
this is now verified fixed.
Status: RESOLVED → VERIFIED
this is now verified fixed in pvt v1train 2013/05/16 unagi
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: