Reloading takes a lot

Hi there. Just updated a production server from 2.11 to 12. Unfortunately the reload is taking from 3 to 5 minutes.
So current version is : 6.12.65-24

Module list:

accountcodepreserve 2.11.0.0 Enabled
announcement 2.11.0.4 Enabled
asterisk-cli 2.11.0.3 Enabled
asteriskinfo 12.0.1 Enabled
backup 12.0.10 Enabled
blacklist 12.0.1 Enabled
builtin Enabled
bulkdids 2.11.1.4 Enabled
bulkextensions 2.11.0.7 Enabled
callback 2.11.0.4 Enabled
callforward 12.0.5 Enabled
callrecording 12.0.1.2 Enabled
callwaiting 12.0.3 Enabled
campon 2.11.0.2 Enabled
cdr 12.0.13 Enabled
cidlookup 2.11.1.11 Enabled
conferences 12.0.10 Enabled
core 12.0.17 Enabled
customappsreg 2.11.0.2 Enabled
cxpanel 3.1.9 Enabled
dashboard 12.0.21 Enabled
daynight 2.11.0.4 Enabled
dictate 2.11.0.3 Enabled
directory 12.0.1 Enabled
disa 12.0.2 Enabled
donotdisturb 12.0.3 Enabled
dundicheck 2.11.0.3 Enabled
extensionsettings 2.11.0.2 Enabled
fax 12.0.7 Enabled
featurecodeadmin 12.0.1 Enabled
findmefollow 12.0.11 Enabled
framework 12.0.29 Enabled
fw_ari 12.0.7 Enabled
fw_langpacks 2.11.2 Enabled
hotelwakeup 2.11.3 Enabled
iaxsettings 2.11.0.3 Enabled
infoservices 2.11.0.3 Enabled
irc 2.11.0.4 Enabled
ivr 2.11.0.10 Enabled
javassh 2.11.2 Enabled
languages 2.11.0.2 Enabled
logfiles 12.0.6 Enabled
manager 12.0.2 Enabled
miscapps 2.11.0.2 Enabled
miscdests 2.11.0.4 Enabled
music 12.0.1 Enabled
outroutemsg 2.11.0.2 Enabled
paging 12.0.9 Enabled
parking 12.0.8 Enabled
pbdirectory 2.11.0.1 Enabled
phonebook 2.11.0.2 Enabled
phpagiconf 2.11.0.0 Enabled
phpinfo 2.11.0.1 Enabled
pinsets 2.11.0.9 Enabled
presencestate 12.0.16 Enabled
printextensions 2.11.0.1 Enabled
queueprio 2.11.0.2 Enabled
queues 12.0.16 Enabled
recordings 12.0.4 Enabled
restart 12.0.1 Enabled
ringgroups 12.0.2 Enabled
setcid 2.11.0.4 Enabled
sipsettings 12.0.7 Enabled
sipstation 12.0.3 Enabled
speeddial 2.11.0.2 Enabled
sysadmin Not Installed (Locally available)
timeconditions 12.0.6 Enabled
ucp 12.0.0beta45 Enabled
userman 12.0.21 Enabled
vmblast 12.0.1 Enabled
voicemail 12.0.27 Enabled
weakpasswords 12.0.2 Enabled

DNS is resolving.

Here is sample from amportal a dbug:

Fetching FreePBX settings with gen_amp_conf.php…

trying to run as user asterisk:

[FPBXDBUGDISABLE] already set to [0]

==> /var/log/asterisk/freepbx_dbug <==

2015-Jan-10 22:56:04 /var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with ‘#’ are deprecated in Unknown on line 25

2015-Jan-10 22:56:04 /var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with ‘#’ are deprecated in Unknown on line 21

2015-Jan-10 22:56:04 /var/www/html/admin/libraries/BMO/GPG.class.php:510
[DEPRECATION_WARNING]: Comments starting with ‘#’ are deprecated in Unknown on line 18

==> /var/log/httpd/error_log <==
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 2200, referer: http://192.168.85.233/admin/config.php
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1217, referer:
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1666,
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 1387, referer:
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1683, referer:
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically in /var/www/html/admin/libraries/sql.functions.php on line 24, referer:
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isManip() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 2200, referer: http://192.168.85.233/admin/config.php
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1217,
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB/common.php on line 1292, referer:
[Sat Jan 10 21:53:05 2015] [error] [client 192.168.85.20] PHP Strict Standards: Non-static method DB::isError() should not be called statically, assuming $this from incompatible context in /usr/share/pear/DB.php on line 1387, referer:

==> /var/log/asterisk/freepbx.log <==
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: TRUNK_OPTIONS = Tt
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: TRUNK_RING_TIMER = 300
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: MIXMON_FORMAT = wav
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: REC_POLICY = caller
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: RINGTIMER_DEFAULT = 15
[2015-Jan-10 22:53:55] [INFO] (core/functions.inc.php:1956) - Added to globals: TRANSFER_CONTEXT = from-internal-xfer
[2015-Jan-10 22:59:31] [INFO] (bin/freepbx_setting:42) - trying to run as user asterisk:
[2015-Jan-10 22:59:31] [INFO] (bin/freepbx_setting:43) -
[2015-Jan-10 22:59:31] [INFO] (bin/freepbx_setting:64) - [FPBXDBUGDISABLE] already set to [0]
[2015-Jan-10 22:59:31] [INFO] (bin/freepbx_setting:65) -

Thanks!

How long does it take when you run it on the command line:

Amportal a r

it takes about the same 3-4 minutes

How many extensions do you have

Around 25 extensions and 2 sip trunks.
By the way this is what i get with gpg --refresh-keys:
[root@FreePBX01 ~]# gpg --refresh-keys
gpg: refreshing 1 key from hkp://keys.gnupg.net
gpg: requesting key 11F63C51 from hkp server keys.gnupg.net
gpg: key 11F63C51: “Jamie Cameron [email protected]” not changed
gpg: Total number processed: 1
gpg: unchanged: 1

Why would you run gpg refresh keys?

I’ve read it in one of threads on the forum(try if the system is resolving the gpg servers). Any tips what can I try to resolve the issue?

I had similar problem, see [Solved] Upgrade from 6.12.65-20 to 6.12.65-23 now very slow
I had to open up TCP port 11371 outgoing from the server, this is used to access the PGP servers. So check you can resolve DNS lookups and allow that port outgoing. I went from about 5 minutes reload time down to 20 seconds.

I’ve already tried that but it seems that my problem is not the same.

What is the order of you DNS servers in Sys Admin module?
Make sure 127.0.0.1 is top then add your DNS servers below.
I had same issue today with server i moved from test to production and site had different subnet.
Hope this helps.

1 Like

Thanks a lot pezzz! Your suggestion resolved the issue for me!