When performing a Centralized Agent Upgrade (CAU) for a Windows Java-based Agent, the following symptoms occur:
jre.zip) is successfully sent to the Agent host.bin/jre directory.jre.zip package allows the Agent to start successfully.This behavior is caused by a software defect (DE191267) in the Agent launcher’s handling of PowerShell commands.
The deleteDirectory method in the launcher utilizes a PowerShell command to remove the existing JRE directory before unpacking the new one. However, the directory path is concatenated as a raw string without single quotes. If the Agent's installation path contains spaces (for example, C:\Program Files\Automic\Agent), the PowerShell command fails to parse the path, causing the deletion and the subsequent upgrade process to stall.
This issue is scheduled to be resolved in the following versions:
To resolve the issue, upgrade the Automation Engine and the CAU target packages to the versions listed above once they are available.
If an immediate upgrade to the fixed version is not possible, use one of the following workarounds:
Manual Intervention: After the CAU process stops the Agent, manually extract the jre.zip file located in the Agent's bin folder into the bin/jre directory and restart the Agent service.
Install to a Path Without Spaces: Reinstall the Windows Agent in a directory path that does not contain spaces (e.g., C:\Automic\Agents\Windows\). The CAU process will function correctly in environments where the path does not require quoting for PowerShell.