[Solved] Reload failed because retrieve_conf encountered an error: 1 after upgrade from 13 to 14

I run Ubuntu 14.04 and updated FreePBX from 13 to 14 and now i get the following error. Beside some missing packages and upgrading nodejs to 8.x and php to 5.6, the upgrade was flawless. Same problems occurs in web GUI when clicking on “Apply Config”.

root@asterisk:~# sudo fwconsole restart
Running FreePBX shutdown...

Stopping UCP Node Server
[>---------------------------] 1 sec
Stopped UCP Node Server
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] < 1 sec
Running FreePBX startup...
Starting Asterisk...
[============================] 8 secs
Asterisk Started
Starting UCP Node Server...
[>---------------------------] 2 secs
Started UCP Node Server. PID is 10592
root@asterisk:~# sudo fwconsole reload
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1

root@asterisk:~# ps aux | grep asterisk
root     10329  0.0  0.0   4460   124 pts/0    S    19:38   0:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 10331 11.5  4.7 3010292 72032 pts/0   Sl   19:38   0:13 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c
asterisk 10592  2.2  2.9 1078588 45092 ?       Ssl  19:38   0:02 node /var/www/html/admin/modules/ucp/node/index.js
asterisk 11071  3.5  3.2 446232 49504 ?        S    19:39   0:02 /usr/sbin/apache2 -k start
asterisk 11074  0.3  2.0 439284 31508 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11090  7.6  2.0 365400 31008 ?        S    19:39   0:05 /usr/sbin/apache2 -k start
asterisk 11133  0.2  1.5 363324 23104 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11209  0.0  0.5 359852  8772 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11210  0.0  0.5 359852  8772 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11222  0.0  0.5 359852  8772 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11223  0.0  0.5 359852  8772 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11224  0.0  0.5 359852  8772 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
asterisk 11225  0.7  1.5 366568 24208 ?        S    19:39   0:00 /usr/sbin/apache2 -k start
root     11925  0.0  0.1  14128  2364 pts/0    S+   19:40   0:00 grep --color=auto asterisk
asterisk 30391  0.2  2.3 919660 35348 ?        Ssl  19:18   0:03 PM2 v2.6.1: God Daemon (/home/asterisk/.pm2)

One question, if you are already root why are you sudoing fwconsole?

Try running:

/var/lib/asterisk/bin/retrieve_conf

1 Like

The sudo is kind of mechanically as I usually are not root. But in case I have to run many commands as root, I will login as root and …

Anyway:

root@asterisk:~# /var/lib/asterisk/bin/retrieve_conf
Please update your modules and reload Asterisk by visiting http://asterisk.domain.com/admin
root@asterisk:~# echo $?
0

root@asterisk:~# fwconsole ma upgradeall
No repos specified, using: [unsupported,basic,standard,extended,commercial] from last GUI settings

Up to date.
Updating Hooks...Done
root@asterisk:~# fwconsole reload
Reloading FreePBX
Error(s) have occured, the following is the retrieve_conf output:
exit: 1

Switch to the asterisk user and run the command.

I already tried that with the same result as with root.

Now run

asterisk -rx ‘core reload’

If that works then I’m at a loss as fwconsole does the same things.

No output on sudo -u asterisk asterisk -rx "core reload" or sudo -u asterisk asterisk -rvvvx "core reload". Restarting asterisk is no issue and asterisk is running fine - but i guess with the old settings. So the issue might be in “apply config” - the rewriting of the .conf-files. Would that lead to all conf files (except the custom ones) to be rewritten or is freepbx aware of the changes and the explicit files which have to be rewritten?

root@asterisk:~$ find /etc/asterisk/ -iname "*.conf" -ls
264123    4 -rw-rw-r--   1 asterisk asterisk      841 Aug 13 09:45 /etc/asterisk/ari_additional.conf
264197    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_digium_phone_applications.conf
264078    0 lrwxrwxrwx   1 asterisk asterisk       44 Mar 28  2016 /etc/asterisk/cel.conf -> /var/www/html/admin/modules/cel/etc/cel.conf
264119    4 -rw-rw-r--   1 asterisk asterisk     3498 Mar 28  2016 /etc/asterisk/alsa.conf
264169    0 -rw-rw-r--   1 asterisk asterisk        0 Aug 11 19:05 /etc/asterisk/http_custom.conf
264745    4 -rw-rw-r--   1 asterisk asterisk      720 Aug 13 09:45 /etc/asterisk/res_fax_digium.conf
264236    4 -rw-rw-r--   1 asterisk asterisk      949 Mar 28  2016 /etc/asterisk/cdr_sqlite3_custom.conf
264734    8 -rw-rw-r--   1 asterisk asterisk     5171 Mar 28  2016 /etc/asterisk/calendar.conf
264062    8 -rw-rw-r--   1 asterisk asterisk     4120 Mar 28  2016 /etc/asterisk/asterisk.conf
263954   12 -rw-rw-r--   1 asterisk asterisk     8804 Nov 16  2016 /etc/asterisk/extensions_custom.conf
262926    4 -rw-rw-r--   1 asterisk asterisk     2816 Mar 28  2016 /etc/asterisk/acl.conf
264803    8 -rw-rw-r--   1 asterisk asterisk     7461 Mar 28  2016 /etc/asterisk/oss.conf
264833    4 -rw-rw-r--   1 asterisk asterisk     1238 Aug 13 09:45 /etc/asterisk/sip_notify_additional.conf
264201    4 -rw-rw-r--   1 asterisk asterisk     1090 Mar 28  2016 /etc/asterisk/res_pgsql.conf
264246    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/meetme_general_custom.conf
264801    4 -rw-rw-r--   1 asterisk asterisk     1617 Mar 28  2016 /etc/asterisk/cdr_custom.conf
264061    0 lrwxrwxrwx   1 asterisk asterisk       51 Mar 28  2016 /etc/asterisk/ari.conf -> /var/www/html/admin/modules/arimanager/etc/ari.conf
264200    4 -rw-rw-r--   1 asterisk asterisk      924 Mar 28  2016 /etc/asterisk/res_odbc_custom.conf
264789    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_fax_custom.conf
264799    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.identify_custom.conf
264174    4 -rw-rw-r--   1 asterisk asterisk      753 Aug 13 09:45 /etc/asterisk/logger_logfiles_additional.conf
264732    0 -rw-rw-r--   1 asterisk asterisk        0 Apr  4  2016 /etc/asterisk/sip_nat.conf
264196    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_digium_phone_additional.conf
264128    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/ccss_general_custom.conf
264116    4 -rw-rw-r--   1 asterisk asterisk      188 Jun  7 12:03 /etc/asterisk/dnsmgr.conf
264180    8 -rw-rw-r--   1 asterisk asterisk     5852 Mar 28  2016 /etc/asterisk/mgcp.conf
264845    4 -rw-rw-r--   1 asterisk asterisk       81 Mar 28  2016 /etc/asterisk/privacy.conf
265263    0 lrwxrwxrwx   1 asterisk asterisk       50 Mar 28  2016 /etc/asterisk/res_odbc.conf -> /var/www/html/admin/modules/core/etc/res_odbc.conf
264248    4 -rw-rw-r--   1 asterisk asterisk     1285 Mar 28  2016 /etc/asterisk/muted.conf
264843    4 -rw-rw-r--   1 asterisk asterisk     1694 Aug 13 09:45 /etc/asterisk/sip_registrations.conf
265262    4 -rw-rw-r--   1 asterisk asterisk      733 Aug 13 09:45 /etc/asterisk/res_fax.conf
264139    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/cel_custom_post.conf
264785    0 -rw-rw-r--   1 asterisk asterisk        0 Jun 22  2016 /etc/asterisk/pjsip.endpoint_custom_post.conf
264841    4 -rw-rw-r--   1 asterisk asterisk     1164 Mar 28  2016 /etc/asterisk/dbsep.conf
264842    4 -rw-rw-r--   1 asterisk asterisk     2402 Mar 28  2016 /etc/asterisk/iaxprov.conf
264189    0 -rw-rw-r--   1 asterisk asterisk        0 Jun 23  2016 /etc/asterisk/pjsip.endpoint_custom.conf
264878    4 -rw-rw-r--   1 asterisk asterisk     1397 Aug 13 09:45 /etc/asterisk/pjsip.auth.conf
264076    0 lrwxrwxrwx   1 asterisk asterisk       48 Mar 28  2016 /etc/asterisk/ccss.conf -> /var/www/html/admin/modules/campon/etc/ccss.conf
264162    4 -rw-rw-r--   1 asterisk asterisk      176 Jul  5  2016 /etc/asterisk/extensions_override_freepbx.conf
264198    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_digium_phone_devices.conf
264811   12 -rw-rw-r--   1 asterisk asterisk    10065 Mar 28  2016 /etc/asterisk/skinny.conf
264210    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/sip_registrations_custom.conf
264881    0 lrwxrwxrwx   1 asterisk asterisk       46 Mar 28  2016 /etc/asterisk/http.conf -> /var/www/html/admin/modules/core/etc/http.conf
265267    0 lrwxrwxrwx   1 asterisk asterisk       52 Mar 28  2016 /etc/asterisk/sip_notify.conf -> /var/www/html/admin/modules/core/etc/sip_notify.conf
264740    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/iax_custom_post.conf
264152    8 -rw-rw-r--   1 asterisk asterisk     4456 Mar 28  2016 /etc/asterisk/console.conf
264726    8 -rw-rw-r--   1 asterisk asterisk     7471 Mar 28  2016 /etc/asterisk/extensions_minivm.conf
264185    8 -rw-rw-r--   1 asterisk asterisk     7840 Mar 28  2016 /etc/asterisk/phoneprov.conf
264234    4 -rw-rw-r--   1 asterisk asterisk      735 Aug 13 09:45 /etc/asterisk/logger_general_additional.conf
265264    4 -rw-rw-r--   1 asterisk asterisk      917 Aug 13 09:45 /etc/asterisk/res_parking.conf
264786    4 -rw-rw-r--   1 asterisk asterisk      958 Aug 13 09:45 /etc/asterisk/manager_additional.conf
264797   20 -rw-rw-r--   1 asterisk asterisk    17057 Mar 28  2016 /etc/asterisk/say.conf
264183    4 -rw-rw-r--   1 asterisk asterisk     3900 Mar 28  2016 /etc/asterisk/osp.conf
264739    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/features_featuremap_custom.conf
264168    4 -rw-rw-r--   1 asterisk asterisk      810 Aug 13 09:45 /etc/asterisk/http_additional.conf
264192    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 30  2016 /etc/asterisk/queues_custom.conf
265268    0 lrwxrwxrwx   1 asterisk asterisk       47 Mar 28  2016 /etc/asterisk/udptl.conf -> /var/www/html/admin/modules/core/etc/udptl.conf
264249    4 -rw-rw-r--   1 asterisk asterisk     1332 Mar 28  2016 /etc/asterisk/res_config_sqlite3.conf
264244   12 -rw-rw-r--   1 asterisk asterisk     9925 Mar 28  2016 /etc/asterisk/minivm.conf
264827    4 -rw-rw-r--   1 asterisk asterisk      819 Aug 13 09:45 /etc/asterisk/res_odbc_additional.conf
264219    4 -rw-rw-r--   1 asterisk asterisk     2571 Mar 28  2016 /etc/asterisk/users.conf
264217    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/udptl_custom.conf
264800    4 -rw-rw-r--   1 asterisk asterisk     2669 Mar 28  2016 /etc/asterisk/smdi.conf
264844    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/features_general_custom.conf
264255    0 lrwxrwxrwx   1 asterisk asterisk       50 Mar 28  2016 /etc/asterisk/features.conf -> /var/www/html/admin/modules/core/etc/features.conf
264135    4 -rw-rw-r--   1 asterisk asterisk     3301 Mar 28  2016 /etc/asterisk/cdr_syslog.conf
264804    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/logger_logfiles_custom.conf
264233    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/cel_odbc_custom.conf
264802    4 -rw-rw-r--   1 asterisk asterisk       77 Mar 28  2016 /etc/asterisk/sip_general_custom.conf
264794    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.identify_custom_post.conf
264079    0 lrwxrwxrwx   1 asterisk asterisk       49 Mar 28  2016 /etc/asterisk/cel_odbc.conf -> /var/www/html/admin/modules/cel/etc/cel_odbc.conf
264228    4 -rw-rw-r--   1 asterisk asterisk      743 Aug 13 09:45 /etc/asterisk/queues_general_additional.conf
264130    4 -rw-rw-r--   1 asterisk asterisk      418 Mar 28  2016 /etc/asterisk/cdr_manager.conf
264138    4 -rw-rw-r--   1 asterisk asterisk     2035 Mar 28  2016 /etc/asterisk/cel_custom.conf
265216    4 -rw-rw-r--   1 asterisk asterisk      126 Mar 28  2016 /etc/asterisk/meetme.conf
264146    4 -rw-rw-r--   1 asterisk asterisk      264 Mar 28  2016 /etc/asterisk/cli.conf
264731    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/logger_general_custom.conf
264154    4 -rw-rw-r--   1 asterisk asterisk     1470 Mar 28  2016 /etc/asterisk/dsp.conf
264805    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.auth_custom.conf
264133    4 -rw-rw-r--   1 asterisk asterisk      597 Mar 28  2016 /etc/asterisk/cdr_pgsql.conf
264190    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.registration_custom_post.conf
264127    4 -rw-rw-r--   1 asterisk asterisk      701 Aug 13 09:45 /etc/asterisk/ccss_general_additional.conf
264791    4 -rw-rw-r--   1 asterisk asterisk      731 Aug 13 09:45 /etc/asterisk/ari_general_additional.conf
264203    4 -rw-rw-r--   1 asterisk asterisk     1350 Apr  7  2016 /etc/asterisk/res_stun_monitor.conf
264214    4 -rw-rw-r--   1 asterisk asterisk      152 Mar 28  2016 /etc/asterisk/test_sorcery.conf
264479    8 -rw-rw-r--   1 asterisk asterisk     4569 Aug 13 09:45 /etc/asterisk/pjsip.endpoint.conf
264243    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/meetme_general_additional.conf
264132    4 -rw-rw-r--   1 asterisk asterisk      357 Mar 28  2016 /etc/asterisk/cdr_odbc.conf
264129    4 -rw-rw-r--   1 asterisk asterisk     2580 Mar 28  2016 /etc/asterisk/cdr_adaptive_odbc.conf
264252    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/queues_custom_general.conf
263822    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/ari_additional_custom.conf
264224    0 lrwxrwxrwx   1 asterisk asterisk       52 Mar 28  2016 /etc/asterisk/extensions.conf -> /var/www/html/admin/modules/core/etc/extensions.conf
264155   12 -rw-rw-r--   1 asterisk asterisk     9034 Mar 28  2016 /etc/asterisk/dundi.conf
264209    4 -rw-rw-r--   1 asterisk asterisk     1555 Aug 13 09:45 /etc/asterisk/sip_general_additional.conf
264809    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/iax_general_custom.conf
265257    4 -rw-rw-r--   1 asterisk asterisk     1418 Mar 28  2016 /etc/asterisk/phone.conf
264164    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/features_applicationmap_custom.conf
265266    0 lrwxrwxrwx   1 asterisk asterisk       45 Mar 28  2016 /etc/asterisk/sip.conf -> /var/www/html/admin/modules/core/etc/sip.conf
264148    8 -rw-rw-r--   1 asterisk asterisk     4616 Mar 28  2016 /etc/asterisk/codecs.conf
264121    4 -rw-rw-r--   1 asterisk asterisk     1044 Mar 28  2016 /etc/asterisk/app_mysql.conf
264118    4 -rw-rw-r--   1 asterisk asterisk     2328 Mar 28  2016 /etc/asterisk/alarmreceiver.conf
264158  308 -rw-rw-r--   1 asterisk asterisk   312537 Aug 13 09:45 /etc/asterisk/extensions_additional.conf
264188    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.aor_custom.conf
264784    4 -rw-rw-r--   1 asterisk asterisk     1352 Mar 28  2016 /etc/asterisk/cel_pgsql.conf
264059    4 -rw-rw-r--   1 asterisk asterisk      855 Mar 28  2016 /etc/asterisk/amd.conf
264251    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/queues_post_custom.conf
264836    8 -rw-rw-r--   1 asterisk asterisk     7092 Mar 28  2016 /etc/asterisk/sla.conf
265265    0 lrwxrwxrwx   1 asterisk asterisk       45 Mar 28  2016 /etc/asterisk/rtp.conf -> /var/www/html/admin/modules/core/etc/rtp.conf
264749    4 -rw-rw-r--   1 asterisk asterisk      140 Mar 28  2016 /etc/asterisk/adsi.conf
264834    4 -rw-rw-r--   1 asterisk asterisk     1111 Aug 13 09:45 /etc/asterisk/pjsip.identify.conf
264186    4 -rw-rw-r--   1 asterisk asterisk      345 Mar 28  2016 /etc/asterisk/phpagi.conf
264876    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/xmpp_custom.conf
264204    4 -rw-rw-r--   1 asterisk asterisk      735 Aug 13 09:45 /etc/asterisk/rtp_additional.conf
264151    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/confbridge_custom.conf
264157    4 -rw-rw-r--   1 asterisk asterisk     4033 Mar 28  2016 /etc/asterisk/extconfig.conf
264837    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/musiconhold_custom.conf
264812    4 -rw-rw-r--   1 asterisk asterisk     1780 Mar 28  2016 /etc/asterisk/queuerules.conf
264080    0 lrwxrwxrwx   1 asterisk asterisk       59 Mar 28  2016 /etc/asterisk/confbridge.conf -> /var/www/html/admin/modules/conferences/etc/confbridge.conf
265256    4 -rw-rw-r--   1 asterisk asterisk      208 Mar 28  2016 /etc/asterisk/musiconhold.conf
265260    4 -rw-rw-r--   1 asterisk asterisk      733 Aug 13 09:45 /etc/asterisk/pjsip_notify.conf
262973    4 -rw-rw-r--   1 asterisk asterisk     2043 Aug 13 09:45 /etc/asterisk/pjsip.aor.conf
264738    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/sip_custom_post.conf
264229    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/motif_custom.conf
264143    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/chan_dahdi_additional.conf
262169    4 -rw-rw-r--   1 asterisk asterisk      320 Apr 13  2016 /etc/asterisk/manager_custom.conf
264793    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_digium_phone_general.conf
264424    8 -rw-rw-r--   1 asterisk asterisk     6089 Mar 28  2016 /etc/asterisk/pjsip_wizard.conf
264848    4 -rw-rw-r--   1 asterisk asterisk      831 Aug 13 09:45 /etc/asterisk/pjsip.transports.conf
264730    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/iax_additional.conf
264195    4 -rw-rw-r--   1 asterisk asterisk      160 Mar 28  2016 /etc/asterisk/res_curl.conf
265255    4 -rw-rw-r--   1 asterisk asterisk      691 Jun  4  2016 /etc/asterisk/motif.conf
264783    4 -rw-rw-r--   1 asterisk asterisk      827 Mar 28  2016 /etc/asterisk/iax_custom.conf
265261    4 -rw-rw-r--   1 asterisk asterisk      522 Mar 28  2016 /etc/asterisk/queues.conf
265270    4 -rw-rw-r--   1 asterisk asterisk      736 Jun  4  2016 /etc/asterisk/xmpp.conf
264736    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip_custom.conf
264194    4 -rw-rw-r--   1 asterisk asterisk      876 Mar 28  2016 /etc/asterisk/res_corosync.conf
265269    4 -rw-rw-r--   1 asterisk asterisk     2341 Aug 11 19:07 /etc/asterisk/voicemail.conf
264218    8 -rw-rw-r--   1 asterisk asterisk     5850 Mar 28  2016 /etc/asterisk/unistim.conf
264832   12 -rw-rw-r--   1 asterisk asterisk     8231 Mar 28  2016 /etc/asterisk/cdr.conf
262747    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 22 03:01 /etc/asterisk/pjsip_custom_post.conf
264245   16 -rw-rw-r--   1 asterisk asterisk    14752 Mar 28  2016 /etc/asterisk/misdn.conf
264253    4 -rw-rw-r--   1 asterisk asterisk      378 Mar 28  2016 /etc/asterisk/res_config_sqlite.conf
264831    4 -rw-rw-r--   1 asterisk asterisk     1883 Mar 28  2016 /etc/asterisk/cel_tds.conf
265259    4 -rw-rw-r--   1 asterisk asterisk     1194 Aug 13 09:45 /etc/asterisk/pjsip.conf
264747    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.transports_custom.conf
264735    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/sip_notify_custom.conf
265145    0 lrwxrwxrwx   1 asterisk asterisk       52 Mar 28  2016 /etc/asterisk/logger.conf -> /var/www/html/admin/modules/logfiles/etc/logger.conf
264744    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.transports_custom_post.conf
264165    4 -rw-rw-r--   1 asterisk asterisk      679 Aug 13 09:45 /etc/asterisk/features_general_additional.conf
264792    4 -rw-rw-r--   1 asterisk asterisk     3881 Mar 28  2016 /etc/asterisk/followme.conf
264235    4 -rw-rw-r--   1 asterisk asterisk      841 Aug 13 09:45 /etc/asterisk/musiconhold_additional.conf
264795    4 -rw-rw-r--   1 asterisk asterisk      923 Mar 28  2016 /etc/asterisk/festival.conf
264748    8 -rw-rw-r--   1 asterisk asterisk     7226 Mar 28  2016 /etc/asterisk/cli_aliases.conf
264207    8 -rw-rw-r--   1 asterisk asterisk     6683 Aug 13 09:45 /etc/asterisk/sip_additional.conf
264741    4 -rw-rw-r--   1 asterisk asterisk      705 Aug 13 09:45 /etc/asterisk/pjsip.registration.conf
264206    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/rtp_custom.conf
264250    4 -rw-rw-r--   1 asterisk asterisk     2061 Mar 28  2016 /etc/asterisk/res_config_mysql.conf
264177    4 -rw-rw-r--   1 asterisk asterisk     1774 Mar 28  2016 /etc/asterisk/modem.conf
264208    0 -rw-rw-r--   1 asterisk asterisk        0 Apr 21  2016 /etc/asterisk/sip_custom.conf
264850    4 -rw-rw-r--   1 asterisk asterisk      280 Jun 14 09:00 /etc/asterisk/freepbx_chown.conf
264220    8 -rw-rw-r--   1 asterisk asterisk     5938 Mar 28  2016 /etc/asterisk/vpb.conf
264787    4 -rw-rw-r--   1 asterisk asterisk      713 Mar 28  2016 /etc/asterisk/res_pktccops.conf
264798    4 -rw-rw-r--   1 asterisk asterisk      730 Mar 28  2016 /etc/asterisk/freepbx_module_admin.conf
264213    4 -rw-rw-r--   1 asterisk asterisk      370 Mar 28  2016 /etc/asterisk/statsd.conf
264147    4 -rw-rw-r--   1 asterisk asterisk     2452 Mar 28  2016 /etc/asterisk/cli_permissions.conf
264746    4 -rw-rw-r--   1 asterisk asterisk      695 Mar 28  2016 /etc/asterisk/config_test.conf
262987    4 -rw-rw-r--   1 asterisk asterisk      964 Jun  8 15:07 /etc/asterisk/manager.conf
264835    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/iax_registrations.conf
264788    4 -rw-rw-r--   1 asterisk asterisk       51 Mar 28  2016 /etc/asterisk/iax_registrations_custom.conf
264153    0 -rw-rw-r--   1 asterisk asterisk        0 Apr 28 03:02 /etc/asterisk/res_parking_custom.conf
264828    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_digium_phone_firmware.conf
264212    8 -rw-rw-r--   1 asterisk asterisk     4969 Mar 28  2016 /etc/asterisk/stasis.conf
264882   16 -rw-rw-r--   1 asterisk asterisk    12823 Jul  5  2016 /etc/asterisk/extensions_override_fop2.conf
264814    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/localprefixes.conf
264808    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.registration_custom.conf
264187    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.aor_custom_post.conf
264199    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/res_fax_digium_custom.conf
264145    4 -rw-rw-r--   1 asterisk asterisk     2228 Mar 28  2016 /etc/asterisk/chan_mobile.conf
264231    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/meetme_additional.conf
264839    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/pjsip.auth_custom_post.conf
264171    4 -rw-rw-r--   1 asterisk asterisk      746 Aug 13 09:45 /etc/asterisk/iax_general_additional.conf
264815    8 -rw-rw-r--   1 asterisk asterisk     7111 Mar 28  2016 /etc/asterisk/res_ldap.conf
264247    8 -rw-rw-r--   1 asterisk asterisk     5916 Mar 28  2016 /etc/asterisk/ooh323.conf
264141    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/cel_general_custom.conf
264829    8 -rw-rw-r--   1 asterisk asterisk     6182 Mar 28  2016 /etc/asterisk/func_odbc.conf
264202    4 -rw-rw-r--   1 asterisk asterisk      834 Mar 28  2016 /etc/asterisk/res_snmp.conf
262625    4 -rw-rw-r--   1 asterisk asterisk      708 Aug 13 09:45 /etc/asterisk/features_applicationmap_additional.conf
264140    4 -rw-rw-r--   1 asterisk asterisk      783 Aug 13 09:45 /etc/asterisk/cel_general_additional.conf
264223    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/xmpp_general_custom.conf
264790    4 -rw-rw-r--   1 asterisk asterisk      712 Aug 13 09:45 /etc/asterisk/features_featuremap_additional.conf
264211    4 -rw-rw-r--   1 asterisk asterisk     2222 Mar 28  2016 /etc/asterisk/sorcery.conf
264191    4 -rw-rw-r--   1 asterisk asterisk      664 Aug 13 09:45 /etc/asterisk/queues_additional.conf
264937    4 -rw-rw-r--   1 asterisk asterisk      811 Aug 13 09:45 /etc/asterisk/indications.conf
264149    4 -rw-rw-r--   1 asterisk asterisk     1769 Aug 13 09:45 /etc/asterisk/confbridge_additional.conf
265230    4 -rw-rw-r--   1 asterisk asterisk     1363 Aug 13 09:45 /etc/asterisk/modules.conf
264144   68 -rw-rw-r--   1 asterisk asterisk    68014 Mar 28  2016 /etc/asterisk/chan_dahdi.conf
264077    4 -rw-rw-r--   1 asterisk asterisk      724 Mar 28  2016 /etc/asterisk/cdr_mysql.conf
264883    0 lrwxrwxrwx   1 asterisk asterisk       45 Mar 28  2016 /etc/asterisk/iax.conf -> /var/www/html/admin/modules/core/etc/iax.conf
264193    4 -rw-rw-r--   1 asterisk asterisk     1567 Mar 28  2016 /etc/asterisk/odbc.conf
264230    4 -rw-rw-r--   1 asterisk asterisk      791 Mar 28  2016 /etc/asterisk/hep.conf
264122    4 -rw-rw-r--   1 asterisk asterisk      338 Mar 28  2016 /etc/asterisk/app_skel.conf
264142    4 -rw-rw-r--   1 asterisk asterisk     1526 Mar 28  2016 /etc/asterisk/cel_sqlite3_custom.conf
264807    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/globals_custom.conf
264136    4 -rw-rw-r--   1 asterisk asterisk     2068 Mar 28  2016 /etc/asterisk/cdr_tds.conf
264849    4 -rw-rw-r--   1 asterisk asterisk     2097 Mar 28  2016 /etc/asterisk/agents.conf
264117    4 -rw-rw-r--   1 asterisk asterisk       50 Mar 28  2016 /etc/asterisk/enum.conf
264728    0 -rw-rw-r--   1 asterisk asterisk        0 Mar 28  2016 /etc/asterisk/ari_general_custom.conf

I have the same issue.

My temp solution: fwconsole ma uninstall ucp certman

Seems like the upgrade to php5.6 via ppa messed up my php installation as now some packages have to be php-xxx, some are php5-xxx and some are php5.6-xxx. Another issue on the dashboard which appeared today guided me into the right direction:

Cronmanager encountered 1 Errors
The following commands failed with the listed error
/var/lib/asterisk/bin/module_admin listonline > /dev/null 2>&1 (1)

So i executed:

root@asterisk:~$ sudo -u asterisk /var/lib/asterisk/bin/module_admin listonlin
[FATAL] PEAR must be installed (requires Console/Getopt.php). Include path: .:/usr/share/php

root@asterisk:~$ sudo pear install db-1.7.14
sudo: pear: command not found

root@asterisk:~$ apt install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  php-pear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/285 kB of archives.
After this operation, 2,186 kB of additional disk space will be used.
Selecting previously unselected package php-pear.
(Reading database ... 92702 files and directories currently installed.)
Preparing to unpack .../php-pear_1%3a1.10.5+submodules+notgz-1+ubuntu14.04.1+deb.sury.org+1_all.deb ...
Unpacking php-pear (1:1.10.5+submodules+notgz-1+ubuntu14.04.1+deb.sury.org+1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up php-pear (1:1.10.5+submodules+notgz-1+ubuntu14.04.1+deb.sury.org+1) ...

root@asterisk:~$ sudo pear channel-update pear.php.net
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded

root@asterisk:~$ pear install db-1.7.14
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
downloading DB-1.7.14.tgz ...
Starting to download DB-1.7.14.tgz (134,864 bytes)
.............................done: 134,864 bytes
install ok: channel://pear.php.net/DB-1.7.14

and finally the “Apply config” from gui succeded. Is it possible to check for the existence of pear, php-prear or the pear/DB and have a more explicit error message in that case?

I added [Solved] to the title.

The error said it required pear getopts not peardb. Nothing uses peardb anymore. We don’t even install it in the distro.

We do require pear getopts and we have a warning that says it’s not installed.

Might be that pear was an older version

seems more like php-pear was not installed at all. getopts is installed (now).

A post was split to a new topic: DAHDI module issue