Hello,

I'm getting a lot of unlink errors like:

Warning: unlink(/var/www/vhosts/****.***/httpdocs/sites/default/files/.ht.filecache/cache_views_data-tracks_map openlayers_4 results 0f7ca5b429a2d3c4296663795277b945) [function.unlink]: No such file or directory in DrupalFileCache->get() (line 132 of /var/www/vhosts/****.***/httpdocs/sites/all/modules/filecache/filecache.inc).

it shows this message, even though the file exists. I have no idea what to do about the errors, site seems to work fine. But maybe it doesn't profide cached data all the time, considering the errors.

Comments

ogi’s picture

Hm, this unlink() is for broken files that can't be unserialize()d. Is it possible that this is some problem with permissions?

wemmies’s picture

I don't think permissions are the problem. After diving into it a bit more, I found that a lot of traffic causing these unlink errors come from websites from Russia and other East European countries like Rumania and the Ukrain. But also from google http://www.google.at/url?sa=t&rct=j&q=holland%20mx%20tracks&source=web&c...

http://www.google.co.uk/url?sa=t&rct=j&q=france%20mx%20tracks&source=web...

All unlink errors are referred by other sites, no traffic within the site.

ogi’s picture

I looked at the code and I couldn't find how this is possible :-)

You filed this bug for 7.x-1.0-alpha1 but unlink() in line 132 matches 7.x-1.0-beta2. I'm assuming you're using beta2.

Your example is about cached view for OpenLayers. Can you confirm that these errors are always about cached OpenLayers views?

wemmies’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.0-beta2

Sorry, was beta2 indeed.

The unlink errors are always on cached openlayers views. Cache being set by views.

ogi’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Please re-open if the problem still persists.