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.
Windows Upgrade Assistant - Run Now and Schedule not working
-
- Posts: 11
- Joined: Fri May 15, 2020 5:48 pm
- 4
Re: Windows Upgrade Assistant - Run Now and Schedule not working
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
SQL query #1
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.
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
Logged if agents found with SQl query #1Habitat Operations (Windows Update Assistant) Service Disabled.
Habitat Windows Updates Operations starting.
SQL query #1
Code: Select all
SELECT * FROM plugin_p4a_habitat_win10upgrades_agents WHERE date(`Schedule`) = curdate();
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)
-
- Posts: 11
- Joined: Fri May 15, 2020 5:48 pm
- 4
Re: Windows Upgrade Assistant - Run Now and Schedule not working
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
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
-
- Posts: 11
- Joined: Fri May 15, 2020 5:48 pm
- 4
Re: Windows Upgrade Assistant - Run Now and Schedule not working
Scratch that,
It seems to be working suddenly on my system, I'm not sure what changed or why.
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
That's ConnectWise Automate for you!