Handling “Concrete\Core\Cache\Command\ClearCacheCommand” failed: include(www/xyz.com/application/files/cache/expensive/0fea6a13c52b4d47/25368f24b045ca84/38a865804f8fdcb6/57cd99682e939275/3e7d68124ace5663/5a578007c2573b03/736abbd0621df6ef/08874cec99a4cc06.php) : Failed to open stream: No such file or directory
When I emty manually the cache in application/files/cache/ the error persists.
The site runs fine online and is not affected.
Do I have to look into the database if there are some reminiscence of the older system? How can I find out.
I don’t have a great deal of knowledge here but I think you’re on the right path as far as checking the database. I did a grep of the related code and I can see that there are file paths stored in the database that are supposed to be cleared out:
I believe it is likely that for whatever reason some file paths are still lingering in the database, and concrete thinks that the files still exist on the filesystem.
The easiest way to do that would be to use the Search feature in PHPMyAdmin if that’s available to you. Otherwise make a mysql dump of the database and then use grep on the resulting sql file.
EDIT
I also just remembered that you can run into this type of problem if your server’s disks are failing. Sometimes a file can ghost if the disks are going bad.
My recommendation is to take this as a serious warning to double check the health of your disks as soon as you can.
Some commands that you could use to start looking into this on RHEL style system:
I’ve seen countless servers where random files will start to ghost during disk issues, especially cache files since they’re written and removed often. I trust that you know what you’re looking at when you say you’re sure there are no disk issues, but if you’re not 100% positive it is definitely worth it to double check. Unless you have backups and you have a backup restoration plan that you’re confident in.
When you say “emty manually the cache in application/files/cache/”, do you mean you use rm -r application/files/cache/*, or that you used the CLI command. Just for grins, you might want to try this from the command line:
./concrete/bin/concrete c5:clear-cache
I just ran this on the latest v9.x version and it works fine, although I don’t have the issue that you do.