Page 3 of 3

Re: Windows Upgrade Assistant - Run Now and Schedule not working

Posted: Mon Sep 21, 2020 3:04 pm
by ShawnSwitzer
It's the scheduling that is failing.

I can see no evidence of the Habitat OS Upgrade script in the agent logs.

The Habitat App Manage Maintenance scripts for the 3rd party updates are being scheduled properly, however. I'm not sure if that uses different scheduler code than the OS upgrade module.

Re: Windows Upgrade Assistant - Run Now and Schedule not working

Posted: Tue Sep 22, 2020 8:08 pm
by Cubert
Correct if it was a script issue you would see the Habitat - OS Upgrade Service script scheduled and executing.

So we will assume its in the automation section.

So if we check the servers (LTHost) plugin logs for Habitat we should see something like the following in logs at the 12:00 AM and 12-1:00 PM hours

Logged if disabled
Habitat Operations (Windows Update Assistant) Service Disabled.
Logged if agents found with SQl query #1
Habitat Windows Updates Operations starting.

SQL query #1

Code: Select all

SELECT * FROM plugin_p4a_habitat_win10upgrades_agents WHERE date(`Schedule`) = curdate();
This will let us know that the automation service has launched as designed. Next we see if there are any other related logs for this service. These logs should start with Habitat Operations (Windows Upgrade Scheduler)... if no log input was returned to Habitat plugin log then it exits quietly.

So our next test is to see if logs exist and if not then schedule an agent for the next day and then using SQL Analyzer tool see if you can see it show up in SQL query.


Use the following SQL query to get tomorrows agents that need a windows script schedule. If it returns your agents ID after scheduling a windows update for tomorrow then it should be picking up in the automation when its time to.

Code: Select all

SELECT * FROM plugin_p4a_habitat_win10upgrades_agents WHERE date(`Schedule`) = DATE_ADD(curdate(), INTERVAL 1 DAY)

Re: Windows Upgrade Assistant - Run Now and Schedule not working

Posted: Thu Oct 08, 2020 8:21 pm
by ShawnSwitzer
After looking at these queries, Both return the data they are supposed to,

However, there is still no attempt to actually run the scripts at the scheduled times.
The AttemptDate and AttemptLog entries on these agents remains null

The scheduler does not seem to be running

Re: Windows Upgrade Assistant - Run Now and Schedule not working

Posted: Fri Oct 09, 2020 6:30 pm
by ShawnSwitzer
Scratch that,

It seems to be working suddenly on my system, I'm not sure what changed or why.

Re: Windows Upgrade Assistant - Run Now and Schedule not working

Posted: Thu Oct 15, 2020 1:33 pm
by Cubert
That's ConnectWise Automate for you!