getting and error CGI process is shutting down unexpectedly - Please helpRSS

4 replies

Last post Feb 11, 2016 11:44 PM by Sachin Aiyappa

  • getting and error CGI process is shutting down unexpectedly - Please help

    Feb 10, 2016 05:31 AM|Sachin Aiyappa|LINK

    Hi All,

    Configured the cgi-bin and geting the error HTTP Error 502.2 - Bad Gateway The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are "".

    • The CGI process was shut down or terminated unexpectedly before it finished processing the request.
    • The CGI process has a flaw and does not return a complete set of HTTP header

    How do i debug 

    Detailed Error Information:

    <div id="x_x_details-left">
    Module    CgiModule
    Notification    ExecuteRequestHandler
    Handler   Listener
    Error Code    0xc0000005
    </div>

    cgi iis fastcgi windows2012 iis8

  • Re: getting and error CGI process is shutting down unexpectedly - Please help

    Feb 10, 2016 10:52 AM|terridonahue|LINK

    Are you able to run php.exe --version from the command line and get a response? If that does not work, it should point you in the correct direction to resolve the issue. I have seen similar errors when upgrading versions of php because of missing underlying dlls.

    Terri Donahue
    Microsoft MVP ASPNET/IIS

    Please 'Mark as Answer' if this post helps you.
  • Re: getting and error CGI process is shutting down unexpectedly - Please help

    Feb 10, 2016 12:24 PM|Sachin Aiyappa|LINK

    Thanks Terri,

    The application which i am configuring is not php. this is the application developed by VB script, and yes i did register all the dll's which is required 

    I do see the application is working on the other box with the same settings and same configuration. I have compared all the settings and CGI settings and did re-configure  still i get the same error.

    headers cgi iis windows2012 iis8

  • Re: getting and error CGI process is shutting down unexpectedly - Please help

    Feb 11, 2016 08:17 PM|Jean Sun|LINK

    Hi Sachin,

    This problem occurs because the CGI process terminates unexpected before the CGI process sends a response back to IIS.

    You can find how to troubleshoot this problem in the following link.

    http://www.iis.net/learn/troubleshoot/diagnosing-http-errors/troubleshooting-http-5022-bad-gateway-error-in-cgi-applications

    Best Regards,

    Jean

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
  • Re: getting and error CGI process is shutting down unexpectedly - Please help

    Feb 11, 2016 11:44 PM|Sachin Aiyappa|LINK

    Thanks Jean,

    I will try to set up Microsoft Network Monitor and trace the error will update once i have the result.

    IIS7 cgi fastcgi windows2012 iis8