We have been running a test setup of FreePBX with cheap SIP trunks and five phones for several months. It was a standard install of FreePBX w/Debian 12 to a new VM following the instructions. For the most part things appear to be working, but there are a few snags and each time I attempt to troubleshoot an issue, I am overwhelmed by the redundant benign entries in the logs…
The current known issue is that each time the VM is rebooted, the FreePBX Dashboard shows UCP Daemon with the red flame signal and “UCP is not running”.
Running ‘fwconsole pm2 --list’ returns
±--------------------------±-----±--------±---------±--------------------±-----±--------+
| Process Name | PID | Status | Restarts | Uptime | CPU | Mem |
±--------------------------±-----±--------±---------±--------------------±-----±--------+
| core-calltransfer-monitor | 0 | errored | 15 | 0 | 0% | 0.00B |
| core-fastagi | 2229 | online | 0 | 2 hours, 48 minutes | 0.4% | 61.16MB |
| ucp | 0 | errored | 15 | 0 | 0% | 0.00B |
±--------------------------±-----±--------±---------±--------------------±-----±--------+
Running ‘fwconsole pm2 --restart ucp’ returns “Process Restarted” and the UCP Daemon gets a green checkmark on the dashboard but core-calltransfer-monitor remains as “errored” & after reboot, it’s failed again.
The ‘errors’ in /var/log/asterisk/full are
ERROR[156004] loader.c: Error loading module ‘chan_local.so’: /lib/x86_64-linux-gnu/asterisk/modules/chan_local.so: cannot open shared object file: No such file or directory
ERROR[156004] loader.c: Error loading module ‘res_pjsip_phoneprov_provider.so’, missing dependency: res_phoneprov
modules.conf includes [modules] noload = res_phoneprov.so
ERROR[156004] loader.c: res_timing_dahdi declined to load.
ERROR[156004] loader.c: chan_mobile declined to load.
ERROR[156004] loader.c: cdr_csv declined to load.
ERROR[156004] loader.c: cdr_sqlite3_custom declined to load.
ERROR[156004] loader.c: cel_sqlite3_custom declined to load.
ERROR[156004] loader.c: res_hep_rtcp declined to load.
ERROR[156004] loader.c: res_hep_pjsip declined to load.
ERROR[1484] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory
These seem to be more than a warning…
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database password found, using ‘asterisk’ as default.
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database name found, using ‘asterisk’ as default.
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database socket found, using ‘/var/run/mysqld/mysqld.sock’ as default.
WARNING[1373] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
WARNING[1484] loader.c: Some non-required modules failed to load.
Apart from those I have tens of thousands of lines similar to
pbx_config.c: The use of ‘_.’ for an extension is strongly discouraged and can have unexpected behavior. Please use ‘_X.’ instead at line 2676 of /etc/asterisk/extensions_additional.conf
And lots of lines similar to
pbx.c: Context ‘ext-local-confirm’ tries to include nonexistent context ‘ext-local-confirm-custom’
The /var/log/asterisk/freepbx.log has
[freepbx.INFO]: Starting Call Transfer Monitoring Service
[freepbx.INFO]: Stopping Call Transfer Monitoring Service
[freepbx.INFO]: Restarting Call Transfer Monitoring Service
[freepbx.INFO]: Connection attmempt to AMI failed
[freepbx.INFO]: Call Trasnfer Event listener
then
[freepbx.INFO]: Connection attmempt to AMI failed
[freepbx.INFO]: Call Trasnfer Event listener
repeats endlessly…
Can you help me understand what entries are safe to ignore, which are a problem and what may be a solution to the UCP not starting properly?
TIA