Every time my cron job runs I get the following errors:
First --
warning: rmdir(misc/fscache//A9): Directory not empty in /home/dajudge2/public_html/dr/main/modules/fscache.module on line 368.

Then --
warning: rmdir(misc/fscache//A9/FD): Permission denied in /home/dajudge2/public_html/dr/main/modules/fscache.module on line 368.

That directory (and I don't understand the // ) IS in fact empty. I'm tempted to just delete the directory but since I don't understand how fscache works, I don't know but what that emptry directory actually serves a purpose.

The code starting at line 368 is:
function _fscache_generate_cache_name($offset = 0) {

$fname = strtoupper(dechex(time()+$offset));
$fname = strrev($fname);

return $fname;
}

What to do?

gil

Comments

gordon’s picture

Assigned: Unassigned » gordon

I am not too sure but try removing the "/" from the end of the path. I have add a fix that will strip that automatically, so give this a try.

Anonymous’s picture

stevryn’s picture

Version: » 4.6.x-1.x-dev
Component: Miscellaneous » Code
Category: support » bug

This same error is present on my site when the cron job runs (via poormanscron), the errors are generated. I have removed the / from the path but it has not helped.

Message rmdir(public/files/fscache/13/3E): Permission denied in C:\www\webroot\drupal\modules\fscache.module on line 371.

Message rmdir(public/files/fscache/13): Directory not empty in C:\www\webroot\drupal\modules\fscache.module on line 371.

gordon’s picture

Category: bug » support

the web server needs full permission to all the directories under the fscache dir. it will try to clean up if it can.

Anonymous’s picture