I have a site that is fully functional and has a failure rate of 0.0037%, but all errors are the same.
Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp)
I looked for some information on PHP session handling error and also on Failed to write session data (files) . But both solutions did not solve the problem, in addition the questions apparently referred to a persistent problem, I mean a problem that was presented at all times.
In my case this problem occurs for a short time, for an average of two minutes and does not affect all users, because there are few data in the logs. In the last 24 hours it only occurred between 5:52 p.m. and 5:54 p.m., after which there was no error of the same type and everything continues to function normally. Because it is a small space of time, I can not test the site right now or do other verifications.
I wanted to know what might be causing this problem.
Is there a limit of files per folder or some limitation in creating new sessions, which then blocks writing? Is there a PHP process (or even CentOS itself) that alters the permissions of the folders or is it blocking writing?
I have not tried to change the folder where the sessions are saved, but I will do this soon.