Open Bug 1907775 Opened 2 years ago Updated 6 months ago

update asks for administrator (UAC)

Categories

(Toolkit :: Application Update, defect)

Firefox 127
defect

Tracking

()

People

(Reporter: valerio.vanni, Unassigned)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidedi-ope])

Attachments

(6 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Steps to reproduce:

On machines I use default configuration of Firefox: automatic updates with mozilla manteinance service. And I have standard windows users, without admin privileges.

On most machines, everything works. On some, not.
It doesn't seem related to Windows versions, I've seen it on 11, 10 (and perhaps on 7).
And neither to Firefox versions, I see it from some years.

Today, for example, the issue appeared on a Windows 11 machine (with 127.0.2, probably trying to update to 128), where Firefox have been update since machine install.

As I said, on most machine it works. I use standard users, and Firefox is kept updated.
On affected machines, Firefox detects updates and download them.
Then, during restart, an admin credential request popup appears.

If I click "no", Firefox starts but not updated.
If I enter admin credential and click "ok", Firefox is updated. And everything works... until next update.

Actual results:

When restarting, Firefox asks for admin credentials.

Expected results:

Firefox should have been updated.

The Bugbug bot thinks this bug should belong to the 'Toolkit::Application Update' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Application Update
Product: Firefox → Toolkit

In
C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\last-update.log

I find this:

2024-07-14 18:42:29+0200: sUsingService=false
2024-07-14 18:42:29+0200: sUpdateSilently=false
2024-07-14 18:42:29+0200: gUseSecureOutputPath=false
2024-07-14 18:42:29+0200: useService=false
2024-07-14 18:42:29+0200: gIsElevated=false
2024-07-14 18:42:29+0200: Writing status to file: applying
2024-07-14 18:42:29+0200: PATCH DIRECTORY C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0
2024-07-14 18:42:29+0200: INSTALLATION DIRECTORY C:\Program Files\Mozilla Firefox
2024-07-14 18:42:29+0200: WORKING DIRECTORY C:\Program Files\Mozilla Firefox
2024-07-14 18:42:29+0200: Checking whether elevation is needed
2024-07-14 18:42:29+0200: Failed to open update lock file: 5
2024-07-14 18:42:29+0200: Can't open lock file - seems like we need elevation
2024-07-14 18:42:29+0200: Elevating via a UAC prompt
2024-07-14 18:42:29+0200: Writing status to file: failed: 79

2024-07-14 18:42:31+0200: Writing status to file: failed: 9

2024-07-14 18:42:31+0200: Elevation canceled.
2024-07-14 18:42:31+0200: CompareSecureUpdateStatus applied
does not match succeeded
2024-07-14 18:42:31+0200: Not running LaunchWinPostProcess because update status is not'succeeded'.
2024-07-14 18:42:31+0200: Update complete

(In reply to valerio.vanni from comment #2)

2024-07-14 18:42:29+0200: useService=false

This line means that Firefox decided not to use the maintenance service (i.e. the updater didn't make this decision, it had already been made). So I need a browser console log from an affected machine that is not up-to-date and hasn't already downloaded an update:

  1. Navigate to about:config.
  2. Set app.update.log to true.
  3. Open the Browser Console either with the hotkey Control+Shift+J (Command+Shift+J on macOS), or via Hamburger Menu->More Tools->Browser Console
  4. In the Filter textbox at the top, enter AUS: to filter out everything except the update messages.
  5. Navigate to the "Update" section of about:preferences. It should automatically check for an update.
  6. Once the update check has completed, copy the messages out of the Browser Console and attach them to this bug.
Flags: needinfo?(valerio.vanni)

How can I find such a machine?

Firefox:
1 - searches for updates
2 - downloads update
3 - when starting, installs update

It's at stage 3 that it fails, and we classify the machine "affected".

Flags: needinfo?(valerio.vanni)

I don't understand the question. It sounds like the machine you are describing is not up-to-date and has not already downloaded an update, since it downloaded one on (2). Those were the only requirements I gave. What is the problem?

Flags: needinfo?(valerio.vanni)

(In reply to Robin Steuber (they/them) [:bytesized] from comment #5)

I don't understand the question. It sounds like the machine you are describing is not up-to-date

Correct.

and has not already downloaded an update, since it downloaded one on (2)

Here I don't understand your sentence: "has not already downloaded... since it downloaded one".
It twists my mind ;-)

I'd say that "has already downloaded... since it downloaded one". If I unplug network cable, Firefox is still able to try installing update.
Able to try (and to fail).

Those were the only requirements I gave. What is the problem?

If you say that it's ok to use that machine, I'll use that machine. No problem... I will be able to see it next Saturday.
If I can reach another one in the meantime, I'll try there.

Flags: needinfo?(valerio.vanni)

I just need to see a log of it downloading and preparing the update. If there is already an update ready to install, Firefox will not necessarily download another one, so the log would contain nothing useful in this case.

In other words, I need a log that looks something like:

Check for update
Downloading update
Staging update
Writing <data> to relevant file so the updater will know what to do when we restart to update

(Note: this is not how the log messages will actually be phrased or formatted; it's just for illustrative purposes)

If, instead, the log looks something like

Not checking for update because one has already been downloaded

Then that's not very helpful and I won't be able to tell you what the problem is.


(In reply to valerio.vanni from comment #6)

Here I don't understand your sentence: "has not already downloaded... since it downloaded one".
It twists my mind ;-)

Yes, that's correct. If it starts downloading an update, most likely it has not already downloaded an update since it is just now downloading one. If it already downloaded one it most likely will not download another. (Note: in certain circumstances we actually will download another - it's complicated)

Flags: needinfo?(valerio.vanni)

Now I don't have the machine here, but I remember it didn't try to download anything. It had already done it the first time.
Going to "Help-> About Firefox" it only said "reboot Firefox to install update".

(In reply to Robin Steuber (they/them) [:bytesized] from comment #7)

I just need to see a log of it downloading and preparing the update. If there is already an update ready to install, Firefox will not necessarily download another one, so the log would contain nothing useful in this case.

And so that machine it's not suitable, according to these criteria.
When issue appears, there is an update ready to install. Issue cannot appear before this event.

If, instead, the log looks something like

Not checking for update because one has already been downloaded

Then that's not very helpful and I won't be able to tell you what the problem is.

I think it's gonna be our case.

We need a way to delete update files, to force a new download.

Flags: needinfo?(valerio.vanni)

(In reply to valerio.vanni from comment #8)

We need a way to delete update files, to force a new download.

This can be done manually, if you want to do that:

  1. Navigate to about:support.
  2. Find the row that says "Update Folder" and click the "Open Folder" button.
  3. Delete the file called active-update.xml.
  4. Open the updates directory and, inside, delete the directories called 0 and downloading
  5. Restart Firefox.

You'll probably want to enable app.update.log before you restart Firefox. Then, after you restart, follow the remaining steps from Comment 3.

Flags: needinfo?(valerio.vanni)
Attached file 1-first attempt —
(In reply to Robin Steuber (they/them) [:bytesized] from comment #9) > (In reply to valerio.vanni from comment #8) > > We need a way to delete update files, to force a new download. > > This can be done manually, if you want to do that: > > 1. Navigate to `about:support`. > 2. Find the row that says "Update Folder" and click the "Open Folder" button. > 3. Delete the file called `active-update.xml`. > 4. Open the `updates` directory and, inside, delete the directories called `0` and `downloading` > 5. Restart Firefox. > > You'll probably want to enable `app.update.log` before you restart Firefox. Then, after you restart, follow the remaining steps from Comment 3. I see now your message, but during the morning I managed to test another affected machine.
Attached file First attempt —
(In reply to Robin Steuber (they/them) [:bytesized] from comment #9) > (In reply to valerio.vanni from comment #8) > > We need a way to delete update files, to force a new download. > > This can be done manually, if you want to do that: > > 1. Navigate to `about:support`. > 2. Find the row that says "Update Folder" and click the "Open Folder" button. > 3. Delete the file called `active-update.xml`. > 4. Open the `updates` directory and, inside, delete the directories called `0` and `downloading` > 5. Restart Firefox. > > You'll probably want to enable `app.update.log` before you restart Firefox. Then, after you restart, follow the remaining steps from Comment 3. I see now your message, but during the morning I managed to test another affected machine.
Attached file 1 —
First, I started Firefox (saying "no" to credential request)

These logs are pretty similar. And I can see that Firefox is doing something probably incorrect in both of them.

AUS:SVC shouldUseService - returning true
...
AUS:SVC handleUpdateFailure - Failure because elevation was cancelled. again by setting status to pending.

That doesn't seem right at all. The updater claims to be able to use the service, but to specifically not use it because update elevation wasn't accepted last time. I've filed Bug 1908254 to address that issue. You can see more details there if you are interested.

It doesn't really make sense that this would be the only problem you are encountering. This problem perpetuates itself, but that leaves us still wanting to know how it started in the first place.

The instructions in Comment 9 should be sufficient to clear out the "stuck" update as well. I'm curious if the problem happens again after you do this. If the update is successful this time, probably the reasons that this failed the first time were transient and there isn't much more we can look into the problem unless it happens again. If the update fails again, then we can try to figure out why and fix that too. Let me know what happens.

See Also: → 1908254

There is some mess in attachments.
When I tried to upload them, I got the error
"Couldn’t upload the text as an attachment. Please try again later. Error: Failed to fetch key 9413119 from network storage: Not Found"
I thought nothing had been uploaded, but now I see attachments in first message.

But with that error, I uploaded three time the same file.

I collected three of them, I try to put them here as text.

Here is the first attempt. I opened mozilla and said "no" to credential request.

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateService:_postUpdateProcessing - status = "failed: 9"
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateManager:UpdateManager - status = "failed: 9"
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to [object Object]
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate state to pending-service
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's state from the status file (="failed")
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's errorCode from the status file (="9")
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC UpdateService:_postUpdateProcessing - Attempting handleUpdateFailure
AUS:SVC handleUpdateFailure - notifying observers of error. topic: update-error, status: elevation-attempts-exceeded
AUS:SVC handleUpdateFailure - Failure because elevation was cancelled. again by setting status to pending.
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_PENDING".
AUS:SVC UpdateService:_postUpdateProcessing - handleUpdateFailure success.
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC CheckerService:getUpdateURL - checkType: 1
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 2.
AUS:SVC CheckerService:getUpdateURL - checkType: 1
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService:selectUpdate - skipping update because the update's application version is not greater than that of the currently downloaded update


Then I deleted all content from Update Folder, then I started again Firefox
It downloaded again the update, and proposed restart.

Before restart, I took this other log:

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:AUM AppUpdater:check - currentState=STATE_IDLE
AUS:AUM AppUpdater:check - starting update check
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 2.
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:AUM AppUpdater:check - Update check succeeded
AUS:SVC UpdateManager:_loadXMLFileIntoArray - XML file does not exist. path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\active-update.xml
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to null
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:AUM AppUpdater:check - updateAuto is active and manualUpdateOnlydateOnly is inactive. Start the download.
AUS:SVC Creating Downloader
AUS:SVC UpdateService:downloadUpdate
AUS:SVC Downloader:_selectPatch - Patch selected. Assigning update to downloadingUpdate.
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC Downloader:_canUseBits - Patch is able to use BITS download
AUS:SVC Downloader:downloadUpdate - Starting BITS download with url: https://download.mozilla.org/?product=firefox-128.0-partial-127.0&os=win64&lang=it, updateDir: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\downloading, filename: update.mar
AUS:SVC Downloader:downloadUpdate - BITS download running. BITS ID: {0CDEBD66-B263-4845-A2DB-C1E2D053AF6F}
AUS:SVC Downloader:downloadUpdate - Setting status to downloading
AUS:SVC Downloader:downloadUpdate - Setting state to downloading
AUS:SVC Downloader:downloadUpdate - setting currentState to STATE_DOWNLOADING
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_DOWNLOADING".
AUS:AUM AppUpdater:#awaitDownloadComplete - Registered download listener
AUS:AUM AppUpdater:#awaitDownloadComplete - Waiting for state transition.
AUS:SVC Downloader:onStartRequest
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onStartRequest - aRequest: [xpconnect wrapped nsIRequest]
AUS:SVC Downloader:onProgress - progress: 2883584/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 2883584, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 8912896/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 8912896, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 15466496/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 15466496, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 22282240/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 22282240, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 28835840/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 28835840, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 32265774/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 32265774, aProgressMax: 32265774
AUS:SVC Downloader:onStopRequest - downloader: BITS, status: 0
AUS:SVC Downloader:onStopRequest - status: 0, current fail: 0, max fail: 10, retryTimeout: 2000
AUS:SVC Downloader:_verifyDownload called
AUS:SVC Downloader:_verifyDownload downloaded size == expected size.
AUS:SVC Downloader:onStopRequest - Clearing readyUpdate in preparation of moving downloadingUpdate into readyUpdate.
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Downloader:onStopRequest - Ready to apply. Setting state to "pending-service".
AUS:SVC Downloader:onStopRequest - Setting bitsResult to 0
AUS:SVC Downloader:onStopRequest - setting state to: pending-service
AUS:SVC Downloader:onStopRequest - Moving downloadingUpdate into readyUpdate
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onStopRequest - aRequest: [xpconnect wrapped nsIRequest], aStatusCode: 0
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Downloader:onStopRequest - attempting to stage update: Firefox 128.0
AUS:SVC transitionState - "STATE_DOWNLOADING" -> "STATE_STAGING".
AUS:AUM AppUpdater:#awaitDownloadComplete - Download listener removed
AUS:AUM AppUpdater:#awaitDownloadComplete - State transition seen. New state: STATE_STAGING
AUS:AUM AppUpdater:#awaitDownloadComplete - awaiting staging completion.
AUS:AUM AppUpdater:#awaitStagingComplete - Setting status STAGING.
AUS:AUM AppUpdater:#awaitStagingComplete - Waiting for state transition.
AUS:SVC UpdateManager:refreshUpdateStatus - Staging done.
AUS:SVC readStatusFile - status: failed: 43, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateManager:refreshUpdateStatus - status = failed: 43
AUS:SVC UpdateManager:refreshUpdateStatus - Staging failed.
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC UpdateManager:refreshUpdateStatus - Unexpected staging error. Setting status to "pending-service"
AUS:SVC promiseLangPacksUpdated - waiting for language pack updates to stage.
AUS:SVC UpdateManager:refreshUpdateStatus - Setting state STATE_PENDING
AUS:SVC transitionState - "STATE_STAGING" -> "STATE_PENDING".
AUS:SVC UpdateManager:refreshUpdateStatus - Notifying observers that the update was staged. topic: update-staged, status: pending-service
AUS:AUM AppUpdater:#awaitStagingComplete - State transition seen. New state: STATE_PENDING
AUS:AUM AppUpdater:#awaitStagingComplete - ready for restart
AUS:AUM AppUpdater:#onReadyToRestart - Setting status READY_FOR_RESTART.
AUS:AUM AppUpdater:#onReadyToRestart - Attaching update-swap listener


Then I restarted firefox, got the same error and then saved log again:

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateService:_postUpdateProcessing - status = "failed: 9"
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateManager:UpdateManager - status = "failed: 9"
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to [object Object]
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate state to pending-service
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's state from the status file (="failed")
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's errorCode from the status file (="9")
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC UpdateService:_postUpdateProcessing - Attempting handleUpdateFailure
AUS:SVC handleUpdateFailure - notifying observers of error. topic: update-error, status: elevation-attempts-exceeded
AUS:SVC handleUpdateFailure - Failure because elevation was cancelled. again by setting status to pending.
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_PENDING".
AUS:SVC UpdateService:_postUpdateProcessing - handleUpdateFailure success.
AUS:AUM AppUpdater:check - currentState=STATE_PENDING
AUS:AUM AppUpdater:check - ready for restart
AUS:AUM AppUpdater:#onReadyToRestart - Setting status READY_FOR_RESTART.
AUS:AUM AppUpdater:#onReadyToRestart - Attaching update-swap listener
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates


Flags: needinfo?(valerio.vanni)

There is some mess in attachments.
When I tried to upload them, I got the error
"Couldn’t upload the text as an attachment. Please try again later. Error: Failed to fetch key 9413119 from network storage: Not Found"
But now I see attachments in first message. The same attachment uploaded multiple times.

I collected three of them, I try to put them here as text.

Here is the first attempt. I opened mozilla and said "no" to credential request.

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateService:_postUpdateProcessing - status = "failed: 9"
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateManager:UpdateManager - status = "failed: 9"
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to [object Object]
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate state to pending-service
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's state from the status file (="failed")
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's errorCode from the status file (="9")
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC UpdateService:_postUpdateProcessing - Attempting handleUpdateFailure
AUS:SVC handleUpdateFailure - notifying observers of error. topic: update-error, status: elevation-attempts-exceeded
AUS:SVC handleUpdateFailure - Failure because elevation was cancelled. again by setting status to pending.
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_PENDING".
AUS:SVC UpdateService:_postUpdateProcessing - handleUpdateFailure success.
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC CheckerService:getUpdateURL - checkType: 1
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 2.
AUS:SVC CheckerService:getUpdateURL - checkType: 1
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService:selectUpdate - skipping update because the update's application version is not greater than that of the currently downloaded update


Then I deleted all content from Update Folder, then I started again Firefox
It downloaded again the update, and proposed restart.

Before restart, I took this other log:

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:AUM AppUpdater:check - currentState=STATE_IDLE
AUS:AUM AppUpdater:check - starting update check
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 2.
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:AUM AppUpdater:check - Update check succeeded
AUS:SVC UpdateManager:_loadXMLFileIntoArray - XML file does not exist. path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\active-update.xml
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to null
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:AUM AppUpdater:check - updateAuto is active and manualUpdateOnlydateOnly is inactive. Start the download.
AUS:SVC Creating Downloader
AUS:SVC UpdateService:downloadUpdate
AUS:SVC Downloader:_selectPatch - Patch selected. Assigning update to downloadingUpdate.
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC Downloader:_canUseBits - Patch is able to use BITS download
AUS:SVC Downloader:downloadUpdate - Starting BITS download with url: https://download.mozilla.org/?product=firefox-128.0-partial-127.0&os=win64&lang=it, updateDir: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\downloading, filename: update.mar
AUS:SVC Downloader:downloadUpdate - BITS download running. BITS ID: {0CDEBD66-B263-4845-A2DB-C1E2D053AF6F}
AUS:SVC Downloader:downloadUpdate - Setting status to downloading
AUS:SVC Downloader:downloadUpdate - Setting state to downloading
AUS:SVC Downloader:downloadUpdate - setting currentState to STATE_DOWNLOADING
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_DOWNLOADING".
AUS:AUM AppUpdater:#awaitDownloadComplete - Registered download listener
AUS:AUM AppUpdater:#awaitDownloadComplete - Waiting for state transition.
AUS:SVC Downloader:onStartRequest
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onStartRequest - aRequest: [xpconnect wrapped nsIRequest]
AUS:SVC Downloader:onProgress - progress: 2883584/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 2883584, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 8912896/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 8912896, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 15466496/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 15466496, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 22282240/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 22282240, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 28835840/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 28835840, aProgressMax: 32265774
AUS:SVC Downloader:onProgress - progress: 32265774/32265774
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onProgress - aRequest: [xpconnect wrapped nsIRequest], aProgress: 32265774, aProgressMax: 32265774
AUS:SVC Downloader:onStopRequest - downloader: BITS, status: 0
AUS:SVC Downloader:onStopRequest - status: 0, current fail: 0, max fail: 10, retryTimeout: 2000
AUS:SVC Downloader:_verifyDownload called
AUS:SVC Downloader:_verifyDownload downloaded size == expected size.
AUS:SVC Downloader:onStopRequest - Clearing readyUpdate in preparation of moving downloadingUpdate into readyUpdate.
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Downloader:onStopRequest - Ready to apply. Setting state to "pending-service".
AUS:SVC Downloader:onStopRequest - Setting bitsResult to 0
AUS:SVC Downloader:onStopRequest - setting state to: pending-service
AUS:SVC Downloader:onStopRequest - Moving downloadingUpdate into readyUpdate
AUS:AUM AppUpdater:#awaitDownloadComplete.observer.onStopRequest - aRequest: [xpconnect wrapped nsIRequest], aStatusCode: 0
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Downloader:onStopRequest - attempting to stage update: Firefox 128.0
AUS:SVC transitionState - "STATE_DOWNLOADING" -> "STATE_STAGING".
AUS:AUM AppUpdater:#awaitDownloadComplete - Download listener removed
AUS:AUM AppUpdater:#awaitDownloadComplete - State transition seen. New state: STATE_STAGING
AUS:AUM AppUpdater:#awaitDownloadComplete - awaiting staging completion.
AUS:AUM AppUpdater:#awaitStagingComplete - Setting status STAGING.
AUS:AUM AppUpdater:#awaitStagingComplete - Waiting for state transition.
AUS:SVC UpdateManager:refreshUpdateStatus - Staging done.
AUS:SVC readStatusFile - status: failed: 43, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateManager:refreshUpdateStatus - status = failed: 43
AUS:SVC UpdateManager:refreshUpdateStatus - Staging failed.
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC UpdateManager:refreshUpdateStatus - Unexpected staging error. Setting status to "pending-service"
AUS:SVC promiseLangPacksUpdated - waiting for language pack updates to stage.
AUS:SVC UpdateManager:refreshUpdateStatus - Setting state STATE_PENDING
AUS:SVC transitionState - "STATE_STAGING" -> "STATE_PENDING".
AUS:SVC UpdateManager:refreshUpdateStatus - Notifying observers that the update was staged. topic: update-staged, status: pending-service
AUS:AUM AppUpdater:#awaitStagingComplete - State transition seen. New state: STATE_PENDING
AUS:AUM AppUpdater:#awaitStagingComplete - ready for restart
AUS:AUM AppUpdater:#onReadyToRestart - Setting status READY_FOR_RESTART.
AUS:AUM AppUpdater:#onReadyToRestart - Attaching update-swap listener


Then I restarted firefox, got the same error and then saved log again:

AUS:STB UpdateServiceStub - Begin.
AUS:SVC Creating UpdateService
AUS:SVC Logging current UpdateService status:
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC Elevation required: false
AUS:SVC Other instance of the application currently running: false
AUS:SVC Downloading: false
AUS:SVC End of UpdateService status
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateService:_postUpdateProcessing - status = "failed: 9"
AUS:SVC getCanApplyUpdates - testing write access C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\update.test
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanApplyUpdates - bypass the write checks because the Windows Maintenance Service can be used
AUS:SVC readStatusFile - status: failed: 9, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update.status
AUS:SVC UpdateManager:UpdateManager - status = "failed: 9"
AUS:SVC UpdateManager:UpdateManager - Initialized downloadingUpdate to null
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate to [object Object]
AUS:SVC UpdateManager:UpdateManager - Initialized readyUpdate state to pending-service
AUS:SVC readStringFromFile - file doesn't exist: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC readBinaryTransparencyResult - result: null, path: C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\bt.result
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's state from the status file (="failed")
AUS:SVC UpdateService:_postUpdateProcessing - Setting update's errorCode from the status file (="9")
AUS:SVC cleanUpReadyUpdateDir - failed to rename file 'C:\ProgramData\Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38\updates\308046B0AF4A39CB\updates\0\update-elevated.log' to 'last-update-elevated.log': 2152857618
AUS:SVC UpdateService:_postUpdateProcessing - Attempting handleUpdateFailure
AUS:SVC handleUpdateFailure - notifying observers of error. topic: update-error, status: elevation-attempts-exceeded
AUS:SVC handleUpdateFailure - Failure because elevation was cancelled. again by setting status to pending.
AUS:SVC transitionState - "STATE_IDLE" -> "STATE_PENDING".
AUS:SVC UpdateService:_postUpdateProcessing - handleUpdateFailure success.
AUS:AUM AppUpdater:check - currentState=STATE_PENDING
AUS:AUM AppUpdater:check - ready for restart
AUS:AUM AppUpdater:#onReadyToRestart - Setting status READY_FOR_RESTART.
AUS:AUM AppUpdater:#onReadyToRestart - Attaching update-swap listener
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC UpdateService.canCheckForUpdates - able to check for updates
AUS:SVC CheckerService:checkForUpdates - checkType: 2
AUS:SVC CheckerService:checkForUpdates - Making new check request for check id 1.
AUS:SVC waitForOtherInstances - beginning polling
AUS:SVC waitForOtherInstances - no other instances found, exiting
AUS:SVC CheckerService:getUpdateURL - checkType: 2
AUS:SVC CheckerService:getUpdateURL - update URL: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - sending request to: https://aus5.mozilla.org/update/6/Firefox/127.0/20240606181944/WINNT_x86_64-msvc-x64/it/release/Windows_NT%252010.0.0.0.19045.4529%2520(x64)/ISET%3ASSE4_2%2CMEM%3A8063/default/default/update.xml?force=1
AUS:SVC CheckerService:#updateCheck - request got 'load' event
AUS:SVC CheckerService:#updateCheck - request completed downloading document
AUS:SVC CheckerService:#updateCheck - number of updates available: 1
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates
AUS:SVC UpdateService.canUsuallyCheckForUpdates - able to check for updates
AUS:SVC isServiceInstalled - returning true
AUS:SVC shouldUseService - returning true
AUS:SVC getCanStageUpdates - able to stage updates using the service
AUS:SVC getCanUseBits - BITS can be used to download updates

That doesn't seem right at all. The updater claims to be able to use the service, but to specifically not use it because update elevation wasn't accepted last time. I've filed Bug 1908254 to address that issue. You can see more details there if you are interested.

It doesn't really make sense that this would be the only problem you are encountering. This problem perpetuates itself, but that leaves us still wanting to know how it started in the first place.

Which other problem should I encounter?

The instructions in Comment 9 should be sufficient to clear out the "stuck" update as well.

I cleared something more, but a new dowload has been triggered.

I'm curious if the problem happens again after you do this.

With "cleared something more" it happens again and again.

(In reply to valerio.vanni from comment #14)

AUS:SVC UpdateManager:refreshUpdateStatus - status = failed: 43

Excellent, this is precisely the log line that I needed.


I'll give a quick explanation of what's going on here. Error 43 is UNEXPECTED_STAGING_ERROR (link). For context, staging is an optional step between downloading the update and fully installing it. Staging can be done while the browser is still running to make the update installation process a lot quicker. But while installation can use the Mozilla Maintenance Service or a UAC prompt to elevate its permissions, staging must use the service so that we don't pop up a UAC prompt seemingly randomly while Firefox is running.

UNEXPECTED_STAGING_ERROR is the fairly generic error code for the situation where we are trying to stage, but we are unable to use the Maintenance Service. There are a variety of reasons why this can happen. One of these reasons I would describe as an expected failure case, so I would like to call that out specifically. An installation can only use the Mozilla Maintenance Service if that installation was installed with support for it.

For the updater to be able to use the Maintenance Service, these thing must be true:

  • Firefox must have been installed with the installer. Things like zip installs cannot use the service.
  • The Firefox installer must not have been instructed not to install/use the service at installation time.
  • The Firefox installation directory must not have been moved since its installation.

The updater relies on certain registry keys to be able to invoke the Maintenance Service safely. If the above conditions are not true, those keys will not exist and the service cannot be used. So I encourage you to make sure that those conditions hold true for you before we continue.

Assuming that isn't what's going on, we can find out what is going on by following similar steps to before, but collecting more logging:

  1. Navigate to about:config.
  2. Set app.update.log to true.
  3. Navigate to about:support.
  4. Find the row that says "Update Folder" and click the "Open Folder" button.
  5. Quit Firefox specifically via Hamburger Menu -> Exit and wait for it to fully exit.
  6. In the Update Folder, delete the file called active-update.xml (if it exists).
  7. Open the updates directory and, inside, delete the directories called 0 and downloading (if they exist).
  8. Launch Firefox.
  9. Open the Browser Console either with the hotkey Control+Shift+J (Command+Shift+J on macOS), or via Hamburger Menu->More Tools->Browser Console.
  10. In the Filter textbox at the top, enter AUS: to filter out everything except the update messages.
  11. Navigate to the "Update" section of about:preferences. It should automatically check for an update.
  12. Once the update check has completed, copy the messages out of the Browser Console and attach them to this bug.
  13. Open the Update Folder again, if it isn't still open.
  14. In the updates directory, locate these files and attach them to this bug (they may not all exist): last-update.log, last-update-elevated.log, backup-update.log, and backup-update-elevated.log.

This should tell us why we are failing to use the Maintenance Service.

Flags: needinfo?(valerio.vanni)

(In reply to Robin Steuber (they/them) [:bytesized] from comment #16)

UNEXPECTED_STAGING_ERROR is the fairly generic error code for the situation where we are trying to stage, but we are unable to use the Maintenance Service. There are a variety of reasons why this can happen. One of these reasons I would describe as an expected failure case, so I would like to call that out specifically. An installation can only use the Mozilla Maintenance Service if that installation was installed with support for it.

For the updater to be able to use the Maintenance Service, these thing must be true:

  • Firefox must have been installed with the installer. Things like zip installs cannot use the service.
  • The Firefox installer must not have been instructed not to install/use the service at installation time.
  • The Firefox installation directory must not have been moved since its installation.

All are true. A note, on the machine recently broken (the one that made me open this bug report): that Firefox installation had been working for more than an year. It got version 127, 126, 125 etc with maintenance service.
I'm sure about it, because on that system there are two users (non-admin users). Admin credentials are known only to me, and I never entered them for updating Firefox.
The first time I saw request was before opening this bug record.

Flags: needinfo?(valerio.vanni)

(In reply to valerio.vanni from comment #17)

All are true.

It sounds like something is wrong then. To figure out what, I'll need all the logs I requested in Comment 16.

Flags: needinfo?(valerio.vanni)

I'm going to collect them, as soon as I can see that machine (during the weekend).

Flags: needinfo?(valerio.vanni)

(In reply to valerio.vanni from comment #19)

I'm going to collect them, as soon as I can see that machine (during the weekend).

On this machine, at the end of the steps of Comment 16, Firefox updated to 128.
I will check on another one.

Attached file after-download.zip —

I've checked on the other machine, with steps of Comment 16.

Firefox detected and downloaded the update, then showed "Restart Firefox to apply update" (don't know if it's real text, my installation is not in english language).
At that point I collected logs.

Then, clicking on "restart", during laungh I saw the same UAC prompt.

Attached file after-download-PC2.zip —

These are the logs taken on another machine that shows the same issue.

Sorry for the delay getting back to you, I'm afraid I was sick for a few days.

Looking at after-download.zip's last-update.log, I see exactly what's going on here:

2024-07-21 13:43:09+0200: After checking IsLocalFile, useService=true
2024-07-21 13:43:09+0200: After checking IsUnpromptedElevation, useService=false

This means that we abandon attempting to use the service after checking the results of the IsUnpromptedElevation function, here.

I'm not especially familiar with this function, but it looks pretty straight forward. It simply checks the registry keys HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin and HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PromptOnSecureDesktop and prevents the Mozilla Maintenance Service from being used if both values are zero. I believe the documentation for what these values represent is here: ConsentPromptBehaviorAdmin, PromptOnSecureDesktop.

Based on reading some comments, documentation, and code, I believe that what is happening here is that the updater thinks it can request elevation and receive it without showing a UAC prompt, so it doesn't think there is really any reason to use the service. It's generally safer to use the lower privileges of the user, if possible, rather than the more extensive SYSTEM privileges that the Mozilla Maintenance Service uses. So, in theory, if the user has their machine configured such that we can request elevation without having to show a prompt, we would prefer to do that. And it seems that we think that we can do that, since IsUnpromptedElevation is returning true (through its outparam), but since you are seeing prompts, clearly this function is mistaken.

I can think of a few potential solutions to this problem, some of which are more reasonable than others:

  1. We could just remove this code. I don't think we need it, really. And apparently it is causing problems.
  2. We could attempt to fix the code such that IsUnpromptedElevation does not return incorrect information. This is somewhat better from a security perspective, but I am now concerned that perhaps detecting this situation is more complicated than I would have hoped. It's possible we would miss some corner case and this problem could crop up again either when Windows is updated or for users with configurations that make this work in a way we don't expect.
  3. We could attempt to detect failures of this mechanism and recover from them. We do, after all, know when we fail due to a UAC prompt being rejected, which shouldn't happen if we really can use elevation without a prompt. Implementation of this is likely to be fairly difficult and it would probably mean that the user would probably still see at least one unexpected UAC, which isn't ideal. The upside is that this could allow us to still use this mechanism while retaining some robustness if it fails. But I suspect that the difficult implementation and the downsides mean that we probably won't pick this solution.

Unless we go with fix (1), there is also something else that we should address here. We currently don't use the service in this case because we think we can elevate our permissions silently. But, when staging, we do not even attempt to do this. Instead, we set useService = false, here and then we exit with a failure status, here. This is really not a reasonable way of dealing with this situation. It's probably reasonable to skip the IsUnpromptedElevation check if sStagedUpdate. Or it might be reasonable to use the unprompted elevation for staging. But I must admit that, given this bug, I'm pretty reluctant to do that. If IsUnpromptedElevation ever returned a false positive, it could result in showing seemingly random UAC prompts while Firefox is running, which would obviously be confusing to users and generally undesirable. And it's clearly returning false positives at the moment, so I'm not sure what level of confidence we can have that we can elevate it to that level of reliability.

Now that I understand the situation a bit better, I'll spend a bit of time this afternoon to see if I can reproduce the problem now by changing around my UAC settings.

Could I also get one more piece of information from you though? On one of the affected machines, could you open the Settings app, use the search box near the top left to search for "UAC" and select "Change User Account Control settings" from the drop down. I would like to know which level the slider in that settings page is set to. For example, mine is set to the second notch from the top, reading "Notify me only when apps try to make changes to my computer (default)".

Thank you!

Flags: needinfo?(valerio.vanni)

Oh, one more question, actually. Do the users that would encounter these prompts have administrator privileges? In other words, when they get a UAC prompt, would they need to enter a different user's credentials in order to elevate?

(In reply to Robin Steuber (they/them) [:bytesized] from comment #24)

Oh, one more question, actually. Do the users that would encounter these prompts have administrator privileges? In other words, when they get a UAC prompt, would they need to enter a different user's credentials in order to elevate?

I hope you feel better now.

I'll read again your other message, in the meantime I can answer to this:

No, they don't have administrator privileges.

Flags: needinfo?(valerio.vanni)

I checked on three affected machines: UAC slider is all way down. Both ConsentPromptBehaviorAdmin and PromptOnSecureDesktop are 0.

It assumes from this that service is not needed. It seems not correct: it only tell us about the need of UAC prompt... nothing about user rights.
If user has administrator privileges, ok: user doesn't need elevation prompt.
But with a standard user, we can be sure that update will fail.

About the second way you suggest:

We could attempt to fix the code such that IsUnpromptedElevation does not return incorrect information. This is somewhat better from a security >perspective, but I am now concerned that perhaps detecting this situation is more complicated than I would have hoped. It's possible we would >miss some corner case and this problem could crop up again either when Windows is updated or for users with configurations that make this work >in a way we don't expect.

I think that a simple way would be to check, in addition to those registry keys, wether user has administrator rights.

It has? Don't use service, and go with lower privileges of this user.
It hasn't? User service.

Sorry, latest sentence should be "let's use service".

The severity field is not set for this bug.
:nshukla, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(nshukla)
Severity: -- → S3
Flags: needinfo?(nshukla)

(In reply to valerio.vanni from comment #26)

I checked on three affected machines: UAC slider is all way down. Both ConsentPromptBehaviorAdmin and PromptOnSecureDesktop are 0.

I add that I saw two other machines with these same settings, but there Firefox keeps updating.

Attached file After download-PC3.zip —

These are logs from another client.

Now that bug 1908254 bugfix has landed on 130, we should have multiple retries with service.

Should I update by hand to 130 and get new logs with future updates?

I think that we know what the problem here is, so I don't think we need more logs. The main issue now is finding the engineering capacity to fix the problem.

Thank you for your help with the diagnosis.

Whiteboard: [fidedi-ope]

(In reply to Robin Steuber (she/her) [:bytesized] from comment #32)

I think that we know what the problem here is,

Is the regressing bug# known?

(In reply to Wayne Mery (:wsmwk) from comment #33)

Is the regressing bug# known?

I'm guessing Bug 740842

Apologies for hijacking this a bit, I was prompted in Mozilla forums to post an issue with Thunderbird here, please see https://support.mozilla.org/en-US/questions/1462757#answer-1673668

Should I open a new TB bug for it?

Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: update asks for administrator → update asks for administrator (UAC)
See Also: → 1912234
Keywords: regression
Regressed by: 740842

I don't know why, but the machines affected in my network have doubled (from 3 to 6, in a network of 40).
One became affected after upgrade from 10 to 11.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: