BatchPatch Forums Home › Forums › BatchPatch Support Forum › My scheduled patch tasks did not run last night
- This topic has 7 replies, 2 voices, and was last updated 8 years, 8 months ago by doug.
-
AuthorPosts
-
March 9, 2016 at 1:41 pm #9177Magnus KnightParticipant
I’m not sure why, but my scheduled patching tasks did not run last night. Everything looks good as far as I can tell, so I don’t know what I may have missed.
I have my schedule to run every Wednesday at 01:00.
I looked for some logs, but I don’t see any logs related to last night. I only see the logs for when I manually patched the systems last month.
March 9, 2016 at 5:03 pm #11170dougModeratorIt sounds to me like you did not enable the scheduler. After you schedule a date/time for a task to run you have to also enable the scheduler, which is not enabled by default. Please have a look at the following page, which explains in more detail how to use the task scheduler.
March 9, 2016 at 9:39 pm #11173Magnus KnightParticipantThe Task Scheduler is enabled. I verified that. I also set the settings to enable task scheduler on startup for just in case I forgot. I must be missing something else.
I see that in the column, Schd Task – Next Run, that the date has now shifted to the 2nd Wednesday of April; as though the task had run this morning.
March 9, 2016 at 9:56 pm #11174dougModeratorThat’s definitely odd. Can you paste the ‘All Messages’ column content for me to review? If BP modified the next run time, then it should have logged something indicating that the task ran or was missed etc. Also, you said in your original posting that you have the schedule set to run every Wed at 01:00. However, you are now saying that is says the next run time is for the 2nd Wed of April, which implies that you have it set to run monthly, not weekly. Not sure if that has something to do with the issue or not, but I’m highlighting it in case. How do you actually have it set? To run on the 2nd Wed of every month?
Thanks,
Doug
March 10, 2016 at 1:33 pm #11175Magnus KnightParticipantYou are correct, as I made a mistake in my posting. It was erroneous for me to say every Wednesday. I intended to say every 2nd Wednesday. I intend to patch the day after Microsoft releases patches on patch Tuesday. Our patches are scheduled for the 2nd Wednesday of every month.
I have several systems that are scheduled to patch, but here is the output of two of system’s “All Messages” column. I ended up patching these manually last month. Please note that in February, I did have another failure on patching as a result of an error on my side. I believe I have since corrected that. You helped me with that in the forums as well.
Thu-23:30:36> host1.xxxxxxxx.com ONLINE
Thu-23:29:43> host1.xxxxxxxx.com OFFLINE
Thu-23:26:17> Reboot/Shutdown: Reboot (force) initiated successfully
Thu-23:26:16> Reboot/Shutdown: Attempting to initiate reboot (force)…
Thu-23:26:16> Reboot/Shutdown: Failed to initiate reboot. User is logged on.
Thu-23:26:14> Reboot/Shutdown: Attempting to initiate reboot…
Thu-23:26:12> Windows Update: Reboot Required. Overall Installation Result: Succeeded
Thu-21:50:17> Windows Update: Executing BatchPatchRemoteAgent.exe…
Thu-21:50:17> Windows Update: Attempting to initiate Windows Update (Action: Download and install updates. Server selection: Default / Managed) …
Thu-21:50:17> Windows Update: Establishing connection…
Thu-21:50:16> Windows Update: Initializing…
Thu-21:50:15> Windows Update: Queued… (Download and install updates + reboot if required)
Thu-08:17:48> Windows Update: 111 update(s) found
Thu-08:15:57> Windows Update: Executing BatchPatchRemoteAgent.exe…
Thu-08:15:44> Windows Update: Attempting to initiate Windows Update (Action: Search for updates. Server selection: Default / Managed) …
Thu-08:15:44> Windows Update: Establishing connection…
Thu-08:15:43> Windows Update: Initializing…
Thu-08:15:42> Windows Update: Queued… (Check for available updates)
Wed-16:22:29> Windows Update: Error 1612: The operation was canceled by the user. Please make sure that PsExec.exe is in your system PATH. If you’re not familiar with the system PATH environment variable, putting PsExec.exe into C:Windows should fix the issue. HRESULT: -2147467259
Wed-16:22:20> Windows Update: Attempting to initiate Windows Update (Action: Search for updates. Server selection: Default / Managed) …
Wed-16:22:20> Windows Update: Establishing connection…
Wed-16:22:20> Windows Update: Initializing…
Wed-16:22:19> Windows Update: Queued… (Check for available updates)
Wed-01:00:12> Windows Update: Attempting to initiate Windows Update (Action: Download and install updates. Server selection: Default / Managed) …
Wed-01:00:12> Windows Update: Establishing connection…
Wed-01:00:11> Windows Update: Initializing…
Wed-01:00:11> Windows Update: Queued…
Wed-01:00:10> Scheduled Task: Initiating ‘Download and install updates + reboot if required’ – Wednesday – 02/10/16 – 01:00.
Fri-00:43:44> host2.xxxxxxxx.com ONLINE
Fri-00:42:52> host2.xxxxxxxx.com OFFLINE
Fri-00:39:24> Reboot/Shutdown: Reboot initiated successfully.
Fri-00:39:23> Reboot/Shutdown: Attempting to initiate reboot…
Fri-00:39:22> Windows Update: Reboot Required. Overall Installation Result: Succeeded
Thu-23:23:51> Windows Update: Executing BatchPatchRemoteAgent.exe…
Thu-23:23:50> Windows Update: Attempting to initiate Windows Update (Action: Download and install updates. Server selection: Default / Managed) …
Thu-23:23:50> Windows Update: Establishing connection…
Thu-23:23:50> Windows Update: Initializing…
Thu-23:23:50> Windows Update: Queued… (Download and install updates + reboot if required)
Wed-03:00:20> Windows Update: Attempting to initiate Windows Update (Action: Download and install updates. Server selection: Default / Managed) …
Wed-03:00:19> Windows Update: Establishing connection…
Wed-03:00:19> Windows Update: Initializing…
Wed-03:00:15> Windows Update: Queued…
Wed-03:00:15> Scheduled Task: Initiating ‘Download and install updates + reboot if required’ – Wednesday – 02/10/16 – 03:00.
March 10, 2016 at 5:17 pm #11177dougModeratorThanks for sharing. It’s unclear to me what might have happened here. We do not currently have any other reports of similar problems, and I’m not able to reproduce any similar issue. That said, it might be hard to determine exactly what conditions are required to produce the problem. Please let me know if it happens again.
Was this scheduled task loaded from a pre-existing .bps file that you loaded up on Tuesday? Or on Tuesday did you manually set the schedules up from scratch to run Wed at 01:00? If it came from a .bps file and if you have that .bps file still (without having saved over it), then if possible I would want to see that original .bps (sent to me as email attachment, pls). Let me know.
Thanks,
Doug
March 10, 2016 at 7:07 pm #11178Magnus KnightParticipantI’ve created these bps files from scratch. I created them last month before I ran my February jobs. I can send you the bps files if you like. If you do want them, please inform me of the email I should send them to.
I’m going to be out of the office for the next week and a half, but when I get back, I’ll schedule the jobs to run then and see what happens. Would there be anything beneficial to do before the jobs run, like some type of log capturing?
Thanks for helping me with this!
March 10, 2016 at 7:15 pm #11179dougModeratorI just emailed you.
Thanks!
Also, I would strongly encourage you to test out the scheduler in advance of patching by just setting up a bogus test job to a non-existent computer. You can schedule the job for a couple minutes in the future and then just watch it execute. Obviously it will fail because the target computer won’t exist, but you will then at least be able to confirm that the task is being executed in the first place, as opposed to just somehow not even getting executed.
-Doug
-
AuthorPosts
- You must be logged in to reply to this topic.