Sometimes (not always !) I’ve got file/directory error when I call the “clearByTags” method (with an array of few tags and disjunction to true), like : [09-Mar-2022 17:29:49 Europe/Paris] PHP Fatal error: Uncaught ErrorException: rmdir(/home/web/variance-auto.com/www/site/temporaire/cache/outils/luminis-f3): The directory isn't empty in /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:110
or [10-Mar-2022 09:23:30 Europe/Paris] PHP Fatal error: Uncaught ErrorException: unlink(/my/directory/cache/outils/label-ac/label-111853527cf9967b9d6c81d2396ec04c.tag): No such file or directory in /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:1658
Is that a known issue ? How can I fix it, please ?
Hello @froschdesign ! thanks for your reply.
Are you talking about the filesystem component version or the cache component version ?
Here is the version in use on my env :
I mean the cache adapter Filesystem but I see you use the older version 2 of laminas-cache and this means you can only use the version 1 of the Filesystem adapter.
Maybe you can test version 3 of laminas-cache and the Filesystem adapter with version 2 on your system.
By the way: You do not have to install all cache adapters, check the installation description for this.
@froschdesign same as previously.
There is CHMOD, UNLINK or RMDIR problem.
Here is an example : [17-Mar-2022 05:02:49 Europe/Paris] PHP Fatal error: Uncaught ErrorException: rmdir(/my/directory/cache/outils/luminis-ac): Directory is not empty in /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:173
Not sure about what you mean : changing “dir_permission/file_permission” value on my own ?
If yes, I’m not sure that’s the problem as much of case works pretty well currently. If it’s a permission problem, it shall never work, right ?
Dunno if it could help but I realize it happen kinda only on long execution time script…
Hm, it could be yes… how can I verify if it is concurent queries ?
Others examples of error I get in log (without stack trace - translated from french) :
[19-Mar-2022 05:01:13 Europe/Paris] PHP Fatal error: Uncaught ErrorException: rmdir(/my/directory/cache/outils/luminis-c5): directory is not empty /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem.php:173
[19-Mar-2022 22:14:40 Europe/Paris] PHP Fatal error: Uncaught ErrorException: fopen(/my/directory/cache/outils/luminis-ac/luminis-111853527cf9967b9d6c81d2396ec04c.dat): failed to open stream: no file/directory of the type in /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php:172
And another one (without stack trace - translated from french) : [21-Mar-2022 18:17:18 Europe/Paris] PHP Fatal error: Uncaught ErrorException: chmod(): no file/directory of this type in /my/directory/vendor/laminas/laminas-cache-storage-adapter-filesystem/src/Filesystem/LocalFilesystemInteraction.php:153