Scheduled task fails: "The operator or administrator has refused the request. (0x800710E0)" #38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm running the standard install (not portable) for LibreWolf with WinUpdater set to automatically check for updates. After initial setup, automated updates were not working at all on my end. I went investigating and found the LibreWolf WinUpdater task in Windows Task Scheduler, with the below error text under Last Run Result:
The account LibreWolf is running under is an administrator. LibreWolf was left running after initial install (including a period of PC hibernation). I was able to successfully update by closing LibreWolf, which from reading previous issues, I believe triggers another update check? After this, the Last Run Result text read:
Forcing a manual run from the Task Scheduler (right click -> Run) now seems to work without issue, with the updater process running and presumably silently exiting when it finds no update. I will update this issue the next time a scheduled run occurs, which won't be until tomorrow because the machine won't be in use again until then.
@vaguerant wrote in https://codeberg.org/ltguillaume/librewolf-winupdater/issues/38#issue-1038823:
I have seen this issue before, but I was never able to find out what caused it. It just "went away". I might have something to do with hibernation/standby, because I did see this only on a laptop.
Another possible cause was that the username it was running under had an ampersand (&) in the name. Is that the case for you, too?
No, closing LW won't trigger another update check, but if WinUpdater ran successfully (without error 0x800710E0) and found an update, it will notify the user and wait until LW is closed. When closed, it will start the update process.
Thank you for making a thorough report, I'd really like to tackle this issue properly.
I don't have any ampersands or other special characters in my user name, just upper and lower-case Latin letters.
That's interesting, that would seem to indicate that it was able to run successfully on a previous instance.
Nothing overly helpful to report from today. I woke the machine from hibernate at ~4 PM. The previous check (11 PM the night before) had run successfully. I initiated a run manually and Task Scheduler reported that the last run, at 4:28 PM, had failed, with the same error as earlier. The scheduled 7 PM task, however, ran without issue (0x0). At this point, I enabled the History feature in Task Scheduler (Actions sidebar, Enable All Tasks History). The 11 PM run once again ran without issue.
Hopefully, the History tab will have some useful information when or if another failed run occurs.
Thanks, hope so, too, since I cannot reproduce this anymore.
Could you tell me your Windows version and build? For me, this used to happen on Windows 10 LTSC 2019.
Here's an explanation of the error that would be the ideal case (i.e. no real issue, just a warning): https://overflow.adminforge.de/questions/36281197/the-operator-or-administrator-has-refused-the-request-task-scheduler#50475409
I figure you would be able to see that in the history as soon as it happens again.
If it's just that, I might be able to prevent this error from showing for too long (except for in the History tab) by simply enabling "Run task as soon as possible after a scheduled start is missed".
I'm on Windows 10 Pro 22H2.
As is tradition, the issue seems to have stopped happening as soon as we started trying to diagnose it. 🫤
I do get a Warning in the history log each time the system wakes about the previous missed schedule, but updates seem to be working as expected now. The logged warnings look like this (on wake, after being off for ~12 hours):
Going into the right click > Event Properties, there's slightly more info:
There was just a LibreWolf update today, which I think landed after the 3 PM check local time, so I'm currently waiting for the 7 PM check to pick it up. Will edit if anything interesting happens there, but I expect it will probably run without issue.
I've already added this to the script. If it could make sure this confusing error message won't be there for long after resuming a session, I consider it an improvement.
How did the 7PM check go?