lots of : WARNING[3684] manager.c: read() failed: Bad file descriptor
When cliking the orange bar to reload FreePBX :
[FATAL] Failed to get engine_info retreive_conf failed to get engine information and cannot configure up a softwitch with out it. Error: ERROR-UNABLE-TO-PARSE
CDR display does not work and give the error :
YOU MUST ACCESS THE CDR THROUGH THE ASTERISK MANAGEMENT PORTAL!
Asterisk Info Panel does not work.
Backups do not works.
I’ve checked the hard disk and Mysql databases. they seem ok.
[Mon Dec 27 15:21:27 2010] [error] [client 192.168.1.4] PHP Warning: Unknown: open(/var/lib/php/session/sess_fi3tl02673c7gn344tianhq755, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://192.168.1.4/admin/config.php
[Mon Dec 27 15:21:27 2010] [error] [client 192.168.1.4] PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://192.168.1.4/admin/config.php
and /var/lib/php/session is owned by asterisk. Do you want to move this to /tmp?
php does not override that setting, but there are multiple places where php.ini settings can be set, I suspect that is the case with you, that it is being overridden by a setting elsewhere.
Try to run updatedb, when that is finished run locate php.ini.
It will list all places where php.ini is located.
If you don’t have updatedb or locate, try to install them with yum install mlocate
I remeber i did this certainly before the problem did appear :
yum install bind-utils
But i’m not sure at all this was the reason of the problem.
After the problem did appear, i’ve updated PHP and Apache, because i thought it was a compatibility problem with latest version of FreePBX.
Updating PHP and Apache did not solve it.
Yes the session directory /var/lib/php/session did had the apache ownership after apache / php update, but anyway and strangely, my /tmp directory is used for session files.
I do not understant why, because inside php.ini /var/lib/php/session is set for session files.
Inside /etc/php.ini i have :
session.save_path = “/var/lib/php/session”
I ask myself if apache would not bypass php.ini, or perhaps there is another php.ini, or FreePBX can overide this setting ?
you definitely want to look elsewhere, as FreePBX doesn’t have anything to do with changing that.
errors with permissions changing related to session directories has traditionally been from yum updates.
The most common one in the past was the session directory changing ownership to apache in the past, when apache was running as user asterisk, creating similar problems…
It’s possible this has been changed by another script, but i can’t remember one i run on the machine since the problem did appear after 2.8.0.4 upgrade.
We’ll see if other users have the same problem on Centos 5 (Elastix).