modxbot / migrate

A testground for migrating issues and other such fun
0 stars 0 forks source link

Blank Manager from corrupted cache Revisited #9667

Open webandflow opened 11 years ago

webandflow commented 11 years ago

webandflow created Redmine issue ID 9667

This is very similar to Bug 7532, but still happening on a new install of 2.2.6.

Similar to 7532, a corrupted cache file (in this case: resource.cache.php in ../lexicon/en/core) resulted in "white screening" throughout the entire manager. Immediately before, I had saved a TV that I had created before and attempted to load another that I had needed to edit.

Since I couldn't actually access the error log, I found the file. The latest entry read:

[2013-03-19 11:56:10](ERROR @ /connectors/layout/modx.config.js.php) Error caching lexicon topic lexicon/en/core/resource

Removing resource.cache.php resulted in the manager working correctly.

As I've been working with 2.2.6 for the past few days, this has happened 5-6 times.

I had posted a similar bug some time ago - bug 4728. In the same way this time, the cache file seemed to have been written in such a way that the last half of the file appeared first and the first half of the file appended to the end. See line 58 of the attached file.

opengeek commented 11 years ago

opengeek submitted:

Are you still experiencing this problem?

modxbot commented 11 years ago

felonius submitted:

\ SEE THE UPDATES BELOW. I've managed to reproduce the incorrectly written resource.cache.php file **

I'm posting this here because this is still a MAJOR issue for our MODX install, and looking through the forums has been a pervasive issue for Revo for a number of users.

I'm consistently seeing errors like the following:

[2013-10-11 14:55:07](ERROR @ /connectors/resource/index.php) Error caching lexicon topic lexicon/en/core/default

[2013-10-11 14:55:11](ERROR @ /connectors/system/settings.php) Error caching lexicon topic lexicon/en/core/setting

[2013-10-23 09:28:07](ERROR @ /connectors/lang.js.php) Error caching lexicon topic lexicon/en/core/resource

[2013-10-23 15:05:16](ERROR @ /connectors/element/propertyset.php) Error caching action map mgr/actions

[2013-10-24 14:49:41](ERROR @ /connectors/resource/locks.php) Error caching lexicon topic lexicon/en/core/default

[2013-10-24 15:41:36](ERROR @ /connectors/layout/modx.config.js.php) Error caching lexicon topic lexicon/en/core/resource

Our system:

Revolution 2.2.8-pl Traditional Gentoo 2.6.34-r6 MySQL 5.1.56 PHP Version 5.3.27-pl0-gentoo PHP memory limit is set to 128 Max Execution Time 120

We are running a load-balanced configuration for the Web servers, but the MODX instance is only connected to one database.

For now I've completely disabled lexicon caching to see if it stops this problem. We don't have any intention of using internationalization features in the near future, so if disabling the lexicon cache makes things more stable we're willing to take the performance hit in the manager, but I want to reiterate that this is a real issue.

modxbot commented 11 years ago

felonius submitted:

Update ---

After disabling the following system settings:

the issue has disappeared in entirely. Have not seen a single error in the manager, or in the site front end of any kind for over five days, and the error log has gone almost completely silent. I can go an entire day or more without seeing a single system error with those three settings disabled.

Yesterday as a test I re-enabled those settings. Within 30 minutes I started seeing errors in the log, and the broken manager / 502 / 404 / invalid token errors.

modxbot commented 11 years ago

felonius submitted:

YET Another Update -- I've managed to reproduce the problem with the corrupt resource.cache.php file.

I'm attaching another sample of a corrupted cache file.

In my case, the file simply failed to finish writing. The last line in the file, 96, does not have a closed single quote or comma, and there is not a parentheses or semicolon to close the array.