none
'Process Creation Failed" error encountered by our application on HPC compute node

    Question

  • HPC Pack 2012 R2

    On compute node, our application resides in HPCServiceHost.exe would spawn another process (our application process) to do calculation. Occasionally, we get the following error:

    'Process Creation Failed.' (Process ID '0'  ProcessType 'Child'  Error '5'

    Error 5 is access denied error, we couldn't figure out why. We run the same HPC job repeatedly and hit this error sporadically, it could occur on any compute node.

    Does anybody know what could cause this error?

    Thanks!

    Diane

    Tuesday, 20 November 2018 6:07 PM

All replies

  • Hi hu dan,

      how you create the process? What API call you're using and what limits you put when creating the process? And how may cores you have on your compute nodes?


    Qiufang Shi

    Friday, 23 November 2018 7:11 AM
  • Hi Qiufang,

    Here how we create process:

    __try
    {
    if ( CreateProcess (
    NULL,
    (LPSTR) commandLine.c_str(),
    NULL,
    NULL,
    TRUE,
    CREATE_NO_WINDOW,
    NULL,
    NULL,
    &startupInfo,
    (LPPROCESS_INFORMATION) &processInfo))
    {
    retVal = processInfo.dwProcessId;
    if (retVal == ASFW_ANY)
    retVal = cnPROCESS_FAILED;
    }
    }
    __except(EXCEPTION_EXECUTE_HANDLER)
    {
    exceptionCode = GetExceptionCode();
    }
    return retVal;
    }

    There are 12 cores per node.

    Thanks!

    Diane

    Tuesday, 27 November 2018 10:41 PM
  • HI Hu Dan,

      You need to figure out why? For example, whether you're using unc path, and don't have access during process creation. 


    Qiufang Shi

    Wednesday, 28 November 2018 9:20 AM
  • Thank you Quifang!
    Thursday, 29 November 2018 7:47 PM