Windows Upgrade Assistant - Run Now and Schedule not working

Support forums for the Habitat Automate plugin
ShawnSwitzer
Posts: 11
Joined: Fri May 15, 2020 5:48 pm
4

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

Post 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.

User avatar
Cubert
Posts: 2582
Joined: Tue Dec 29, 2015 7:57 pm
9
Contact:

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

Post 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)

ShawnSwitzer
Posts: 11
Joined: Fri May 15, 2020 5:48 pm
4

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

Post 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

ShawnSwitzer
Posts: 11
Joined: Fri May 15, 2020 5:48 pm
4

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

Post by ShawnSwitzer »

Scratch that,

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

User avatar
Cubert
Posts: 2582
Joined: Tue Dec 29, 2015 7:57 pm
9
Contact:

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

Post by Cubert »

That's ConnectWise Automate for you!

Post Reply

Return to “Habitat”