Workload Automation AE job fails immediately with an exit code of 2.

Document ID : KB000013514
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Workload Automation AE jobs fail immediately with an exit code of 2.

No stdout/stderr/agent logs are available.

 

 

Environment:
CA Workload Automation AE - 11.3.xPlatform - ANY
Answer:

Typically a 4001 exit code is a file not found failure.  As a test try providing the full path to your command in your job definition to confirm if that allows the job to run to SUCCESS.  If that does work and you wish to adjust the agent's setting so it would make use of the PATH and look up commands rather than you needing to provide full paths then we would recommend you review the following links:

https://docops.ca.com/ca-workload-automation-agent/11-3/en/administrating/configure-the-agent/configure-the-agent-to-behave-like-legacy-remote-agent

Configure the Agent for Legacy Remote Agent on UNIX

And for even more detail on the agent settings see the Agent implementation guide:

https://support.ca.com/cadocs/0/CA%20Workload%20Automation%20AE%20Release%2011%203%206%20-%20Public%20Access-ENU/Bookshelf_Files/PDF/WA_Agent_for_UNIX_Linux_Windows_Impl_ENU.pdf

If the 4001 error is not resolved by providing the full path please contact CA technical support and be able to provide the agent's log and spool directories for review.