We're running a Magento site, EE 1.14.1 and are having seemingly random problems with the site going down because all of the assets fail to load and the site reverts from our theme to the default enterprise theme (!!) -- all of our customized layout changes in our theme are not applied and the asset paths revert back to the default paths. The admin panel, similarly is unstyled and unusable.
Interestingly, when I look at the raw source of the page when the site is down, not only do the paths revert back to the default paths, but they are also missing the initial {skin|design|js} path, e.g:
<link rel="stylesheet" type="text/css" href="/frontend/enterprise/default/css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" href="/frontend/enterprise/default/css/widgets.css" media="all" />
<link rel="stylesheet" type="text/css" href="/frontend/enterprise/default/aw_blog/css/style.css" media="all" />
<link rel="stylesheet" type="text/css" href="/frontend/enterprise/default/css/print.css" media="print" />
...
<script type="text/javascript" src="/mage/cookies.js"></script>
Furthermore, when the site is operating correctly, we have all of our assets minified and served from CloudFront. At first, I thought this may be the result of a CloudFront hiccup, but I don't think that this is the case.
We're also using Redis for FPC. Also, I can see the "hole punch" tags in the raw source when loading the page:
<!--{GLOBAL_MESSAGES_aae3749ba9c2e308ffa9c240ac185959}--><!--/{GLOBAL_MESSAGES_aae3749ba9c2e308ffa9c240ac185959}-->
I have temporarily disabled CloudFront and am serving all assets from our server to see if that will address the issue. My next guess would be something with Redis that is causing the problem. Clearing our Redis cache invariably solves the problem, but it keeps recurring and never at the same time, but about once every day or so
I'm believe this has to do with applying the October 2015 SUPEE-6788 patch. We did not have this problem prior to applying this patch.
Has anyone experienced something similar or have ideas on how to best debug this problem? I'm kind of stumped - it's almost as if Magento completely throws out the configuration for this store.
Update 12/8/2015
Over the past couple of weeks, I have disabled Redis for the config cache and have been using file based caching. This has not fixed the problem. I also created a little observer to log all cache flushes in an admin file.
Thanks to @Persata and @Luke Rodgers's suggestions below (see comments), I was able to get a stack trace this afternoon - as they noted, it seems to occur shortly (anywhere from a second to 30 minutes) after a full page or block cache flush -- the result is a malformed configuration cache file. Thanks to Luke's patch that prevents the cache from being saved, it prevented the site from going down. Here's the trace:
/includes/src/__default.php(21686): Mage_Core_Model_Cache->save('<admin><design>...', 'config_global_s...', Array, NULL)
#1 /includes/src/__default.php(23473): Mage_Core_Model_App->saveCache('<admin><design>...', 'config_global_s...', Array, NULL)
#2 /includes/src/__default.php(23395): Mage_Core_Model_Config->_saveCache('<admin><design>...', 'config_global_s...', Array, NULL)
#3 /includes/src/__default.php(20960): Mage_Core_Model_Config->saveCache()
#4 /includes/src/__default.php(20882): Mage_Core_Model_App->_initModules()
#5 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
#6 /index.php(87): Mage::run('', 'store')
#7 {main}
Unfortunately, I don't have the full output of the configuration that it is attempting to save but will modify my code accordingly. Interestingly, the no issues for over a week (with numerous cache flushes) before getting the trace this afternoon. Traffic was a little bit higher during this time, but not astronomical.