I got a problem with a SNG Distro. On rebooting asterisk does not start at all and I am not sure what logs should I check to find out what is causing it. I got the following
[root@utelit-vm-pbx monitor]# systemctl status freepbx
● freepbx.service - FreePBX VoIP Server
Loaded: loaded (/usr/lib/systemd/system/freepbx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-04-03 08:45:38 EEST; 1h 5min ago
Process: 1482 ExecStart=/usr/sbin/fwconsole start (code=exited, status=1/FAILURE)
Main PID: 1482 (code=exited, status=1/FAILURE)
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: [------------->--------------] 12 secs
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: [-------------->-------------] 13 secs
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: [--------------->------------] 13 secs
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: In Start.class.php line 181:
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: Unable to connect to Asterisk. Did it start?
Apr 03 08:44:14 utelit-vm-pbx fwconsole[1482]: start [--pre] [--post] [--skipchown] [--] [<args>]...
Apr 03 08:44:14 utelit-vm-pbx systemd[1]: freepbx.service: main process exited, code=exited, status=1/FAILURE
Apr 03 08:45:38 utelit-vm-pbx systemd[1]: Failed to start FreePBX VoIP Server.
Apr 03 08:45:38 utelit-vm-pbx systemd[1]: Unit freepbx.service entered failed state.
Apr 03 08:45:38 utelit-vm-pbx systemd[1]: freepbx.service failed.
[root@utelit-vm-pbx monitor]# systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
Distro is 12.7.4-1803-1.sng7 (SNG7) with all the current updates. It is in a VM (ESXi) and it was updated some months ago from FreePBX Distro 6.10
Could you give a little more detail on how to do that?
My issue is when it restarts after a power outage that outlasts our UPS I need it to be up and running automatically. Can’t rely on any one to know how to do anything at all.
(At the same time, it seems that if I wait a few minutes it does eventually restart asterisk, but I’m not sure if that is from me reloading the GUI to check–is there any way of seeing at what point in the startup the asterisk connection was made?)
Thanks so much for that. I know this might be off topic, but after the shut-down/restart from power outage, I need to reboot all phones to get BLF back up.
Could I put a line in this same file to automate the reboot of the phones after the fwconsole restart ?
I am thinking ```
pjsip send notify reboot-yealink endpoint [extn numbers]
I found that line did work from the CLI-the phones rebooted.
Are you saying I would need to alter the config file in that way, and then alter the /etc/local.rc file with the 2nd part of your answer if I want the phones to reboot automatically after restarting Asterisk?