C4A Build 3.0.0.43 released

Support and questions for using and managing Chocolatey NuGet inside of Labtech
Post Reply
User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

C4A Build 3.0.0.43 released

Post by Cubert »

Quick download available here:


https://delivery.shopifyapps.com/-/de21 ... 9f4d1a574e


We have released build 3.0.0.43 today

We have added in a new control variable to assist in setting the Excessive Running Commands test when running automation to do framework installs, App installs and App update. To view the properties for C4A run the following SQL

Code: Select all

SELECT * FROM plugin_p4l_chocolatey_properties;

Should Produce the following:


Capture.PNG
Capture.PNG (6.3 KiB) Viewed 3602 times


The setting is called EXCESSIVECMDS with a default value of 3. To adjust value run the following SQL command

Code: Select all

REPLACE INTO plugin_p4l_chocolatey_properties(`Name`,`Value`) Values('EXCESSIVECMDS','5');
This will set the EXCESSIVECMDS value to 5. You can set it any where from 0 to 99 but 99 would be really excessive!

You will now see the Automation log on the Automate server reporting when skipping agents who exceed the excessive commands setting.
Skipping applications installs for agentID [JTI-W10PC02] To many commands currently running [5]:::

We have also added to the Automation Script functions for framework installs that if we are in a install event to remove any old Chocolatey directory before install attempt. Should help reduce install failures do to remints of elder installs of chocolatey.

We have added to the Automation Script functions for App installs and App Updates a loop sleeper which slows down the install and or updates of multiple applications to help in preventing public repo lockout for excessive connections from location. We added a control in the Global Manager to set the number of seconds the script is to sleep between every (5) application installs or updates. This control changes the LOOPSLEEPCOUNT property value in the "plugin_p4l_chocolatey_properties" table.


This is the first half of major update set to improve application delivery when on the public repo. Anyone using private repos or using Chocolatey licensing will not be affected by public repo lockouts.

The next update will be out soon and will be adding a new scheduling function and staggering of Automation across agents per Client which will further assist in preventing public repo lockout by staggering installs and updates across the agents of a client so not everyone attempts access to public repo at the same time. This will have a control setting to adjust as needed. The update will also allow for weekly and monthly updates instead of daily install and updates as an optional setting per client. The default Automation will still be daily.
Top

mmoyse
Posts: 38
Joined: Tue May 25, 2021 9:28 am
2

Re: C4A Build 3.0.0.43 released

Post by mmoyse »

Is the Agent Offline/Online logic reversed or am I misunderstanding the log entry?

An agent that is online in Automate has this

Code: Select all

Skipping Exectuing Install commands on agent ID [745] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
Whilst an agent that is offline in Automate has this

Code: Select all

Skipping Exectuing Install commands on agent ID [3070] Command = [Install] Agent offline [No] excessive commands [0] currently running:::

mmoyse
Posts: 38
Joined: Tue May 25, 2021 9:28 am
2

Re: C4A Build 3.0.0.43 released

Post by mmoyse »

So this is what I'm seeing in the logs today. The agent has a working chocolatey install which I installed this morning using my own script as the plugin wasn't doing anything to fix the issue over the weekend (This machine is on 24x7)

When I look on the agent there are no commands executed so the apps are not installing.

I'm guessing it's the excessive commands that's blocking it? Surely these should just clear down after a while otherwise it's never going to run?

Code: Select all

Search "1030" (18 hits in 1 file of 1 searched)
  C:\Program Files\LabTech\Logs\Plugin_ChocolateyForAutomate.txtold.txt (18 hits)
	Line 402: LTAgent  v210.82	 - 6/14/2021 11:55:02 AM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 416: LTAgent  v210.82	 - 6/14/2021 11:55:02 AM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: [IAW] Agent ID [1030] is active and not supended, setting command to install application.:::
	Line 638: LTAgent  v210.82	 - 6/14/2021 12:02:11 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 651: LTAgent  v210.82	 - 6/14/2021 12:02:11 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 873: LTAgent  v210.82	 - 6/14/2021 12:09:05 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 878: LTAgent  v210.82	 - 6/14/2021 12:09:05 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1044: LTAgent  v210.82	 - 6/14/2021 12:15:47 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1049: LTAgent  v210.82	 - 6/14/2021 12:15:47 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1215: LTAgent  v210.82	 - 6/14/2021 12:22:29 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1220: LTAgent  v210.82	 - 6/14/2021 12:22:29 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1386: LTAgent  v210.82	 - 6/14/2021 12:29:28 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1391: LTAgent  v210.82	 - 6/14/2021 12:29:28 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1557: LTAgent  v210.82	 - 6/14/2021 12:36:13 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1562: LTAgent  v210.82	 - 6/14/2021 12:36:13 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1728: LTAgent  v210.82	 - 6/14/2021 12:42:57 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1733: LTAgent  v210.82	 - 6/14/2021 12:42:57 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [Yes] excessive commands [4] currently running:::
	Line 1899: LTAgent  v210.82	 - 6/14/2021 12:49:41 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [No] excessive commands [4] currently running:::
	Line 1904: LTAgent  v210.82	 - 6/14/2021 12:49:41 PM	 - Plugin ChocolateyForAutomate, Version=3.0.0.43, Culture=neutral, PublicKeyToken=null: Skipping Exectuing Install commands on agent ID [1030] Command = [Install] Agent offline [No] excessive commands [4] currently running:::

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: C4A Build 3.0.0.43 released

Post by Cubert »

The Agent offline is a typo, it should be agents online... So just FYI, we will fix that in next release.

There is a properties in the database (EXCESSIVECMDS) that allows you to toggle how many commands can be running before we skip for excessive commands. The default is 3, you can set this to 5 and it should schedule out scripts as needed.

Capture.PNG
Capture.PNG (6.3 KiB) Viewed 3501 times

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: C4A Build 3.0.0.43 released

Post by Cubert »

Here is SQL to increase EXCESSIVECMDS value to 5

Code: Select all

REPLACE INTO plugin_p4l_chocolatey_properties (`Name`,`Value`) Values ('EXCESSIVECMDS','5');

Post Reply

Return to “Chocolatey For Labtech”