After Update Asterisk Hangs and Won't Shutdown

Yesterday morning, we received the following notification from our FreePBX system:

"SECURITY NOTICE:

Updated Certificates:
Some SSL/TLS Certificates have been automatically updated. You may need to
ensure all services have the correctly update certificate by restarting PBX
services"

Seeing this, I tried to run “core restart gracefully”. It hung (would not complete) and I had to restart the box (CentOS).

Since then, I am constantly restarting Asterisk. It continues to be unresponsive. Once I restart it will work for anywhere between 5 minutes and 2 hours.

I am seeing some errors in /var/log/asterisk/full and /var/log/asterisk/freepbx.log but there are no errors when asterisk hangs and stops working. The errors I am seeing in “full” happen before the system hangs so not sure if they’re related or not. I see them when doing a fwconsole restart:

[2019-05-09 08:54:38] ERROR[14837] config_options.c: Unable to load config file ‘acl.conf’
[2019-05-09 08:54:38] NOTICE[14837] cdr.c: CDR simple logging enabled.
[2019-05-09 08:54:38] NOTICE[14837] loader.c: 318 modules will be loaded.
[2019-05-09 08:54:39] ERROR[14837] config_options.c: Unable to load config file ‘statsd.conf’
[2019-05-09 08:54:39] ERROR[14837] res_sorcery_config.c: Unable to load config file ‘codecs.conf’
[2019-05-09 08:54:39] ERROR[14837] res_sorcery_config.c: Unable to load config file ‘pjproject.conf’
[2019-05-09 08:54:39] ERROR[14837] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2019-05-09 08:54:39] ERROR[14837] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2019-05-09 08:54:39] ERROR[14837] res_pjsip_config_wizard.c: Unable to load config file ‘pjsip_wizard.conf’
[2019-05-09 08:54:39] NOTICE[14837] res_smdi.c: Unable to load config smdi.conf: SMDI disabled
[2019-05-09 08:54:39] NOTICE[14837] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[2019-05-09 08:54:39] WARNING[14837] res_stun_monitor.c: Unable to load config res_stun_monitor.conf
[2019-05-09 08:54:39] ERROR[14837] config_options.c: Unable to load config file ‘hep.conf’
[2019-05-09 08:54:39] ERROR[14837] res_calendar.c: Unable to load config calendar.conf
[2019-05-09 08:54:39] ERROR[14837] pbx_lua.c: Error loading extensions.lua: cannot open ‘/etc/asterisk/extensions.lua’ for reading: No such file or directory

The only error I see in freepbx.log is this:

[CRITICAL] (admin/bootstrap.php:260) - Connection attmempt to AMI failed

Any help would be appreciated. I’m not sure where to go with this. We installed FreePBX about 6 months ago and it’s been working great until now.

What version of Asterisk? Are you aware of this known issue:

Thanks for the link Lorne. I am running 15.7.2. It looks like I need to downgrade.

I would asterisk-version-switch to 16

Lorne - Thanks for the great, fast advice! I have changed to version 16.3. Everything seems to be working for now. I’ll cross my fingers and watch it through today.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.