attempted rmdir with cron job

Capnj - December 7, 2004 - 03:36
Project:FSCache
Version:4.6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:gordon
Status:closed
Description

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

#1

gordon - December 18, 2004 - 21:45
Assigned to:Anonymous» 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.

#2

Anonymous - January 1, 2005 - 22:15

#3

stevryn - May 17, 2005 - 16:35
Version:» 4.6.x-1.x-dev
Component:Miscellaneous» Code
Category:support request» bug report

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.

#4

gordon - May 18, 2005 - 00:13
Category:bug report» support request

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

#5

Anonymous - June 1, 2005 - 00:15
 
 

Drupal is a registered trademark of Dries Buytaert.