We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

HTTP 500 errors with Wincache 1.3.4RSS

37 replies

Last post May 04, 2014 05:05 PM by DropPhone

  • HTTP 500 errors with Wincache 1.3.4

    Sep 10, 2012 07:04 PM|reFX Mike|LINK

    Hi, there is patch somebody submitted on php.net: https://bugs.php.net/patch-display.php?bug_id=63002&patch=wincache-1.3.4-500-error&revision=latest This fixes a random 500 error showing up every now and then in Wincache 1.3.4. Please take a look at the patch and perhaps build a new version of Wincache 1.3.4 (1.3.5?) for PHP 5.4. We're using PHP 5.4 with Wincache 1.3.4 on a production-server (2008 R2) and we're having zero problems right now. We've seen these 500 errors popping up randomly a few weeks ago, so the patch would be welcome. Better safe than sorry ;) Regards, Mike

    wincache Extension for php iis7.5 500

  • Re: HTTP 500 errors with Wincache 1.3.4

    Sep 12, 2012 10:53 AM|smithrn|LINK

    This would be great. I've seen those 500 errors as well. Are there any Wincache developers out there that can fix this problem?
  • Re: HTTP 500 errors with Wincache 1.3.4

    Sep 12, 2012 09:04 PM|reFX Mike|LINK

    My intention was for Microsoft to notice, so they would add this patch to their official distribution... If pushes comes to shove, I could build the extension myself and add the patch. I also build a GeoIP version that works with PHP 5.4.x (32-bit), if somebody is interested.
  • Re: HTTP 500 errors with Wincache 1.3.4

    Sep 13, 2012 01:22 PM|yoda-ict|LINK

    Hello Mike, This would be great! Please let us know where to download. Regards, Frans
  • Re: HTTP 500 errors with Wincache 1.3.4

    Sep 13, 2012 01:32 PM|reFX Mike|LINK

    At the moment, I only have the GeoIP for PHP 5.4.x. Did you mean that?
  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    Oct 08, 2012 06:28 PM|DropPhone|LINK

    Thank you for bringing this to our attention.  I'll look into integrating the patch and then running it through our release management chain.  It will take some time to run through our regression test suite.

    Do you have a test script which reliably reproduces the problem?  That would be super helpful.

    Thx!

        --E.

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    Oct 23, 2012 01:56 PM|DropPhone|LINK

    FYI--

    A "development" build that includes the fix has been built and dropped out to SourceForge:

    http://sourceforge.net/projects/wincache/files/development/wincache-1.3.4.1-dev-5.4-nts-vc9-x86.exe/download 

    To differentiate, this version is Wincache 1.3.4.1.

    Thx!

        --E.

    wincache PHP 5.4

  • Re: HTTP 500 errors with Wincache 1.3.4

    Oct 23, 2012 09:34 PM|reFX Mike|LINK

    Sorry about the non-responsiveness. I didn't see your request for a repo. Will you upload a build for PHP 5.4 as well?
  • Re: HTTP 500 errors with Wincache 1.3.4

    Oct 23, 2012 09:42 PM|reFX Mike|LINK

    Sorry for the double-post...
  • Re: HTTP 500 errors with Wincache 1.3.4

    Oct 24, 2012 08:19 AM|smithrn|LINK

    Is your download link the correct version? When I unzip the file it has the same php_wincache.dll dated 04/26/2012 which is the same version from the previous release.
  • Re: HTTP 500 errors with Wincache 1.3.4

    Oct 26, 2012 04:20 PM|reFX Mike|LINK

    Man, I must be tired. Used the wrong download-link. I've compared the binaries and they are different, but the version number it reports (e.g. on the wincache.php output) is still 1.3.4.0 and the modification date is from April. Is this the new version with the fix?
  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    Nov 09, 2012 12:37 PM|DropPhone|LINK

    My apologies; Building the dev package pulled an incorrect binary (from April).  I've rebuilt the package cleanly, and confirmed the updated binary is in the package.

    Sorry for the delay,

        --E.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Nov 14, 2012 09:56 AM|psang_de|LINK

    Sorry, but the download http://sourceforge.net/projects/wincache/files/development/wincache-1.3.4.1-dev-5.4-nts-vc9-x86.exe/download still contains wincache.dll from April :(

    Could you check the download, please?

    Thanks for you work,

    Peter

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    Nov 14, 2012 01:23 PM|DropPhone|LINK

    The timestamp on the extracted file is incorrect; there is an issue with the tool we're using to build the deployment package that is munging the date.  I've hand-verified that the bits up on SourceForge are, in fact, the Oct. 23, 2012 build.

    Thx!

        --E.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Nov 15, 2012 06:29 AM|psang_de|LINK

    Thank you. Then we have another bug in there - this version still dies with an error in Wincache under heavy load.

    Anything I can do helping to track this down?

    Thx,

    /Peter

    Faulting application name: php-cgi.exe, version: 5.4.7.0, time stamp: 0x505102cc

    Faulting module name: php_wincache.dll, version: 1.3.4.1, time stamp: 0x5086f2c0

    Exception code: 0xc0000005

    Fault offset: 0x0000b26e

    Faulting process id: 0x18ac

    Faulting application start time: 0x01cdb7863f8a90de

    Faulting application path: C:\inetpub\PHP\php-cgi.exe

    Faulting module path: C:\inetpub\PHP\ext\php_wincache.dll

    Report Id: 93b8cd58-237c-11e2-ae03-00199957aef0

    *****

    Log Name:      Application Source:        Windows Error Reporting Date:          31.10.2012 18:01:11 Event ID:      1001 Task Category: None Level:         Information Keywords:      Classic User:          N/A Computer:      s15768534 Description: Fault bucket , type 0 Event Name: APPCRASH Response: Not available Cab Id: 0

    Problem signature: P1: php-cgi.exe P2: 5.4.7.0 P3: 505102cc P4: php_wincache.dll P5: 1.3.4.1 P6: 5086f2c0 P7: c0000005 P8: 0000b26e P9: P10:

    Attached files: C:\Windows\Temp\WERB5FC.tmp.appcompat.txt C:\Windows\Temp\WERB8EB.tmp.WERInternalMetadata.xml C:\Windows\Temp\WERB8FC.tmp.hdmp C:\Windows\Temp\WERBC97.tmp.mdmp

    These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_php-cgi.exe_af4d3b63fcf47f73a86aca62dfe32776a6f974b_cab_8100bd6f

    Analysis symbol: Rechecking for solution: 0 Report Id: 9076564c-237c-11e2-ae03-00199957aef0 Report Status: 4 Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">   <System>     <Provider Name="Windows Error Reporting" />     <EventID Qualifiers="0">1001</EventID>     <Level>4</Level>     <Task>0</Task>     <Keywords>0x80000000000000</Keywords>     <TimeCreated SystemTime="2012-10-31T17:01:11.000000000Z" />     <EventRecordID>8969</EventRecordID>     <Channel>Application</Channel>     <Computer>s15768534</Computer>     <Security />   </System>   <EventData>     <Data>     </Data>     <Data>0</Data>     <Data>APPCRASH</Data>     <Data>Not available</Data>     <Data>0</Data>     <Data>php-cgi.exe</Data>     <Data>5.4.7.0</Data>     <Data>505102cc</Data>     <Data>php_wincache.dll</Data>     <Data>1.3.4.1</Data>     <Data>5086f2c0</Data>     <Data>c0000005</Data>     <Data>0000b26e</Data>     <Data>     </Data>     <Data>     </Data>     <Data> C:\Windows\Temp\WERB5FC.tmp.appcompat.txt C:\Windows\Temp\WERB8EB.tmp.WERInternalMetadata.xml C:\Windows\Temp\WERB8FC.tmp.hdmp C:\Windows\Temp\WERBC97.tmp.mdmp</Data>     <Data>C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_php-cgi.exe_af4d3b63fcf47f73a86aca62dfe32776a6f974b_cab_8100bd6f</Data>     <Data>     </Data>     <Data>0</Data>     <Data>9076564c-237c-11e2-ae03-00199957aef0</Data>     <Data>4</Data>   </EventData> </Event>

     

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 19, 2013 07:10 PM|ixodie|LINK

    Tagging along here.  I have been dealing with this error bringing our server down for MONTHS:

    Faulting application name: php-cgi.exe, version: 5.4.8.0, time stamp: 0x507dc70e
    Faulting module name: php_wincache.dll, version: 1.3.4.0, time stamp: 0x4fd7737e
    Exception code: 0xc0000005
    Fault offset: 0x0000fd56
    Faulting process id: 0xda0
    Faulting application start time: 0x01cdf685e224d059
    Faulting application path: C:\Program Files (x86)\PHP\v5.4\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\v5.4\ext\php_wincache.dll
    Report Id: e51acc7e-627b-11e2-87da-bf16a7ab58cb

    Are we saying that the 1.3.4.1 fixes this issue?

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 20, 2013 10:13 AM|festuc|LINK

    We are getting once a week: Error 503 FastCGI pool queue full, and rebooting IIS solve it.

    We have check and it also seems something about wincache.

    Do you also get that error?

    Thanks.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 20, 2013 12:36 PM|ixodie|LINK

    It is either that message or the message about CGI crashing.  You can mitigate the problem you are seeing by increasing the pool size until a fix is found.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 20, 2013 01:29 PM|festuc|LINK

    ixodie

    It is either that message or the message about CGI crashing.  You can mitigate the problem you are seeing by increasing the pool size until a fix is found.

     

    Thanks for the reply. I have the Queue Length set to 1000 and max instances to 8; what will be a suggested value?

     

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 20, 2013 02:10 PM|ixodie|LINK

    I would double the queue length and see if the problem goes away.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 21, 2013 11:05 AM|ixodie|LINK

    OK, I upgraded to 1.3.41 (even though it still says 1.3.4.0) and now we are getting this error simultaneously:

    Faulting application name: php-cgi.exe, version: 5.4.8.0, time stamp: 0x507dc70e
    Faulting module name: MSVCR90.dll, version: 9.0.30729.4940, time stamp: 0x4ca2ef57
    Exception code: 0xc0000005
    Fault offset: 0x00059072
    Faulting process id: 0xa08
    Faulting application start time: 0x01cdf7917d6d0f68
    Faulting application path: C:\Program Files (x86)\PHP\v5.4\php-cgi.exe
    Faulting module path: C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR90.dll
    Report Id: c5bcb1dd-6384-11e2-87da-bf16a7ab58cb

    Note the new module name.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Jan 31, 2013 10:26 AM|ixodie|LINK

    Our server is failing a LOT.  We're getting all sorts of errors from IIS:

    Faulting application name: php-cgi.exe, version: 5.4.8.0, time stamp: 0x507dc70e
    Faulting module name: php_wincache.dll, version: 1.3.4.1, time stamp: 0x5086f2c0
    Exception code: 0xc0000005
    Fault offset: 0x00007fa4
    Faulting process id: 0xd70
    Faulting application start time: 0x01cdff5259efe747
    Faulting application path: C:\Program Files (x86)\PHP\v5.4\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\v5.4\ext\php_wincache.dll
    Report Id: 97ad1bc7-6b45-11e2-bfad-fb6cadf76469

    Faulting application name: php-cgi.exe, version: 5.4.8.0, time stamp: 0x507dc70e
    Faulting module name: kernel32.dll, version: 6.1.7601.17932, time stamp: 0x50327671
    Exception code: 0xc0000005
    Fault offset: 0x0001139d
    Faulting process id: 0xc98
    Faulting application start time: 0x01cdff23a5a17347
    Faulting application path: C:\Program Files (x86)\PHP\v5.4\php-cgi.exe
    Faulting module path: C:\Windows\syswow64\kernel32.dll
    Report Id: e352c0e7-6b16-11e2-bfad-fb6cadf76469

  • Re: HTTP 500 errors with Wincache 1.3.4

    Feb 02, 2013 11:31 AM|laurin1|LINK

    Does anyone have any experience using Wincache in that path without issues? We always keep PHP in a paths without spaces (we prefer c:\PHP.) Probably doesn't matter, but that's one thing different from our configuration.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Mar 07, 2013 05:19 PM|xgorosito|LINK

    Guys this still happens on version 1.3.4.1, the same error.. code 0xc0000005, all the same. Is there any nightly build that fixes the problem?

  • Re: HTTP 500 errors with Wincache 1.3.4

    Mar 07, 2013 06:24 PM|ixodie|LINK

    I gave up and moved to Ubuntu w/ APC and Memcache.

  • Re: HTTP 500 errors with Wincache 1.3.4

    Apr 30, 2013 11:33 AM|iisduane|LINK

    Wincache crashing frequently for me:

    Faulting application name: php-cgi.exe, version: 5.3.3.0, time stamp: 0x4c474c56
    Faulting module name: php_wincache.dll, version: 1.3.4.1, time stamp: 0x5086cce3
    Exception code: 0xc0000005
    Fault offset: 0x000078b0
    Faulting process id: 0x997c
    Faulting application start time: 0x01ce45a32e249492
    Faulting application path: C:\PHP\php-cgi.exe
    Faulting module path: C:\PHP\ext\php_wincache.dll
    Report Id: 6cc3ebce-b196-11e2-87e3-00259005cdb7

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    Nov 11, 2013 04:25 PM|DropPhone|LINK

    On a previous post, someone had the *.hdmp and *.mdmp files associated with the crash.  If you can capture these files, please contact me offline.  Once I get a call stack out of those files, I can investigate the cause of the errors.

    If you have a minimal script that can lead to a repro of this, that would be ideal.

    Thx!

        --E.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 09:19 AM|Partridge|LINK

    Keep getting this. Very problematic

    Faulting application name: php-cgi.exe, version: 5.5.12.0, time stamp: 0x53613f27
    Faulting module name: php_wincache.dll, version: 1.3.5.3, time stamp: 0x533aee9f
    Exception code: 0xc0000005
    Fault offset: 0x00006caf
    Faulting process id: 0x189c
    Faulting application start time: 0x01cf653cc2b726b5
    Faulting application path: C:\Program Files (x86)\PHP\v5.5.12\php-cgi.exe
    Faulting module path: C:\Program Files (x86)\PHP\v5.5.12\ext\php_wincache.dll
    Report Id: c42e959b-d130-11e3-b46d-b39385446c29

    Where can we find dump files?

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:04 PM|DropPhone|LINK

    Yeah, this is the crash in php_wincache!free_memory.  I've been unable to repro this, so if you can set up the aedebug automatic crash dump stuff, that would be awesome! 

    The thing that makes this one nasty is that when the process AVs, it takes the write lock with it, causing all other instances of php-cgi.exe to eventually lock up.

    Your only recovery is to shut down all the shared w3wp.exe instances and restart the site.  It's on my plate to try and make this a bit more bullet-proof, but it is, as they say, a hard computer science problem.  :)

    Thx!

        --E.

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:09 PM|DropPhone|LINK

    Partridge

    Where can we find dump files?

    From another thread:

    DropPhone

    automatic crash dump (http://blogs.microsoft.co.il/sasha/2009/10/19/configuring-automatic-crash-dumps/ )

    You'll want a DumpType = 2.

    Thx!

        --E.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:13 PM|Partridge|LINK

    We have to turn wincache off and cannot turn it back on as we need the page to be up, and I currently don't have any time trying to reproduce this on another machine. But we hope a fix can be found.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:30 PM|reFX Mike|LINK

    Did you disable the op-code cache for WinCache? It sounds to me, since you can live with WinCache being switched off, that you're not actually using the user-cache, but rather want the speed improvements the op-code cache provides. In that case, simply enable the op-code cache bundled with PHP 5.5.

    I think the op-code cache functions should be completely removed from WinCache and it should focus only on sessions, user-variables, paths etc. = data-caching.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:37 PM|Partridge|LINK

    We use it mainly for user cache. The alternative is a slow website (in some parts) or a site that is down.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 03:48 PM|reFX Mike|LINK

    How many hits to you get in an average day? We use Wincache 1.3.5 and PHP 5.5.9 and I've actually only seen 500 Errors very very rarely. I'm just curious. Maybe our website with 20,000 hits per day doens't compare to your traffic.

    Have you considered alternatives like APCu? It's a special built of the APC with the op-code cache removed.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 01, 2014 04:08 PM|Partridge|LINK

    Interesting, not looked into APCu, but read now that it does not support (well) fastcgi?

    I am actually not sure about the traffic, as I have not been involved with the project for about 1 year, just helping with wincache problems now.

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    May 02, 2014 04:19 PM|DropPhone|LINK

    reFX Mike

    Did you disable the op-code cache for WinCache? It sounds to me, since you can live with WinCache being switched off, that you're not actually using the user-cache, but rather want the speed improvements the op-code cache provides. In that case, simply enable the op-code cache bundled with PHP 5.5.

    Excellent point!  Yes, by default, the PHP 5.5 version of WinCache ships with the opcache disabled, and we encourage folks to use the Zend Opcache instead.  See: http://forums.iis.net/post/2056593.aspx for more info about setting up the Zend Opcache in PHP 5.5.

    The user & session caching portions of Wincache should be relatively stable.  We're still looking to improve, so if you do get crash dumps, please let me know!

        --E.

  • Re: HTTP 500 errors with Wincache 1.3.4

    May 02, 2014 06:10 PM|reFX Mike|LINK

    It would be really nice if you could remove the op-code functionality from WinCache altogether (or #IFDEF it out for PHP 5.5+). Basically a data-cache only version, that is a little slimmer/faster.

  • DropPhone DropPhone

    360 Posts

    Microsoft

    Moderator

    Re: HTTP 500 errors with Wincache 1.3.4

    May 04, 2014 05:05 PM|DropPhone|LINK

    reFX Mike

    It would be really nice if you could remove the op-code functionality from WinCache altogether (or #IFDEF it out for PHP 5.5+). Basically a data-cache only version, that is a little slimmer/faster.

    If you set wincache.ocenabled=0, that's the same thing. 

    In fact, for Wincache on PHP 5.5 and up, the ocenabled is defaulted to 0, with the assumption that everyone would move to the Zend Opcache.

    Thx!

         --E.