« Previous Next »

Thread: The wait operation timed out

Last post 09-17-2009 11:03 AM by LucasVanzin. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 09-16-2009, 4:52 PM

    The wait operation timed out

    I'm facing an intermitent problem on a production server. Sometimes fastcgi stops working.

    After I use iisreset, everything seems to work fine. I think it happends only on pools that don't have many PHP sites, so the php-cgi.exe reaches the idle timeout, and when a php site is accesses again, the problem happends.

    Error page:

    FastCGI Error

    The FastCGI Handler was unable to process the request.

    Error Details:

    • The FastCGI process exceeded configured activity timeout
    • Error Number: 258 (0x80070102).
    • Error Description: The wait operation timed out.

    HTTP Error 500 - Server Error.
    Internet Information Services (IIS)

    fcgiext.ini:

    [Types]
    fphp=PHP
    php=PHP

    [PHP]
    ExePath=c:\php\php-cgi.exe
    InstanceMaxRequests=200
    EnvironmentVars=PHP_FCGI_MAX_REQUESTS:200,PHPRC:C:\PHP\
    MaxInstances=0
    FlushNamedPipe=1
    UnhealthyOnQueueFull=1

    I can reproduce this error by killing the php-cgi.exe process of an specific apppool and accessing a php website of this pool, or access a php site an apppool that haven't any php-cgi.exe processes.

    Using sysinternals processxp, I can see the process being spawned, and finished after displaying that error page, when the php page is accessed.

    I use:

    Windows 2003 SP2 32bits
    IIS6.0
    fcgiext 1.5
    PHP 5.2.5

    Hope anyone can help me.

  • 09-16-2009, 7:12 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,351

    Re: The wait operation timed out

    As you noticed, php-cgi.exe is part of the PHP installation, not part of IIS.

    Please understand that FastCGI handler in IIS is a totally different thing from php-cgi.exe.

    Can you post this question to our PHP forum here?

    http://forums.iis.net/1102.aspx

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 09-16-2009, 7:29 PM In reply to

    Re: The wait operation timed out

    Sure, but php-cgi.exe is fine, this problem happends only on websites that uses php by FastCGI Handler. I'm pretty sure the problem is not related to php as it runs fine on websites that have php-cgi.exe mapped directly.

    I'm working on that problem for almost a week. Any help would be appreciated.

    Thanks.

  • 09-16-2009, 7:36 PM In reply to

    Re: The wait operation timed out

    See if this helps

    http://forums.iis.net/t/1154759.aspx

    Thanks,

    Don.

  • 09-16-2009, 8:05 PM In reply to

    Re: The wait operation timed out

    don.raman:

    See if this helps

    http://forums.iis.net/t/1154759.aspx

    Thanks,

    Don.

     

    Thanks Don, but I already tried a bigger timeout. The only difference is that the error page takes more time to apear, even if I try a phpinfo page.

  • 09-16-2009, 8:39 PM In reply to

    Re: The wait operation timed out

    Is your application loading the correct INI file? Where all did you change your activity timeout? Please follow this article http://forums.iis.net/t/1076662.aspx.

    Thanks,

    Don.

  • 09-16-2009, 9:00 PM In reply to

    Re: The wait operation timed out

    don.raman:

    Is your application loading the correct INI file? Where all did you change your activity timeout? Please follow this article http://forums.iis.net/t/1076662.aspx.

    Thanks,

    Don.

     

    Yes, I followed the process start by filemon. And anyway, a phpinfo(); file wasn't supposed to take more than 5 seconds to be processed.

  • 09-17-2009, 12:47 AM In reply to

    Re: The wait operation timed out

    This should get solved by increasing the ActivityTimeout. Can you paste what your fcgiext.ini looks like and where is it located?

    Thanks,

    Don.

  • 09-17-2009, 11:03 AM In reply to

    Re: The wait operation timed out

    don.raman:

    This should get solved by increasing the ActivityTimeout. Can you paste what your fcgiext.ini looks like and where is it located?

    Thanks,

    Don.

     

    My fcgiext.ini is on the first post.

    Please consider ActivityTimeout definition:

    ; ActivityTimeout=n
    ; - Specifies the maximum time, in seconds, that a FastCGI process for this
    ;   application is allowed to run without communicating with IIS.  In practice,
    ;   this timeout is used to detect and shut down 'hung' processes.  If not
    ;   specified, the default value is 30 seconds.

    A phpinfo(); page was supposed to be processed in less than 1 second, and it is processed most of the times, but when the problem happends, the page keeps loading, and after 30 seconds I get the reported error. I tryed rasing it to 300 seconds and I noticed that the only difference is the time the page keeps loading after the reported error. When I change to 300 seconds and recycle the pool, it takes 5 minutes to give me the error.

    So I'm sure my ini is being readed, and the problem have nothing to do with ActivityTimeout.

    Thanks.

Page 1 of 1 (9 items)
Microsoft Communities