Closed sprankhub closed 4 years ago
Thanks for finding another issue! Interesting, I can't easily reproduce the problem. Is there some other process that might be regenerating static assets while the watcher process recursively deletes them? Maybe a running browser request, or static content compilation, or a grunt/gulp/wtf process compiling css?
Notes to myself: a possible solution would be to remove only files and keep directories in place. Then it wouldn't matter if a file is created (again) by another process at the same time.
Implemented in release 1.0.21. Can you please check if you can still reproduce the issue after upgrading?
Sorry for bugging you again :-) And thanks again for the quick update!
To be honest, I also can't reproduce it right now. I was able to reproduce it once again, but not regularly. So it really seems to be somehow timing-related. However, no other process like gulp, grunt, whatever is running. Weird :/
Sorry that I cannot give you a clear confirmation, but I would consider it fixed for the time being. If I can reproduce it with the latest version again, I will let you know!
Thanks for the feedback. In any way, it should no longer occur, since now only files are removed and directories remain empty (except for sub directories).
Hi there, I just ran into similar issue on the latest version of the module v1.0.42 . I have not idea what's going on, i'll try to reproduce the error later in the mean time @Vinai could you reopen this? Or may be should i open a new issue being that my case is not related to to static assets, let me know
17:20:48 Cleaning cache type(s) config
fs.js:114
throw err;
^
Error: ENOTEMPTY: directory not empty, rmdir '/var/www/magento/mad-shop/magento/var/cache/mage--8'
at Object.rmdirSync (fs.js:684:3)
at dj (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:348:269)
at /var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:321:275
at ud (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:101:186)
at me.g.ea (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:124:104)
at tb (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:102:350)
at Rg (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:321:238)
at cj (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:348:222)
at Ck.g.jb (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:385:433)
at Uj (/var/www/magento/mad-shop/magento/vendor/mage2tv/magento-cache-clean/bin/cache-clean.js:367:43)
With version 1.0.20, I get an error when pressing
F
in order to remove the static content area frontend: