Knowledgebase

Error after upgrade AsteriskNOW and FreePBX  Print this Article

Yum upgrade breaks AsteriskNOW and FreePBX

 

After yum updating AsteriskNOW 2.0 I was getting an error in FreePBX web interface, this was related to the queues module which I did not have installed.  Digium just made changes to their phones to work with this module, so to resolve the issue I had to install the module and apply the config which then fixed FreePBX but broke asterisk so then I had to do an un-install and apply which brought me back to my previous error.  Then do an install of queues module, apply config and everything worked fine after this.

 

The error after upgrading AsteriskNow was:

 

Reload failed because retrieve_conf encountered an error: 255

exit: 255
found language dir fr for directory, not installed on system, skipping
PHP Fatal error:  Call to undefined function queues_list() in /var/www/html/admin/modules/digium_phones/functions.inc.php on line 35

1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.

 

Here are the steps I used to upgrade and resolve the issue:

 

If you are going to upgrade make sure you have a full backup saved in a save place, use the Backup and Restore Module for FreePBX.


Log into FreePBX and update all of the modules, you can do this by going to Admin > Module Admin.

Make sure to check Basic and Extended

Click Check Online

Then click upgrade all

Click process, then confirm.

After it's done scroll to the bottom and click return, then click Apply Config.

Go back and check for updates make sure everything is good, also make sure that FreePBX ARI Framwork and FreePBX Framework are not set to disabled.  If they are make sure to click on them and select install and enable.

 

Now SSH into the server, and run yum check-update.

root@pbx bin]# yum check-update

Make sure freepbx is not in the yum list, if it's not in the list go ahead and run yum update.  If it is in the list you will first need to exclude it from yum updates.

You can exclude it by editing /etc/yum.conf file and add the following in the [main] section:


root@pbx bin]# nano /etc/yum.conf

In the [main] second add:

exclude=freepbx*

Now you can run yum check-update again to confirm FreePBX does not show up in the update list.

Now you can run yum update:

[root@pbx ~]#yum update

Now let's go ahead and restart Asterisk.

[root@pbx ~]# amportal restart

Now log into the FreePBX web interface and click the Apply Config button.

 

If you get the following error:


Reload failed because retrieve_conf encountered an error: 255

exit: 255
found language dir fr for directory, not installed on system, skipping
PHP Fatal error:  Call to undefined function queues_list() in /var/www/html/admin/modules/digium_phones/functions.inc.php on line 35

1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.


Go to Admin > Module Admin.

Make sure to check Basic and Extended

Click Check Online

Then click upgrade all

Click process, then confirm.

After it's done scroll to the bottom and click return, then click Apply Config.

Now to resolve the error above you will need to install the Queues Module, go down and select it in the list and select download and install or install whichever you have avaliable.

Click process, then confirm.

After it's done scroll to the bottom and click return, then click Apply Config.

This should have resolved the erorr message about Queues, but on my install it then crashed Asterisk with the following errors in the console:

root@pbx bin]#

/usr/sbin/safe_asterisk: line 145:  5065 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.

This is due to the database tables not being created correctly, to fix this you have to go back and force remove queues then go back and re-install queues and apply config.


You should be good at this point, now go ahead and confirm that all modules are enabled.


root@pbx bin]# /var/lib/asterisk/bin/module_admin list

Was this answer helpful?

Also Read

XHR response code: 200 XHR responseText: undefined jQuery status: parsererror
After yum update you get an rrror on web interface:XHR response code: 200 XHR responseText:...
How to enable CDR on AsteriskNOW and FreePBX
How to enable CDR on AsteriskNOW and FreePBXInstalling the following yum packages:yum install...