Support » Plugin: Comet Cache » Getting some fatal errors

  • Debugging mode shows the following error. I’m not sure how to troubleshoot. Cache won’t clear and I currently can’t make any copy updates to the site. Plugin + theme updates work fine, but cannot deactivate or modify plugins.

    Warning: rename(/home/site/wwwroot/wp-content/cache/comet-cache/cache,/home/site/wwwroot/wp-content/cache/comet-cache/cache-5ad432a1dfda3788424861-tmp): Permission denied in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Shared/CacheDirUtils.php on line 157

    Fatal error: Uncaught Exception: Unable to delete files. Rename failure on directory: /home/site/wwwroot/wp-content/cache/comet-cache/cache. in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Shared/CacheDirUtils.php:158
    Stack trace:
    #0 /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Shared/CacheDirUtils.php(276): WebSharks\CometCache\Pro\Classes\AbsBaseAp->deleteFilesFromCacheDir(‘/^.+/ui’, false)
    #1 /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Shared/CacheDirUtils.php(61): WebSharks\CometCache\Pro\Classes\AbsBaseAp->deleteFilesFromHostCacheDir(‘/^.+/ui’)
    #2 /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Plugin/WcpUtils.php(95): WebSharks\CometCache\Pro\Classes\AbsBaseAp->clearFilesFromHostCacheDir(‘/^.+/ui’)
    #3 /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Plugin/WcpUtils.php(275): WebSharks\CometCache\Pro\Classes\Plugin->clearCache()
    #4 /home/site/wwwroot/wp-content/plugins/comet-cac in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Shared/CacheDirUtils.php on line 158

    • This topic was modified 2 years, 12 months ago by byomes. Reason: additional info
    • This topic was modified 2 years, 12 months ago by byomes. Reason: additional info

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Raam Dev

    (@raamdev)

    Hey @byomes,

    It sounds like Comet Cache is either having permissions issues performing the necessary cache cleanup, or your web hosting company is using a Network File System (NFS) that doesn’t play nicely with atomic reads/writes.

    We have seen this issue in the past and it has always ended up being related to the hosting environment. Can you check with your hosting company to see if they have any ideas?

    Thread Starter byomes

    (@byomes)

    Hi Raam,

    That is strange. We have been using Azure to host WP for couple months now, and this is the first time running into this problem. I’m looking at Azure right now and there doesn’t seem to be a noticeable problem. Do you know where I should be exactly poking around in Azure?

    Thread Starter byomes

    (@byomes)

    Getting a new error similar to the one I posted before. I still do not know how to diagnose the problem. Wish to fix quickly as this problem is preventing updates to the site which is hindering the business.

    [17-Apr-2018 04:31:05 UTC] PHP Warning: rename(/home/site/wwwroot/wp-content/cache/comet-cache/cache/https/www-sojospaclub-com/index.html-5ad578898e992184414454-tmp,/home/site/wwwroot/wp-content/cache/comet-cache/cache/https/www-sojospaclub-com/index.html): No such file or directory in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Ac/ObUtils.php on line 452

    [17-Apr-2018 04:31:05 UTC] PHP Fatal error: Uncaught Exception: Comet Cache: failed to write cache file for: /; possible permissions issue (or race condition), please check your cache directory: /home/site/wwwroot/wp-content/cache/comet-cache/cache. in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Ac/ObUtils.php:457
    Stack trace:
    #0 [internal function]: WebSharks\CometCache\Pro\Classes\AdvancedCache->outputBufferCallbackHandler(‘<!DOCTYPE html>…’, 9)
    #1 /home/site/wwwroot/wp-includes/functions.php(3729): ob_end_flush()
    #2 /home/site/wwwroot/wp-includes/class-wp-hook.php(286): wp_ob_end_flush_all(”)
    #3 /home/site/wwwroot/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #4 /home/site/wwwroot/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /home/site/wwwroot/wp-includes/load.php(679): do_action(‘shutdown’)
    #6 [internal function]: shutdown_action_hook()
    #7 {main}
    thrown in /home/site/wwwroot/wp-content/plugins/comet-cache-pro/src/includes/traits/Ac/ObUtils.php on line 457

    • This reply was modified 2 years, 12 months ago by byomes.
    Plugin Author Raam Dev

    (@raamdev)

    @byomes Comet Cache is a WordPress plugin written in PHP and it uses the standard PHP functions to perform filesystem operations. These errors are indicating that PHP is having trouble writing and renaming files on the filesystem, which indicates a filesystem-level or Operating System-level issue.

    I’ve created a GitHub issue so that we can look into improving the error handling on Comet Cache’s side so that we can at least prevent a fatal error from being produced: https://github.com/websharks/comet-cache/issues/927

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting some fatal errors’ is closed to new replies.