OS: SHMZ 6.5
FPBX vsn: 12.0.42
PBX firmware: 6.12.65-25
deploy_type = OSS
mode: device and users
Hi,
After removing a hundred or so WebRTC phones I’m now unable to apply the change in configuration. Pressing the Apply Config button generates the following error:
Reload failed because retrieve_conf encountered an error: 1
exit: 1 found language dir fr for directory, not installed on system, skipping [FATAL] Unable to load configuration due to extension count being less than available
1 error(s) occurred, you should view the notification log on the dashboard or main screen to check for more details.
I’ve updated all modules and run an amportal restart
. Despite the Devices table in the database having none of the RTC phones present and the devices being absent from the web interface a sip show peers
returns a list with all of the devices present and Apply Config
still generates the error.
CLI output:
# amportal restart
Fetching FreePBX settings with gen_amp_conf.php..
STOPPING ASTERISK Waiting for Asterisk to Stop Gracefully... All calls will be dropped once the timer hits 0. To cancel, press CTL-C Waiting for Asterisk to Stop 120 Asterisk Stopped
Shutting down REST applications daemon: [FAILED]
> ucp-server@ stop /var/www/html/admin/modules/ucpnode/node
> node_modules/forever/bin/forever stop --uid 'ucp' index.js
Shutting down Queue callback daemon: [FAILED] SETTING FILE PERMISSIONS...................Done Removing any dangling symlinks Dangling symlinks removed
STARTING ASTERISK Asterisk Started Reloading Asterisk because of Dynamic Hints Starting REST applications daemon: [ OK ] REST Applications module is not licensed. Stopping fail2ban: [ OK ] Starting fail2ban: [ OK ]
> ucp-server@ start /var/www/html/admin/modules/ucpnode/node
> node_modules/forever/bin/forever start -m 1 -a -l $ASTLOGDIR/ucp_forever.log -o $ASTLOGDIR/ucp_out.log -e $ASTLOGDIR/ucp_err.log --uid 'ucp' index.js
warn: --minUptime not set. Defaulting to: 1000ms warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms info: Forever processing file: index.js Starting Queue callback daemon: [ OK ] vqplus module is not licensed.
The logfile around an attempted Apply Config
indicates more is going on though it isn’t excessively verbose.
/var/log/asterisk/freepbx.log
[2015-Mar-06 01:02:12] [PHP-NOTICE] (/var/www/html/admin/libraries/view.functions.php:57) - Undefined variable: amp_conf [2015-Mar-06 01:02:13] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory [2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48 [2015-Mar-06 01:02:13] [INFO] (bin/retrieve_conf:129) - found language dir fr for directory, not installed on system, skipping [2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42 [2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
…
[2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42 [2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42 [2015-Mar-06 01:02:13] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory [2015-Mar-06 01:02:13] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48 [2015-Mar-06 01:02:13] [PHP-NOTICE] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:446) - Undefined variable: device_list [2015-Mar-06 01:02:13] [PHP-WARNING] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:446) - Invalid argument supplied for foreach() [2015-Mar-06 01:02:13] [PHP-NOTICE] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:495) - Undefined variable: bmo [2015-Mar-06 01:02:13] [PHP-NOTICE] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:501) - Undefined variable: cos [2015-Mar-06 01:02:13] [PHP-NOTICE] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:512) - Undefined variable: device_list [2015-Mar-06 01:02:13] [PHP-WARNING] (/var/www/html/admin/modules/queues/functions.inc/dialplan.php:512) - Invalid argument supplied for foreach() [2015-Mar-06 01:02:13] [FATAL] (libraries/utility.functions.php:469) - Unable to load configuration due to extension count being less than available [2015-Mar-06 01:02:13] [CRITICAL] (BMO/Notifications.class.php:461) - [NOTIFICATION]-[freepbx]-[RCONFFAIL] - retrieve_conf failed, config not applied (Reload failed because retrieve_conf encountered an error: 1)
I’m out of ideas so any help or advice would be gratefully received.
thanks
a.