PowerPack Shows Failed Despite Exit Code 0
Problem
Section titled “Problem”A PowerPack installs successfully on a computer, and PowerPack.exe exits with code 0. The
CapaInstaller Console still shows the package as Failed. The same can happen when the
PowerPack exits with 3326.
The problem is intermittent. It isn’t tied to a specific PowerPack, script, or computer, and it can occur in several environments.
When a PowerPack finishes, PowerPack.exe sends the package result to the CapaInstaller agent
(CiBaseAgent). In rare cases, PowerPack.exe exits before the agent has received the result. The
agent then has no record of the successful installation, and the console shows the package as
Failed.
This is a timing issue in the agent. The package itself installed correctly.
Solution
Section titled “Solution”- Confirm that the package installed correctly. Open the package log and check that the script
ended with exit code
0. See Taking a look at all the logfiles. - In the CapaInstaller Console, right-click the package on the unit and select Set to installed. Or select Set to waiting to run the package again.
A later CapaInstaller version fixes the timing issue: the agent confirms that it received the
result, and PowerPack.exe waits for the confirmation before it exits. To check whether a computer
has the fix, right-click the installed package on the unit and select View Logfiles. With the
fix, PowerPackServer.log contains Sent PackageResultAck, and PowerPackClient.log contains
Result acknowledged.
Related
Section titled “Related”- Taking a look at all the logfiles — where PowerPack logs are written and how to view them
- CapaInstaller log files