Agent Exit Codes Reference

Modified on Mon, 13 Jul at 3:12 AM

Summary

This article provides a reference for agent exit codes, reasons for failures, and recommended resolutions during agent operations such as initialization, dry run, and uninstall processes.


Problem

During agent installation, initialization, dry run, or uninstallation, various exit codes may be reported. Each exit code indicates a specific problem with the agent environment, files, or functions.


Cause

Exit codes occur due to issues such as:

  • Missing agent folders or files.

  • Invalid or corrupt spsanercontroller.dll.

  • Failure during agent dry run or initialization.

  • Loading previous agent versions.


Resolution

Exit CodeReasonResolution / ActionComments
1No active version detectedEnsure an active agent version is installed
2Agent/<active-version>/bin folder missingVerify the folder structure for the active version
3spsanercontroller.dll missing in active versionConfirm DLL exists in bin folder
4Agent/<previous-version>/bin folder missingVerify folder structure for previous version
5spsanercontroller.dll missing in previous versionConfirm DLL exists in previous version folder
6Invalid spsanercontroller.dllReplace the DLL with a valid copy
7Failed to load agent dry run functionEnsure all dependencies are available
8Agent dry run failedCheck agent logs to identify issues
9Agent initialization failedVerify installation integrity and system requirements
10Agent loaded with previous versionUpdate to the latest agent version if required
11(AgentUninstall) No active version detectedVerify agent installation before uninstall
12(AgentUninstall) 2Check folder structure of active version
13(AgentUninstall) 3Check DLL file existence
14(AgentUninstall) 4Verify previous version folder structure
15(AgentUninstall) 5Confirm previous version DLL file
16(AgentUninstall) 6Replace invalid DLL
17(AgentUninstall) 7Ensure dry run function can be loaded
18(AgentDryRun) 4Verify previous version folder for dry run
19(AgentDryRun) 5Confirm previous version DLL file for dry run
20(AgentDryRun) 6Replace invalid DLL for dry run
21(AgentDryRun) 7Ensure dry run function loads successfully

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article