Closed Bug 833559 Opened 12 years ago Closed 7 years ago

Check Now doesn't show anything if the update server is unavailable

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dhylands, Unassigned)

Details

If the user presses "Check Now" and the update web server isn't running, then I see the following in my logcat: UpdatePrompt: Forcing update check *** AUS:SVC Checker: checkForUpdates, force: true UpdatePrompt: onUpdateCheckStart (undefined) *** AUS:SVC Checker:getUpdateURL - update URL: http://localhost/update.xml?force=1 *** AUS:SVC gCanCheckForUpdates - able to check for updates *** AUS:SVC Checker:checkForUpdates - sending request to: http://localhost/update.xml?force=1 XXX FIXME : Got a mozContentEvent: force-update-check *** AUS:SVC Checker:onError - request.status: 2152398861 *** AUS:SVC getStatusTextFromCode - transfer error: Connection refused, code: 2152398861 UpdatePrompt: Setting gecko.updateStatus: check-error-2152398861 *** AUS:SVC Creating UpdateService *** AUS:SVC UpdateService:onError - error during background update. error code: -2142568435, status text: Connection refused (My phone was setup for testing using httpd on the phone rather than the normal b2g update server) However, the "Checking for updates..." just got replaced with blanks or empty space. It should show an error indicating that it was unable to connect to the update server (and probably give the URL it couldn't connect to, in order to actually be useful). 2152398861 corresponds to NS_ERROR_CONNECTION_REFUSED
Normally, if we get something other than "check-complete" as "gecko.updateStatus" value, then we display an error. We try to get from the locale the string that we gets as value, and if it's not found, we display a generic error. We see in this log that gecko.updateStatus is set to a correct error, so... something is wrong :-) We also output a log from gaia if the value is not "check-complete": console.error('Error checking for system update:', value); could you check if you see this ?
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.