Just did a "yum upgrade" and freepbx stopped working

I get “retrieve_conf failed, config not applied”. Happens repeatedly when I hit “Apply Config”.

I was running 2.10. I tried updating to 2.11, but no help.

When I run “/var/lib/asterisk/bin/retrieve_conf”

I get “
PHP Fatal error: require_once(): Failed opening required ‘modules/core/functions.inc.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /var/www/html/admin/modules/voicepulse/functions.inc.php on line 2

I tried searching forums and tried various edits but no help.

Any thoughts. I don’t want to have to install.

You didn’t tell us about the original os or install os hard to guess.

Any errors when you ran the update?

Have you tried /var/lib/asterisk/bin/module_admin to make sure no modules didn’t make the upgrade?

Anything of use in the freepbx log?

Don’t know what “tried various edits” means. Be more specific.

I originally installed from AsteriskNow (either 1.0 or 1.5, not sure.)

The “yum upgrade” from yesterday did give error messages, but I didn’t write any down. Here is the last lines of the /etc/log/yum.log

Oct 19 18:29:10 Updated: php-common-5.4.21-27.el5.art.x86_64
Oct 19 18:29:11 Updated: php-cli-5.4.21-27.el5.art.x86_64
Oct 19 18:29:12 Updated: php-5.4.21-27.el5.art.x86_64
Oct 19 18:29:12 Updated: php-gd-5.4.21-27.el5.art.x86_64
Oct 19 18:29:13 Updated: php-pdo-5.4.21-27.el5.art.x86_64
Oct 19 18:29:13 Updated: php-mysql-5.4.21-27.el5.art.x86_64
Oct 19 18:29:14 Installed: asterisk-odbc-1.8.23.1-1_centos5.x86_64
Oct 19 18:29:17 Updated: php-devel-5.4.21-27.el5.art.x86_64
Oct 19 18:29:18 Updated: php-process-5.4.21-27.el5.art.x86_64
Oct 19 18:29:19 Updated: centos-release-notes-5.10-0.x86_64
Oct 19 18:29:20 Updated: php-5.4.21-27.el5.art.i386
Oct 19 18:30:40 Updated: freepbx-2.11.0-1_centos5.x86_64
Oct 19 18:30:40 Updated: 10:centos-release-5-10.el5.centos.x86_64

FreePBX stopped working immediately after the “yum update”. I then tried to update modules from within the FreePBX web interface, but didn’t help.

Here is my /etc/yum.conf

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
bugtracker_url=http://bugs.centos.org/yum5bug

Note: yum-RHN-plugin doesn’t honor this.

metadata_expire=1h

installonly_limit = 5

PUT YOUR REPOS HERE OR IN separate files named file.repo

in /etc/yum.repos.d

From the freepbx_dbg file:

[WARNING]: require_once(modules/core/functions.inc.php): failed to open stream:\ No such file or directory

2013-Oct-20 01:29:38 /var/www/html/admin/modules/voicepulse/functions.inc.ph
p:2
[WARNING]: require_once(modules/core/functions.inc.php): failed to open stream:
No such file or directory

2013-Oct-20 01:29:38 /usr/share/pear/Console/Getopt.php:214
[NOTICE]: Undefined offset: 1

2013-Oct-20 01:29:38 /usr/share/pear/Console/Getopt.php:214
[NOTICE]: Undefined offset: 1

2013-Oct-20 01:29:38 /var/www/html/admin/modules/findmefollow/functions.inc.
php:550
[NOTICE]: Undefined variable: amp_conf

2013-Oct-20 01:29:38 /var/www/html/admin/modules/ringgroups/functions.inc.ph
p:431
[NOTICE]: Undefined variable: amp_conf

2013-Oct-20 01:29:38 /var/www/html/admin/libraries/usage_registry.functions.
php:504
[WARNING]: Invalid argument supplied for foreach()

2013-Oct-20 01:29:39 /var/www/html/admin/libraries/xml2Array.class.php:59
[WARNING]: array_push(): Cannot add element to the array as the next element is
already occupied

2013-Oct-20 01:29:39 /var/www/html/admin/libraries/xml2Array.class.php:59
[WARNING]: array_push(): Cannot add element to the array as the next element is
already occupied

2013-Oct-20 01:29:39 /var/www/html/admin/libraries/xml2Array.class.php:59
[WARNING]: array_push(): Cannot add element to the array as the next element is
already occupied

2013-Oct-20 01:29:39 /var/www/html/admin/libraries/xml2Array.class.php:59
[WARNING]: array_push(): Cannot add element to the array as the next element is
already occupied

FreePBX was complaining that:

File /etc/dahdi/modules is not owned by root
Error File /etc/dahdi/system.conf is not owned by root
Error File /etc/modprobe.d/dahdi.conf is not owned by root

So I fixed the ownership and rebooted. No luck.

Then I saw the FreePBX error:

retrieve_conf failed to sym link:
/etc/asterisk/logger.conf from logfiles/etc (Already exists, linked to something else)

Under /etc/asterisk, the only logger* files I see are:

-rw-rw-r-- 1 asterisk asterisk 418 Oct 4 15:26 logger_general_additional.conf
-rw-rw-r-- 1 asterisk asterisk 418 Oct 4 15:26 logger_logfiles_additional.conf
-rw-rw-r-- 1 asterisk asterisk 17 Apr 14 2012 logger_general_custom.conf
-rw-rw-r-- 1 asterisk asterisk 207 Apr 14 2012 logger_logfiles_custom.conf

I don’t see a logger.conf file.

Not sure what to do next.

I did a search and found the following page:

http://forum.elastix.org/viewtopic.php?f=18&t=59389#59389

I tried the suggestions on that page, but nothing helped.

We don’t support Asterisk Now nor produce those yum packages. I suggest you go to the Digium forums.

You can also run a backup from the command line and install the genuine FreePBX distro.

Your issue if you updated to PHP 5.4 and FreePBX does not support PHP 5.4. But your biggest error you are getting is some 3rd party unsupported module called voicepulse is causing all of FreePBX to die. I suggest removing the module

Thank you.

I’m not a linux person. What’s the safest way to downgrade from 5.4 to 5.3?

I found the following:

I think it worked, but now I’m having problems with Zend-server.