XF 2.3 File healthcheck false positives?

heavyharmonies

New member
I've periodically gotten emails telling me there are "file healthchech warnings". Logging into admin shows anywhere from 5 to 15 files in red, e.g., "After checking 14,491 files we found 69 files missing."

Without exception, every single time if I click "Re-run check" it results in status green and no problems detected.

Is this a caching or timing issue when it runs on its own?

What does this even mean?
 
Sounds like your job is timing out or the cron runner doesn't have the same permissions that you do as a user to some of those files.

check your file system on the ones in red and compare their chmod &chown settings.
 
This is weird. The files in question (this time) are 70 files out of 1853 in the /styles/fa/solid/ directory. They are a contiguous group towards the end of the alphabetical list, but not THE end. The chmod and chown settings are no different from any others in the directory.

So presumably this is performance related, but only for a fleeting instance of time, since it recovers. Re-ran check and once again "All 14,491 checked files are present and correct."

No unusual load spikes that I'm aware of.
 
It could also be a timeout hitting. What are your php.ini vars for max_execution_time and things like that? try upping them a few ticks.
Also, perhaps the job is running at the same time as another long-winded job and they are competing for resources.

a backup in progress could lock files for instance

Try altering the time of the cron.
 
Back
Top Bottom