AutoSys Workload Automation

Expand all | Collapse all

Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

  • 1.  Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 07:32 AM

    Hi GM!! ,

    Did any one come across job failure with be low error on R11.0 agent on windows 2008 server ?

    WIN32 Function "CreateProcess()" failed for command: ["C:\ProgramData\GRS2ODSCopy\GRSODSFileCopy.cmd"

     

    RESOURCE      04/29/2015 07:20:45   15  PD  04/29/2015 07:20:47

        <Rescheduled by auto_remote, WIN32 Function "CreateProcess()" failed! (5)>

     

    We see that other checkout jobs are running fine.

    Please look into it and suggest how to resolve the issue. Thanks.



  • 2.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 08:18 AM

    Please try the following as command attribute in job:

    cmd /c C:\ProgramData\GRS2ODSCopy\GRSODSFileCopy.cmd



  • 3.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 08:24 AM

    its probably a file association issue.

    start or exec in front of it.



  • 4.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 09:56 AM

    Hi Steve,

     

    Job is executing with start in front of the command but not with exec. However original command is not getting executed. Please let me know if we have any other possibilities. Thanks.

     

    Sreeni



  • 5.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 10:28 AM

    Are there std_out_file & std_err_file attributes defined for the job? If so, any errors or messages in the logs?

     

    Mark Hanson

    Principal Support Engineer

    Workload Automation

    CA Technologies



  • 6.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 11:07 AM

    Hi Mark,

     

    Everything is set fine but job is not getting executed. I see error “error "WIN32 Function "CreateProcess()" failed on R11.0 agent” in auto_remote log file. Any help greatly appreciated. Thanks.

     

    Sreeni



  • 7.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 11:30 AM

    you said that other jobs can run correct? what kind of call is cmd?

    is it a csript or something? several things can cause this error

    permissions, too many open processes, or the wrong command launch.

    script command

    perl command

     

    etc etc etc.



  • 8.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 12:46 PM

    Was the Autosys agent service started with administrator permissions?

     

    Does the job owner have the below permissions on the target agent/server?

     

    - Logon As A Service

    - Logon As A Batch Job

    - Log On Locally

    - Act As A Part Of The Operating System

    - Replace A Process Level Token

    - Increase Quota

    - Rights to the command/script/batch executed

    - Execute permissions on %systemroot%\system32\cmd.exe

     

    If the account does not have above permissions, then it should be updated. Alternatively it can be added to the local administrator’s group if that is permissible in your shop.

     

    Lisa



  • 9.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 30, 2015 03:19 AM

    Hi Steve,

     

    The command is simple copy command. Only one line. Thanks.

     

    Sreeni



  • 10.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 05:13 PM

    Hi Sreeni,

     

    If this is still a problem, please open a case with CA Support so we can dig in and get this resolved.

    Feel free to reference this Communities thread in the case notes.

     

    Thanks,

     

    Mark Hanson

    Principal Support Engineer

    Workload Automation

    CA Technologies



  • 11.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 10:00 AM

    Hi Chandru,

     

    Unable to update job definition with below command you provided. Thanks.

     

    cmd /c C:\ProgramData\GRS2ODSCopy\GRSODSFileCopy.cmd

    Invalid attribute name for : c

     

     

    Sreeni



  • 12.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 10:15 AM

    c\:\

     

    this is autosys. colon is a delimiter



  • 13.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 29, 2015 10:19 AM

    Hi Steve,

     

    Already in place but no luck..job is not executing the command .

     

    Sreeni



  • 14.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 30, 2015 04:28 AM

    CreateProcess error 5 is a problem with permission on the machine where the agent is trying to initiate the job.



  • 15.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 30, 2015 05:58 AM

    Hi Antony,

     

    Thanks for your inputs on the issue …could you please send me resolutions steps how we can fix the issue.

     

    Sreeni



  • 16.  Re: Autosys job failing with error "WIN32 Function "CreateProcess()" failed on R11.0 agent

    Posted Apr 30, 2015 08:05 AM

    spiditha

     

    you have just had 4 of us tell you there's a permisisons issue with launching the application. None of us know the restriction on that job. is it calling a powershell? maybe it needs elevated access. Please contact whomever at your firm and have look at what is needed to run that command.

    as good as many of us are, many of our psychic abilities fail at this point ;-)

     

    Good Luck

     

    Steve C.