Wednesday, June 1, 2011

Re: Corrupted app/tmp/cache/views/ Files

I've been experiencing this issue on two sites I have in production.
They'll randomly cause only white pages to appear, I'm running version
1.2.7 in both sites, and they're both running on debian. This issue
seems to come out of the blue, and a simple deleting of the cache
files solves it. I'd love to get to the bottom of this as it seems the
only way I find out is when the clients frantically call me.

Thanks!

On Apr 19, 6:30 am, luke BAKING barker <lukebar...@gmail.com> wrote:
> Hey Dwayne did you get this resolved or find out why? I am having a
> similar issue with some cake sites. And using File caching - default
> as defined in the core.php. I am only caching some actions, in the
> controller.
>
> On Mar 15, 8:57 pm, Dwayne <dwayne.kristjan...@gmail.com> wrote:
>
>
>
>
>
>
>
> > I've run into the followingproblemsporadically on different sites we
> > have running on top of Cake: A client will report in that some page or
> > other isn't loading, when it's examined the page will be a blank
> > screen. Turning on debug will give a PHP syntax error in the cachedfilein app/tmp/cache/views/. It appears that thefilewas not
> > completely written to disk, and therefore is invalid. Deleting thatfilefixes theproblem.
>
> > I'm not sure how these files are becoming corrupted, though. Theproblemseems mostly random, but it is tied in to server load. When
> > the server is heavily loaded this will happen more frequently. Today a
> > client reported aproblemagain. The cachedfilehad been created at
> > 2:25AM, but there were records in the DB created closer to noon that
> > couldn't have been created if that page were broken.
>
> > Some additional details: the sites that have thisproblemare running
> > a custom CMS we've written on top of Cake. This makes use of a
> > modified version requestAction() to load parts of a page. I'm not sure
> > if that could have an effect or not. Thecachefiles generated are
> > enormous as well, so scanning through them to see how they work hasn't
> > done me much good. I don't know if that's typical of Cake or specific
> > to our CMS.
>
> > Has anyone else experienced aproblemlike this? Searching for
> > "corruptedcache" in this group doesn't return anything that seems
> > directly related, nor does searching for "cakephp corruptedcache" in
> > google. I'm still a bit unclear on exactly how Cake's caching works
> > under the hood, but at a surface level the caching works except for
> > when the files themselves are busted.
>
> > Any ideas on how to prevent or detect this? Ideally I'd rather this
> > didn't happen, but if I can at least prevent things from needing a
> > user to contact our client that a page is down and then have the
> > client contact me that would be a significant improvement.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: