Closed Bug 1892232 Opened 5 months ago Closed 5 months ago

Error in Browser Console: BackgroundUpdate: maybeScheduleBackgroundUpdateTask: exiting after uncaught exception in maybeScheduleBackgroundUpdateTask! NS_ERROR_FILE_NOT_FOUND

Categories

(Toolkit :: Application Update, defect, P4)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: mayankleoboy1, Assigned: erchen)

References

Details

(Whiteboard: [fidedi-ope])

Attachments

(6 files)

Start browser
Open Browser console

AR: Error in the console

BackgroundUpdate: maybeScheduleBackgroundUpdateTask: exiting after uncaught exception in maybeScheduleBackgroundUpdateTask! NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIWinTaskSchedulerService.deleteTask]
deleteTask resource://gre/modules/TaskSchedulerWinImpl.sys.mjs:50
deleteTask resource://gre/modules/TaskScheduler.sys.mjs:147
deleteTasksInRange resource://gre/modules/BackgroundUpdate.sys.mjs:99
maybeScheduleBackgroundUpdateTask resource://gre/modules/BackgroundUpdate.sys.mjs:586

Flags: needinfo?(nshukla)
Attached file about:support

Hi, thanks for the report. At this point I think there's some issue with how your tasks are configured. The best solution here might just be to put a try catch around the deleteTask call. Before that though, can you please tell me the value of the app.update.background.lastInstalledTaskVersion pref and also open the Windows Task Scheduler, navigate to the Mozilla folder, and tell me the names of all Background Update tasks you have?

Flags: needinfo?(nshukla) → needinfo?(mayankleoboy1)

app.update.background.lastInstalledTaskVersion = 3

Putting screenshots in the attached pdf.

Happy to run any instrumented builds or share any log etc.

Attached file task_scheduler.pdf
Flags: needinfo?(mayankleoboy1) → needinfo?(nshukla)
Attached file installs.ini
Attached file profiles.ini

The pref should have been set to 4 once your background tasks were registered, all of which look to be in the updated format to me. I assume this didn't happen because the code in 1891521 couldn't delete multiple versions correctly, instead erroring out after one. I think it might still be worth adding a try catch to the relevant deletion code just so we have better logs of this though.

Flags: needinfo?(nshukla)
Severity: -- → S4
Priority: -- → P4
Assignee: nobody → erchen
Status: NEW → ASSIGNED
Attachment #9399839 - Attachment description: Bug 1892232 - Added try and catch to deleteTasksInRange r=nrishel,nshukla → Bug 1892232 - Catch errors when deleting scheduled background update tasks r=nrishel,nshukla
Pushed by nshukla@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d773b9cc57f9
Catch errors when deleting scheduled background update tasks r=nrishel,nshukla
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Whiteboard: [fidedi-ope]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: