"Apply Config" takes a long time

Hello,

Recently when “applying config” changes it used to be fairly quick now it takes around 5 minutes. Is this normal? Best resources are barely being hit in terms of cpu, ram, or storage. System has about 400 extensions.

System is freepbx 17 on debian 12.

I searched around but couldnt find anything helpful.

Any Ideas?

Thanks,

Can you test (using the console), to run : fwconsole r
And check if you’ve got the same run time.

from console it went faster

"root@pbx:~# time fwconsole reload
Reload Started
Reload Complete

real 1m16.625s
user 0m9.919s
sys 0m2.133s
"

I suspect an issue with the framework or core module calling an incorrect URL with a timeout. I don’t remember exactly where the problem is.

This issue is present on 16 as well.

Out of interest, do you have your localhost added to DNS? I seem to remember a while back that has been known to cause issues.

no custom dns entries

What I mean is, in System Admin under DNS is your localhost showing? If not I would add to that.

Add a legit FQDN to /etc/hosts in same line as localhost.

1 Like

Sometimes disabling some modules that you are not using will help with this.

Such as Sangoma Talk/Connect, Zulu, xmapp, isymphony.

This makes more of a difference in asterisk restarts, but wouldn’t hurt.

Also you may want to try a reinstall of framework.

fwconsole ma downloadinstall framework

Check your full log to see if anything is reported.

/var/log/asterisk/full

3 Likes

Also, try running fwconsole reload --verbose

root@pbx:~# fwconsole reload --verbose
Reload Started
Reload Complete
root@pbx:~#

not too helpful, try

time fwconsole reload --verbose

How about disable signature check? Just for testing purposes.