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

Document ID:  TEC1650198
Last Modified Date:  07/17/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Workload Automation AE

Releases

  • CA Workload Automation AE:Release:11.3

Components

  • CA Workload Automation AE (AutoSys):ATSYS
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.x Platform - 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.

 

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >

Chat with CA

Just give us some brief information and we'll connect you to the right CA ExpertCA sales representative.

Our hours of availability are 8AM - 5PM CST.

All Fields Required

connecting

We're matching your request.

Unfortunately, we can't connect you to an agent. If you are not automatically redirected please click here.

  • {{message.agentProfile.name}} will be helping you today.

    View Profile


  • Transfered to {{message.agentProfile.name}}

    {{message.agentProfile.name}} joined the conversation

    {{message.agentProfile.name}} left the conversation

  • Your chat with {{$storage.chatSession.messages[$index - 1].agentProfile.name}} has ended.
    Thank you for your interest in CA.


    Rate Your Chat Experience.

    {{chat.statusMsg}}

agent is typing