Closed Bug 986312 Opened 12 years ago Closed 12 years ago

[Tarako][Settings] "Check now" for checking updates always occurs error

Categories

(Firefox OS Graveyard :: Vendcom, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+)

RESOLVED WONTFIX
blocking-b2g 1.3T+

People

(Reporter: ashiue, Assigned: seinlin)

Details

(Whiteboard: 1.3tarakorun1)

Attachments

(1 file)

[Environment] Tarako 1.3t Gaia 85991dbf56616d0107e68465152f8fc3f97b656e Gecko d7ce5d5fb3a285e84143368f0a621ea72e37a633 BuildID 20140321105246 Version 28.0 ro.build.version.incremental=87 ro.build.date=Fri Mar 21 08:01:31 CST 2014 [Reproduce steps] 1. go to "Settings" -> "Device Information" -> "Software updates". 2. Tap "Check now". * Expect result: It should tell me "This is already the latest version of Firefox OS" when there is no updates, or tell me there is something that I can update. * Actural result: always show "There was an error when checking for updates." [Logs] I/Gecko ( 81): UpdatePrompt: Forcing update check I/Gecko ( 81): *** AUS:SVC Checker: checkForUpdates, force: true E/GeckoConsole( 81): AUS:SVC Checker: checkForUpdates, force: true I/Gecko ( 81): *** AUS:SVC Checker:getUpdateURL - update URL: http://update.boot2gecko.org/default/update.xml?force=1 E/GeckoConsole( 81): AUS:SVC Checker:getUpdateURL - update URL: http://update.boot2gecko.org/default/update.xml?force=1 I/Gecko ( 81): *** AUS:SVC Checker:checkForUpdates - sending request to: http://update.boot2gecko.org/default/update.xml?force=1 E/GeckoConsole( 81): AUS:SVC Checker:checkForUpdates - sending request to: http://update.boot2gecko.org/default/update.xml?force=1 I/GeckoDump( 81): XXX FIXME : Got a mozContentEvent: force-update-check E/GeckoConsole( 81): [JavaScript Error: "syntax error" {file: "http://update.boot2gecko.org/default/update.xml?force=1" line: 1 column: 50 source: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">"}] I/Gecko ( 81): *** AUS:SVC Checker:onLoad - request completed downloading document E/GeckoConsole( 81): AUS:SVC Checker:onLoad - request completed downloading document I/Gecko ( 81): *** AUS:SVC Checker:_updates get - unexpected node name! E/GeckoConsole( 81): AUS:SVC Checker:_updates get - unexpected node name! I/Gecko ( 81): *** AUS:SVC Checker:onLoad - there was a problem checking for updates. Exception: Error: Unexpected node name, expected: updates, got: parsererror E/GeckoConsole( 81): AUS:SVC Checker:onLoad - there was a problem checking for updates. Exception: Error: Unexpected node name, expected: updates, got: parsererror I/Gecko ( 81): *** AUS:SVC Checker:onLoad - request.status: 404 E/GeckoConsole( 81): AUS:SVC Checker:onLoad - request.status: 404 I/Gecko ( 81): *** AUS:SVC getStatusTextFromCode - transfer error: Update XML file not found (404), code: 404 E/GeckoConsole( 81): AUS:SVC getStatusTextFromCode - transfer error: Update XML file not found (404), code: 404 I/Gecko ( 81): UpdatePrompt: Setting gecko.updateStatus: check-error-http-404 I/Gecko ( 81): *** AUS:SVC UpdateService:onError - error during background update. error code: 1404, status text: Update XML file not found (404) E/GeckoConsole( 81): AUS:SVC UpdateService:onError - error during background update. error code: 1404, status text: Update XML file not found (404) E/GeckoConsole( 847): Content JS WARN at app://settings.gaiamobile.org/gaia_build_defer_index.js:6 in consoleWarn: [l10n] #check-error-http-404 is undefined. E/GeckoConsole( 847): Content JS ERROR at app://settings.gaiamobile.org/js/about.js:103 in onUpdateStatus: Error checking for system update: check-error-http-404 W/WifiHW ( 81): wifi_command: SIGNAL_POLL D/wpa_supplicant( 408): nl80211: survey data missing!
Whiteboard: 1.3tarakorun1
Severity: normal → major
Noming because there's more concern about not being able to update properly if there was something to update with.
blocking-b2g: --- → 1.3T?
Severity: major → normal
Tim, can you please help investigate if the error could be on our side or a vendcom issue ?
blocking-b2g: 1.3T? → 1.3T+
Flags: needinfo?(timdream)
http://update.boot2gecko.org/default/update.xml?force=1 is indeed 404 so the error is expected. To test whether or not this bug actual exists we need to config our builds for testing properly.
Component: Gaia::Settings → General
Flags: needinfo?(timdream)
to Kli for now, please reassign as you see fit. thanks
Assignee: nobody → kli
The root cause is what Tim said in comment 3. In another word the "app.update.url" should be configured correctly where update server is hosted. The url for checking update can be overridden in device perf file as in the attached file. I setup/verfiy with a dummy update server and found the update checking process does work properly. ----- I/Gecko ( 81): UpdatePrompt: Forcing update check I/Gecko ( 81): *** AUS:SVC Checker: checkForUpdates, force: true E/GeckoConsole( 81): AUS:SVC Checker: checkForUpdates, force: true I/Gecko ( 81): *** AUS:SVC Checker:getUpdateURL - update URL: http://10.247.24.88/tarako/update.xml?force=1 E/GeckoConsole( 81): AUS:SVC Checker:getUpdateURL - update URL: http://10.247.24.88/tarako/update.xml?force=1 I/Gecko ( 81): *** AUS:SVC Checker:checkForUpdates - sending request to: http://10.247.24.88/tarako/update.xml?force=1 E/GeckoConsole( 81): AUS:SVC Checker:checkForUpdates - sending request to: http://10.247.24.88/tarako/update.xml?force=1 I/GeckoDump( 81): XXX FIXME : Got a mozContentEvent: force-update-check I/Gecko ( 81): *** AUS:SVC Checker:onLoad - request completed downloading document E/GeckoConsole( 81): AUS:SVC Checker:onLoad - request completed downloading document I/Gecko ( 81): *** AUS:SVC Checker:getUpdateURL - update URL: http://10.247.24.88/tarako/update.xml?force=1 E/GeckoConsole( 81): AUS:SVC Checker:getUpdateURL - update URL: http://10.247.24.88/tarako/update.xml?force=1 I/Gecko ( 81): *** AUS:SVC Checker:onLoad - number of updates available: 1 E/GeckoConsole( 81): AUS:SVC Checker:onLoad - number of updates available: 1
Joe, Can we resolve this as invalid as it does work as expected?
Please move to a different component than General when blocking on a bug.
Component: General → Gaia::System
lets make it right in the 1.3T branch can you make the change? thanks
Flags: needinfo?(kli)
Joe, I think it could be better to leave it in General because it is not related to gaia. When oem/odm confirmed where update server is hosted, they just need to update server url to device pref file as attached file in comment 5. No need to check-in code to gecko or gaia.
Component: Gaia::System → General
Flags: needinfo?(kli)
Component: General → Vendcom
(In reply to Kai-Zhen Li from comment #9) > Joe, I think it could be better to leave it in General because it is not > related to gaia. When oem/odm confirmed where update server is hosted, they > just need to update server url to device pref file as attached file in > comment 5. No need to check-in code to gecko or gaia. We actually have a triage rule right now where we require all blocking bugs to be components other than General, as bugs in General get lost in the abyss easily.
this will need to be fixed by our final commercial launch partner let's close this as won't fix
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: