Tuesday, August 30, 2011

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

Hey Mike,

I unserialize()'d the files you provided and they all seem to be ok,
however there are no cached views.
Next time you should tar app/tmp/cache/views or app/tmp/cache.
Anyway, there was an issue with locks when using file cache which was
(hopefully) solved only recently,
see
http://cakephp.lighthouseapp.com/projects/42648/tickets/1660-file-cache-unserialize-notice-avoids-execution-of-secured-actions
.

I guess on your dev sites the problem does occur only rarely, because
you are more or less
working alone on your environment, so at the time the cache is
invalidated and refilled then there is no concurrency.
If you want to reproduce the error you should empty your cache, and let
10 or more processes request a cached action (e.g.
use a benchmark tool like ab).

Am 30.08.2011 10:41, schrieb mikeottinger:
> I've just had this happen again, actually on a dev site which allowed
> me a little more time to collect files before clearing the files. I
> hopped up on the server and tar'd up the persistent folder under
> apps/tmp/cache which I determined was the culprit. I've gone through
> each of the files in this tar, this appears to be some sort of json
> formatted data. Nothing jumps out at me. I'm attaching this tar to my
> posting here, in case anyone has more experience with these files.
> Again, I'm running cakephp 1.2.7. I'm wondering if I could post this
> tar to someone at the cakephp dev team, this problem strikes at random
> and I don't seem to have any way to avoid it. Any ideas on this would
> be greatly appreciated. --
> 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

--
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: