-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Fatal Error: 'Unable to clear dir'" #288
Comments
I'm not sure what "million hoops" you're referring to here. The Support link to open a trouble ticket for paying customers is clearly visible on our website inside the "More" menu. You're also able to file bug reports here on GitHub or even post questions in the community forum over at WordPress.org. All of those places are monitored by us.
I've been trying to reproduce this bug in my test installation but have been entirely unsuccessful. Could you please provide me with a few more details about your setup?
|
Hi Raam, What I meant by hoops is the need to sign up for a Github account, which is Anyway to your questions: WordPress - 3.9.2 Cheers. Nigel On Wed, Aug 27, 2014 at 7:38 PM, Raam Dev [email protected] wrote:
|
Hi Nigel, I'm still unable to reproduce this problem, so I have no way of troubleshooting it. You may want to contact your web host to see if there's any automated cleanup script that runs on the server that might be clearing out files from the cache directory. It's unlikely, but worth checking anyway. Another thing you might want to do is add If you still want to monitor those errors, I recommend setting I'll look into a better way of handling a scenario where Quick Cache encounters this error, so that it can be handled more gracefully. I see you're running v140725. I recommend upgrading to v140829, released yesterday, and watching for this issue again. If you continue to see this issue with the latest version, please let me know by updating this issue. |
Hi Raam, Yes unfortunately I'm still seeing the issue even after updating. I'm also Cheers. Nigel On Sat, Aug 30, 2014 at 5:05 PM, Raam Dev [email protected] wrote:
|
I too, have been unable to reproduce this issue so far. I've seen it reported by a couple of site owners (i.e. it seems to occur rarely). When it's reported it has been extremely difficult to pinpoint. The exception that QC throws here, is to alert a site owner about its inability to clear the cache as expected. The warning that preceeds the exception thrown by QC, which reads "directory not empty", suggests that QC is missing a particular file inside of this directory whenever it scans the file system. What file or sub-directory that is, remains a mystery to me. @nigelp You could help us to narrow this down by taking a look inside of the directory when this error occurs (if it occurs again). When you inspect this directory, what is left inside of the directory that PHP is complaining about? That would really help us find the underlying cause of this. In the error message you posted earlier, it was the We would expect it to be empty here. In the sub-routine where this occurs (in the code), QC has just finished emptying this directory. That's why it is quite rare and somewhat surprising to see this message. Making it difficult to reproduce. |
If your widgets use JavaScript to update, Quick Cache wouldn't be caching those. If, however, they don't use JavaScript to update themselves, then they might be getting cached with the rest of the page. Since you seem to indicate they updated fine prior to the last update, I would suspect they use JavaScript and therefore remain unaffected by Quick Cache.
|
Hiya, Well it just happened again. So I'm attaching - a) The error message again. Hope that helps. :) Nigel On Tue, Sep 2, 2014 at 3:48 PM, JasWSInc [email protected] wrote:
|
Hi Raam, The widget problem seems to have gone away currently. Nigel On Tue, Sep 2, 2014 at 7:16 PM, Raam Dev [email protected] wrote:
|
I didn't receive any of these attachments. Note that GitHub doesn't accept attachments via email. You need to login to the web interface and drag-n-drop images/files. |
@nigelp Thank you for the screenshots. I assume you connected via FTP and took those screenshots immediately after receiving that error message, correct? That's a lot more files than I expected to see. I just ran a test with query-string cache file ( @jaswsinc I'm wondering if maybe @nigelp's site is so busy that by the time Quick Cache has finished cleaning out the If that's what's happening here, we could probably do an atomic operation where we rename the |
@raamdev I think that you are absolutely right! Even if we can't be 100% sure that it's the issue here in this particular report, what you just pointed out is still an important issue in my view. Something we could definitely improve. I also think some refactoring to consolidate some of the routines we have now (which are spread out a little more than they need to be) would be helpful too; i.e. we could try to consolidate some of our file system operations as much as possible, so that we can focus on tuning things like this in. Given our current workflow, where we create feature branches for each issue, I think it would be really helpful to identify and/or create some issues that are focused on refactoring portions of the codebase. Making it easy for one of us to come in and work on that sort of issue too. In short, issues that are not bug reports, not feature requests, but ideas focused on ways to improve the structure of the codebase to make new things possible, and easier to maintain. |
Hi Raam, Yes they were taken immediately afterwards using Filezilla. One thing I should mention is I use both Cloudflare and Google PageSpeed on Nigel On Tue, Sep 9, 2014 at 1:50 AM, Raam Dev [email protected] wrote:
|
FYI, I'm marking this as a bug so that we can track it as such. There are several related GitHub issues open referencing this bug, all of which will need to be implemented before we can confirm the fix and close this issue (see #316, #317, #318, #319). Bug descriptionAt this time, we believe this bug occurs on busy sites where Quick Cache is purging a directory and then attempting to delete it, but is unable to delete the directory because new cache files are being created faster than Quick Cache can purge them, thereby resulting in an error messaging reporting that the directory is not empty. We have a plan for a fix and this bug will be a priority in the next development cycle. |
@raamdev I can work on this if you like. |
I'm reopening this issue, as there's obviously still some work that needs to be done here. |
I also have this problem, a lot of tmp leftovers. And i don't have a big site, 1800 blog posts and 100 visits per day. |
hello ! Maybe the content of my error log will help you... [13-Dec-2014 13:12:08 UTC] PHP Fatal error: Uncaught exception 'RuntimeException' with message 'SplFileInfo::getMTime() [splfileinfo.getmtime]: stat failed for /home/mysite/public_html/continut/a/cache/http/www-mysite-ro-548c3b28bf324494887728-tmp/fck/editor/dialog/fck-about-html.v/desktop.html' in /home/mysite/public_html/continut/plugins/quick-cache-pro/includes/share.php:1671 and some info about the server installation: Apache Version 2.4.7 |
Next release changelog:
|
The latest fix will go out with the next release. If you're interested in testing a beta release of Quick Cache before the next version comes out, please sign-up to be a beta tester here. |
@mchlbrry @eurobank @Alergic Quick Cache v141229 (Release Candidate) has been released that includes fixes for the issues you were having. If you could test this Release Candidate to confirm the issue has been fixed for you, that would be great! Please see http://www.websharks-inc.com/post/quick-cache-v141229-release-candidate/ |
Installed it and run an aggresive spider software against my website. After 2+ hours i see NO leftovers anymore. |
I installed this RC, rebuilt all cache, and cleared manually. The cache folder contained just 'https' folder, but empty. No tmp and no other folders. Error log was not modified anymore today, not even after this RC update. |
@Alergic Great to hear! |
Ive had QC running for a few days and unfortunately im still getting the persistent tmp directories. Here's what I did after I updating the plugin a couple of times:
Is there something in my server config that could be causing the issue? Thanks for taking time to address this, i'm sure you've got other bigger issues you'd rather be tackling. |
@mchlbrry Could please you try enabling WordPress debugging by adding the following lines to your
See also: https://codex.wordpress.org/Debugging_in_WordPress |
@raamdev, here are the errors I can see:
Edit: removed site URL and WP directory path |
@mchlbrry Thank you for the errors. I've opened a new Issue (#397 Temp Files in Cache Directory Fail to Clear) to continue tracking this bug, as this issue is getting a bit long and it's getting hard to follow relevant information. I've copied your error report over there. Please follow Issue #397 for further updates. |
Quick Cache v150121 (Release Candidate) was released yesterday that includes further fixes for this issue. If you'd like to help test the Release Candidate, that would be greatly appreciated! Please see http://www.websharks-inc.com/post/quick-cache-v150121-release-candidate/ Please report future any updates to this issue ("Fatal Error: 'Unable to clear dir'") on Issue #397. |
Wow, way to go to make paying customers jump through a million hoops to file a bug report on your paid products Jason. Not awesome.
Anyway, I'm getting a weird one with Quick Cache Pro. It's fairly benign (in that it doesn't corrupt or delete anything), but it is annoying.
Accual (intermittent) behaviour - see attached image pops up.
The problem doesn't happen all the time, maybe 20% of the time.
Thanks.
Nigel P.
The text was updated successfully, but these errors were encountered: