Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZenCache + PHP 5.6 FASTCGI = Internal Server Error #624

Closed
patdumond opened this issue Nov 25, 2015 · 8 comments
Closed

ZenCache + PHP 5.6 FASTCGI = Internal Server Error #624

patdumond opened this issue Nov 25, 2015 · 8 comments

Comments

@patdumond
Copy link

Reference: https://websharks.zendesk.com/agent/tickets/9600

User reported an Internal Server Error when running ZenCache with PHP 5.6 FASTCGI. User determined the issue was ZenCache and PHP 5.6 FASTCGI using sound troubleshooting techniques (see referenced ticket). Error logs summarized below:

[Mon Nov 23 23:27:57 2015] [error] [client 111.243.22.117] Premature end of script headers: plugins.php, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:31:41 2015] [error] [client 208.113.153.204] Premature end of script headers: wp-cron.php

[Mon Nov 23 23:31:41 2015] [error] [client 111.243.22.117] Premature end of script headers: plugins.php, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:33:33 2015] [error] [client 111.243.22.117] Premature end of script headers: plugins.php, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:33:40 2015] [error] [client 111.243.22.117] Premature end of script headers: index.php

[Mon Nov 23 23:39:00 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:39:01 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:41:47 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Mon Nov 23 23:43:18 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Mon Nov 23 23:43:22 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/update.php?action=upload-plugin

[Mon Nov 23 23:43:26 2015] [error] [client 220.181.108.100] zend_mm_heap corrupted

[Mon Nov 23 23:43:27 2015] [error] [client 220.181.108.119] zend_mm_heap corrupted

[Mon Nov 23 23:44:27 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Mon Nov 23 23:46:10 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Mon Nov 23 23:46:11 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php?plugin_status=all&paged=1&s

[Mon Nov 23 23:47:14 2015] [error] [client 111.243.22.117] zend_mm_heap corrupted, referer: http://www.url4.biz/wp-admin/plugins.php

[Mon Nov 23 23:49:15 2015] [error] [client 111.243.22.117] Premature end of script headers: admin-ajax.php, referer: http://www.url4.biz/wp-admin/plugins.php

[Mon Nov 23 23:50:11 2015] [error] [client 111.243.22.117] Premature end of script headers: plugins.php, referer: http://www.url4.biz/wp-admin/plugins.php
@jaswrks
Copy link

jaswrks commented Nov 25, 2015

ZenCache uses output buffering which can exacerbate problems in some buggy versions of PHP. I'd suggest a review of this thread, followed by attempts to alter the PHP configuration in subtle ways. Or, perhaps upgrading to a slightly newer (or slightly older) version of PHP to see if that resolves this.

Note: I'm not seeing anything in the log that points to a bug in ZenCache, but it does sound like ZenCache being active is increasing the odds of a memory leak in what may already be a problematic PHP configuration.

@raamdev
Copy link
Contributor

raamdev commented Nov 26, 2015

Also reported here (internal ticket): https://websharks.zendesk.com/agent/tickets/9635

@raamdev
Copy link
Contributor

raamdev commented Dec 1, 2015

Also reported here (internal ticket): https://websharks.zendesk.com/agent/tickets/9774 (note that this was with ZenCache Lite v151107)

@jaswrks
Copy link

jaswrks commented Dec 1, 2015

@jaswrks
Copy link

jaswrks commented Dec 2, 2015

Related PHP bug reports that could be the underlying cause of this:





See also: https://bugs.php.net/search.php?cmd=display&search_for=zend_mm_heap&x=0&y=0

@jaswrks
Copy link

jaswrks commented Dec 14, 2015

Another possible PHP bug that could cause this:
https://bugs.php.net/bug.php?id=66799&edit=1

jaswrks pushed a commit to wpsharks/comet-cache-pro that referenced this issue Dec 15, 2015
jaswrks referenced this issue in wpsharks/comet-cache-pro Dec 15, 2015
@raamdev
Copy link
Contributor

raamdev commented Dec 16, 2015

Next Pro Release Changelog:

  • Enhancement: The new default value for "Clear the PHP OPcache Too?" when clearing the cache manually is now disabled. Instead of having this option enabled by default, we automatically invalidate only the advanced-cache.php file in PHP's opcode cache whenever you update your configuration options, which allows ZenCache to function as expected. That was the most important reason for needing to clear the opcode cache in previous versions. Props @jaswsinc. Also props to @MarioKnight and @CotswoldPhoto for helping us narrow this down. See Issue #624.
  • Bug Fix: This release attempts to resolve reports of Error 500 and Internal Server Error issues when running with PHP 5.6 + OPcache. Instead of clearing the entire Opcode cache whenever the plugin options are saved, we only invalidate the advanced-cache.php file, which is rebuilt each time you update your configuration options. Props @jaswsinc. Also props to @MarioKnight and @CotswoldPhoto for helping us narrow this down. See Issue #624.

@raamdev raamdev closed this as completed Dec 16, 2015
@raamdev
Copy link
Contributor

raamdev commented Dec 21, 2015

ZenCache Pro v151220 has been released and includes changes worked on as part of this GitHub Issue. See the release announcement for further details.


This issue will now be locked to further updates. If you have something to add related to this GitHub Issue, please open a new GitHub Issue and reference this one (#624).

@wpsharks wpsharks locked and limited conversation to collaborators Dec 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants