ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Error in Apache Log : "cannot remove directory cache/db_cache_delete"

March 15, 2010 7:07am

Subscribe [4]
  • #1 / Mar 15, 2010 7:07am

    Fabrice P.

    18 posts

    Hello,

    I have EE 1.6.8 on an Apache Server. I use also Solspace Tracker Module and Silentz Entry Rating.

    My hosting provider reports that from the beggining that they have hosted my website, they can see in apache logs that kinds of errors:

    (my system folder has been renamed in private folder when I installed EE)

    mv: cannot stat `/space/www/www.ZZZZ.org/data/htdocs/private/cache/page_cache’: No such file or directory
    mv: cannot stat `/space/www/www.ZZZZ.org/data/htdocs/private/cache/page_cache’: No such file or directory
    mv: cannot stat `/space/www/www.ZZZZ.org/data/htdocs/private/cache/page_cache’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/6d0ca1b0d8d74b631b60731de39ae8af’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/6d0ca1b0d8d74b631b60731de39ae8af’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/6d0ca1b0d8d74b631b60731de39ae8af’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/8969283ac20f1deea91c83ebdca9889e’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/8969283ac20f1deea91c83ebdca9889e’: No such file or directory
    rm: cannot remove directory `/space/www/www.ZZZZ.org/data/htdocs/private/cache/db_cache_delete/8969283ac20f1deea91c83ebdca9889e’: No such file or directory

    Maybe this errors come from Solspace Tracker Module or Silentz Entry Rating, I can’t disabled them because this is a production Website.

    Any ideas about what I could do to investigate a bit more and answer to my hosting provider?

  • #2 / Mar 15, 2010 7:44am

    silenz's avatar

    silenz

    1651 posts

    Entry Rating doesn’t use any caching.
    That messages do seem to stem from native EE use though.

    EE will try to delete the contents of its cache folder on occassion, no matter if you actually use caching or not and it looks as if PHP has insufficient access rights to perform this task.

  • #3 / Mar 15, 2010 10:53am

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    Thanks for the assist, silenz.

    Fabrice, manually remove all the folders from your /system/cache folder and keep just the index.html file. Make sure the folder for /system/cache is set to 777, and see if the problem happens again.

  • #4 / Mar 15, 2010 11:11am

    Fabrice P.

    18 posts

    Thank you both for your answer.

    I’ll do this and keep you posted.

    Regards from Paris

  • #5 / Mar 15, 2010 11:15am

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    We’ll be here!

  • #6 / Apr 12, 2010 10:42am

    Fabrice P.

    18 posts

    Hello Sue,

    I am really sorry, but deleting folders haven’t solved the pb (from sFTP or Clear Cached Data feature in Administration panel).

    Cache folder is also 777 access.

    From recent log provided by my hosting, here is the 4 types of errors we have:

    rm: cannot remove directory `/space/www/x/data/htdocs/private/cache/page_cache_delete/daf5ce0534915580ba82479463d7c6f2': No such file or directory
    rm: cannot lstat `/space/www/x/data/htdocs/private/cache/page_cache_delete/f953a6a2ed9315aabbc41e2ca2964b7d': No such file or directory
    rm: cannot chdir from `/space/www/x/data/htdocs/private/cache/page_cache_delete' to `ab5f0c0f934593398e175221157d71ac': No such file or directory
    mv: cannot stat `/space/www/x/data/htdocs/private/cache/page_cache': No such file or directory

    Wouldn’t be possible to just add some code in the cache template functions file?

    Something like this:

    if folder or file exist {
       delete cache directory
    }
  • #7 / Apr 12, 2010 11:36am

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    EE uses db_cache as a folder name, not db_cache_delete. Hmmm…

  • #8 / Apr 13, 2010 4:54am

    Fabrice P.

    18 posts

    I have both folders: db_cache_delete and db_cache.

    What is strange is that errors occurs in all folders.

    Anyway you are right, it means that problem is not in EE but in another module or tools.

    Thanks you for your help Sue.

  • #9 / Apr 13, 2010 7:43am

    Sue Crocker's avatar

    Sue Crocker

    26054 posts

    I’m going to go ahead and close this out for now, but we can re-open if needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases