FreePBX is not updating config files correctly

Guys, I usaually trash out my problems myself but this one’s got me stumped…

I did a fresh install on Debian of Asterisk 1.6.2 and FreePBX with seemingly no issues. Now when I try to add my first extension I get error :

“Error: Trying to write null voicemail file! I refuse to continue!”

On further investigation I find that if I re-build voicemail.conf, and I can add 1 extension before these files get overwritten again, they basically become empty files. Looking deeper I find that other FreePBX files sip_additional, extenstion_additional are also blank, and always gets overwritten to blank files if I try manually adding text to them.

I viewed the MySQL tables and all the extensions are there and are also displayed in the FreePBX GUI. Somehow FreePBX is not creating the config files… Any idea?


sounds like permission related though not sure why it can get as far as blanking them out without writing them.

Make sure that your permissions and ownerships are set properly, the easiest being have apache and asterisk both owned and run by user asterisk.

just a thought… look at who is the owner of the parent folder?

Permissions/owners of files and parent directory look ok, all set to “asterisk.”

Below are the proccess on the server related to “asterisk.” Let me know if you think of anything else to try. I re-installed FreePBX a few times, but not Asterisk which seems to be fine.

ps -ef | grep -e asterisk -e PID

root 2868 1 0 20:09 ? 00:00:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 2873 2868 0 20:09 ? 00:00:01 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
asterisk 2962 1 0 20:09 ? 00:00:00 -su -c cd /var/www/freepbx/panel && /var/www/freepbx/panel/safe_opserver &
asterisk 2963 2962 0 20:09 ? 00:00:00 sh /var/www/freepbx/panel/safe_opserver
asterisk 2965 2963 0 20:09 ? 00:00:01 /usr/bin/perl /var/www/freepbx/panel/
asterisk 3012 2978 0 20:09 ? 00:00:00 /usr/sbin/apache2 -k start
asterisk 3013 2978 0 20:09 ? 00:00:00 /usr/sbin/apache2 -k start
asterisk 3014 2978 0 20:09 ? 00:00:00 /usr/sbin/apache2 -k start
asterisk 3015 2978 0 20:09 ? 00:00:00 /usr/sbin/apache2 -k start
asterisk 3016 2978 0 20:09 ? 00:00:00 /usr/sbin/apache2 -k start
asterisk 3029 2978 0 20:12 ? 00:00:00 /usr/sbin/apache2 -k start
root 3076 3047 0 20:22 pts/2 00:00:00 rasterisk r

Guys any further suggestions? Permissions seem ok, FreePBX is writing to the files (erases any text I put in the .conf files.) Extensions or Trunks I add are sticking in the GUI so don’t think MySQL issues…

Appreciate any assistance.