Ticket #5296 (closed Bugs: fixed)

Opened 10 months ago

Last modified 3 months ago

Orange bar reload from Asterisk SIP settings page never returns

Reported by: michigantelephone Assigned to: p_lindheimer
Priority: minor Milestone: 2.10
Component: Asterisk SIP Settings Version: 2.9-branch
Keywords: Cc:
Confirmation: Need Feedback SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

If you try to do an orange bar reload from within the Asterisk SIP settings page (even if you actually made changes elsewhere and just happened to land on that page before doing the reload), the screen never returns - it acts like the reload never finishes, but in fact it does. Conversely, if you make changes on the Asterisk SIP settings page but then go to a different page before doing the orange bar reload, it works just fine. So there's something going on with the orange bar reload from that page.

Observed in the FreePBX Distro (FreePBX 2.9).

Change History

07/31/11 23:35:00 changed by mickecarlsson

  • confirmation changed from Unreviewed to Need Feedback.

I have tested this on two installs of the distro and I can't duplicate it.

Please do cat /etc/asterisk/freepbxdistro-version and /var/lib/asterisk/bin/module_admin list and post the output in this ticket.

Please paste the text withing three curly brackets:

{{{
Output from the above command
}}}

(follow-up: ↓ 3 ) 08/06/11 02:30:17 changed by michigantelephone

# cat /etc/asterisk/freepbxdistro-version
1.8.2.0-1

# /var/lib/asterisk/bin/module_admin list
no repos specified, using: [standard,extended,unsupported] from last GUI settings

Module              Version           Status
------------------- ----------------- ------------------- 
announcement        2.9.0.2           Enabled
asterisk-cli        2.9.0.2           Enabled
asteriskinfo        2.9.0.3           Enabled
backup              2.9.0.3           Enabled
blacklist           2.9.0.1           Enabled
builtin                               Enabled
bulkdids            2.9.0.2           Enabled
bulkextensions      2.9.0.5           Enabled
callback            2.9.0.4           Enabled
callforward         2.9.0.1           Enabled
callwaiting         2.9.0.0           Enabled
campon              2.9.0.0           Enabled
cdr                 2.10.0.alpha5     Enabled
cidlookup           2.9.0.5           Enabled
conferences         2.9.0.2           Enabled
core                2.9.0.1           Enabled
customappsreg       2.9.0.1           Enabled
dashboard           2.9.0.4           Enabled
daynight            2.9.0.3           Enabled
dictate             2.9.0.0           Enabled
directory           2.9.0.10          Enabled
disa                2.9.0.4           Enabled
donotdisturb        2.9.0.1           Enabled
dundicheck          2.9.0.1           Enabled
extensionsettings   2.9.0.0           Enabled
fax                 2.9.0.5           Enabled
featurecodeadmin    2.9.0.0           Enabled
findmefollow        2.9.0.6           Enabled
framework           2.9.0.7           Enabled
fw_ari              2.9.0.6           Enabled
fw_fop              2.9.0.1           Enabled
fw_langpacks        2.9.0.1           Enabled
googlevoice         0.1.1             Enabled
hotelwakeup         1.2.4             Enabled
iaxsettings         2.9.0.4           Enabled
infoservices        2.9.0.0           Enabled
irc                 2.9.0.1           Enabled
ivr                 2.9.0.5           Enabled
javassh             2.9.0.0           Enabled
languages           2.9.0.2           Enabled
logfiles            2.9.0.1           Enabled
manager             2.9.0.3           Enabled
miscapps            2.9.0.2           Enabled
miscdests           2.9.0.1           Enabled
music               2.9.0.1           Enabled
outroutemsg         2.9.0.1           Enabled
paging              2.9.0.5           Enabled
parking             2.9.0.4           Enabled
pbdirectory         2.9.0.2           Enabled
phonebook           2.9.0.2           Enabled
phpagiconf          2.9.0.2           Enabled
phpinfo             2.9.0.1           Enabled
pinsets             2.9.0.1           Enabled
printextensions     2.9.0.1           Enabled
queueprio           2.9.0.1           Enabled
queues              2.9.0.12          Enabled
recordings          3.3.11.2          Enabled
restart             2.9.0.2           Enabled
ringgroups          2.9.0.6           Enabled
sak                 2.0.3             Enabled
setcid              2.9.0.1           Enabled
sipsettings         2.9.0.5           Enabled
sipstation          2.9.0.1           Enabled
speeddial           2.9.0.1           Enabled
superfecta          2.2.5             Enabled
sysadmin            2.9.0.17          Enabled
timeconditions      2.9.0.7           Enabled
vmblast             2.9.0.3           Enabled
voicemail           2.9.0.5           Enabled
weakpasswords       2.9.0.1           Enabled

I just tested this again and am still having the issue. Sorry I did not reply sooner but apparently I'm not receiving notifications when someone replies to a ticket I opened, so I just saw this tonight.

(in reply to: ↑ 2 ) 08/06/11 02:34:49 changed by michigantelephone

I wasn't receiving notifications, but tonight I did, of my own changes. Go figure...

08/07/11 16:41:02 changed by mickecarlsson

Could you please disable the following modules and test if Sip Settings is working:

Module              Version           Status
------------------- ----------------- ------------------- 
hotelwakeup         1.2.4             Enabled
sak                 2.0.3             Enabled
superfecta          2.2.5             Enabled

I have tested FreePBX with all the other modules, and I can't duplicate it so I suspect one of the three remaining contributed modules.

08/07/11 17:00:26 changed by michigantelephone

I was able to disable these two:

hotelwakeup         1.2.4             Disabled
sak                 2.0.3             Disabled

Apparently neither of these are causing the oroblem. The reason I did not disable Superfecta was because there is no disable option, at least not in the version I am running (2.2.5, although I was running 2.2.4 when I first noticed this issue). The only option is to uninstall, and right now I'd rather not to that because if you do, it uninstalls the entire configuration and removes itself as a Caller ID lookup source from your Inbound Routes. So what I am going to do now is go onto their bug tracker and request a disable option, and see if perhaps they might be able to implement that before I need to go through the trouble of essentially wiping and having to reinstall and reconfigure the module.

08/07/11 18:53:42 changed by michigantelephone

I now have Superfecta 2.2.5.1 which has the disable option (thanks, tm1000) so...

# /var/lib/asterisk/bin/module_admin list
no repos specified, using: [standard,extended,unsupported] from last GUI settings

Module              Version           Status
------------------- ----------------- ------------------- 
announcement        2.9.0.2           Enabled
asterisk-cli        2.9.0.2           Enabled
asteriskinfo        2.9.0.3           Enabled
backup              2.9.0.3           Enabled
blacklist           2.9.0.1           Enabled
builtin                               Enabled
bulkdids            2.9.0.2           Enabled
bulkextensions      2.9.0.5           Enabled
callback            2.9.0.4           Enabled
callforward         2.9.0.1           Enabled
callwaiting         2.9.0.0           Enabled
campon              2.9.0.0           Enabled
cdr                 2.10.0.alpha5     Enabled
cidlookup           2.9.0.5           Enabled
conferences         2.9.0.2           Enabled
core                2.9.0.1           Enabled
customappsreg       2.9.0.1           Enabled
dashboard           2.9.0.4           Enabled
daynight            2.9.0.3           Enabled
dictate             2.9.0.0           Enabled
directory           2.9.0.10          Enabled
disa                2.9.0.4           Enabled
donotdisturb        2.9.0.1           Enabled
dundicheck          2.9.0.1           Enabled
extensionsettings   2.9.0.0           Enabled
fax                 2.9.0.5           Enabled
featurecodeadmin    2.9.0.0           Enabled
findmefollow        2.9.0.6           Enabled
framework           2.9.0.7           Enabled
fw_ari              2.9.0.6           Enabled
fw_fop              2.9.0.1           Enabled
fw_langpacks        2.9.0.1           Enabled
googlevoice         0.1.1             Enabled
hotelwakeup         1.2.4             Disabled
iaxsettings         2.9.0.4           Enabled
infoservices        2.9.0.0           Enabled
irc                 2.9.0.1           Enabled
ivr                 2.9.0.5           Enabled
javassh             2.9.0.0           Enabled
languages           2.9.0.2           Enabled
logfiles            2.9.0.1           Enabled
manager             2.9.0.3           Enabled
miscapps            2.9.0.2           Enabled
miscdests           2.9.0.1           Enabled
music               2.9.0.1           Enabled
outroutemsg         2.9.0.1           Enabled
paging              2.9.0.5           Enabled
parking             2.9.0.4           Enabled
pbdirectory         2.9.0.2           Enabled
phonebook           2.9.0.2           Enabled
phpagiconf          2.9.0.2           Enabled
phpinfo             2.9.0.1           Enabled
pinsets             2.9.0.1           Enabled
printextensions     2.9.0.1           Enabled
queueprio           2.9.0.1           Enabled
queues              2.9.0.12          Enabled
recordings          3.3.11.2          Enabled
restart             2.9.0.2           Enabled
ringgroups          2.9.0.6           Enabled
sak                 2.0.3             Disabled
setcid              2.9.0.1           Enabled
sipsettings         2.9.0.5           Enabled
sipstation          2.9.0.1           Enabled
speeddial           2.9.0.1           Enabled
superfecta          2.2.5.1           Disabled
sysadmin            2.9.0.17          Enabled
timeconditions      2.9.0.7           Enabled
vmblast             2.9.0.3           Enabled
voicemail           2.9.0.5           Enabled
weakpasswords       2.9.0.1           Enabled

And the problem persists. I made re-submitted one of my Misc. Destinations, then went to the SIP settings module, clicked the orange bar, and as I write this the frog is still happily eating flies.

08/07/11 18:54:37 changed by michigantelephone

Should have read, "I re-submitted one of my Misc. Destinations..."

08/07/11 19:19:43 changed by tm1000

What browser are you using (this is so I can determine what type of javascript console you have)

08/07/11 20:18:43 changed by michigantelephone

I have tried (and had the same issue in) the following browsers:

Firefox 3.6.19 (Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.19) Gecko/20110707 Firefox/3.6.19) Safari Version 5.0.5 (5533.21.1) Camino Version 2.0.7 (1.9.0.19 2011032020) Google Chrome Version 12.0.742.122

In Opera I had the same issue, except the frog disappeared and the orange box changed to an error message that read:

Error: Did not receive valid response from server

XHR response code: 0 XHR responseText: undefined jQuery status: timeout x Close

If I clicked on the close link the grey box would go away. The Opera version is 11.50 (Opera/9.80 (Macintosh; Intel Mac OS X 10.5.8; U; en) Presto/2.9.168 Version/11.50)

Just to make sure the issue wasn't Mac-related or OS X related, I also tried from a Ubuntu system running Firefox 3.6.18, with the same result.

08/08/11 00:45:12 changed by mickecarlsson

Just a thought, could you please do this:

find /var/www/html/admin/modules -name ._* -type f

If you find any file with that starts with ._, delete them and try again, clear cache in browser first.

08/08/11 00:55:01 changed by michigantelephone

find /var/www/html/admin/modules -name ._* -type f

returned nothing at all. Sorry. However, in checking that directory using Midnight Commander, I do find an empty directory called _cache (no . in front of the name, though). I assume that is supposed to be there?

08/08/11 01:10:31 changed by michigantelephone

Something occurred to me. I looked in /var/log/httpd/error.log and noted several instances of this error:

[Sun Aug 07 21:11:51 2011] [error] [client 192.168.0.25] File does not exist: /var/www/html/favicon.ico

Three of those were from the local IP address of my Ubuntu box, and the ONLY time I accessed the FreePBX server from my Ubuntu box was when I was testing Firefox from there (as reported in my post with the timestamp 08/07/11 18:18:43). A missing favicon.ico file couldn't cause this, could it?

08/08/11 01:16:02 changed by tm1000

the favicon.ico won't be the issue

Go to "Advanced Settings"

Turn "Disable FreePBX dbug Logging" to FALSE

Login as root, run 'amportal a dbug'

Then do a reload through the orange bar. Report back here

08/08/11 01:29:16 changed by michigantelephone

Nope, it wasn't. I made a symlink to /var/www/html/admin/images/favicon.ico and put it in /var/www/html/ and as you said it was not the issue. After following your instructions, I got this:

# amportal a dbug

Please wait...

==> /tmp/freepbx_debug.log <==

2011-Aug-08 02:13:55    /var/www/html/admin/modules/iaxsettings/functions.inc.php:167
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:13:55    /var/www/html/admin/modules/iaxsettings/functions.inc.php:168
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:13:55    /var/www/html/admin/modules/iaxsettings/functions.inc.php:199
[NOTICE]: Undefined variable: iax_settings


==> /var/log/httpd/error_log <==
[Sun Aug 07 04:02:10 2011] [notice] Digest: generating secret for digest authentication ...
[Sun Aug 07 04:02:10 2011] [notice] Digest: done
[Sun Aug 07 04:02:10 2011] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Sun Aug 07 20:43:48 2011] [error] [client 192.168.0.21] File does not exist: /var/www/html/favicon.ico, referer: http://192.168.0.100/
[Sun Aug 07 20:48:12 2011] [error] [client 192.168.0.21] File does not exist: /var/www/html/favicon.ico, referer: http://192.168.0.100/
[Sun Aug 07 20:55:31 2011] [error] [client 192.168.0.21] File does not exist: /var/www/html/favicon.ico
[Sun Aug 07 20:59:49 2011] [error] [client 192.168.0.21] File does not exist: /var/www/html/favicon.ico
[Sun Aug 07 21:11:51 2011] [error] [client 192.168.0.25] File does not exist: /var/www/html/favicon.ico
[Sun Aug 07 21:11:54 2011] [error] [client 192.168.0.25] File does not exist: /var/www/html/favicon.ico
[Sun Aug 07 21:25:35 2011] [error] [client 192.168.0.25] File does not exist: /var/www/html/favicon.ico, referer: http://192.168.0.100/

==> /tmp/freepbx_debug.log <==
2011-Aug-08 02:19:23    /var/www/html/admin/modules/miscdests/page.miscdests.php:103
[NOTICE]: Undefined variable: tabindex

2011-Aug-08 02:19:29    /var/www/html/admin/modules/miscdests/page.miscdests.php:103
[NOTICE]: Undefined variable: tabindex

2011-Aug-08 02:19:34    /var/www/html/admin/modules/miscdests/page.miscdests.php:103
[NOTICE]: Undefined variable: tabindex

2011-Aug-08 02:20:00    /var/www/html/admin/modules/hotelwakeup/functions.inc.php:40
[NOTICE]: Use of undefined constant wakeupphp - assumed 'wakeupphp'

2011-Aug-08 02:20:02    /var/www/html/admin/modules/iaxsettings/functions.inc.php:155
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:20:02    /var/www/html/admin/modules/iaxsettings/functions.inc.php:167
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:20:02    /var/www/html/admin/modules/iaxsettings/functions.inc.php:168
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:20:02    /var/www/html/admin/modules/iaxsettings/functions.inc.php:199
[NOTICE]: Undefined variable: iax_settings

The entries at 02:19 were where I re-submitted a Misc. Destination, while the ones at 02:20 would have been when I did the orange bar reload. What I don't get is why it's referring to /var/www/html/admin/modules/iaxsettings… since I have never even attempted to configure IAX settings, and this issue is occurring in the SIP settings module.

08/08/11 01:38:24 changed by michigantelephone

Because there was one complaint about hotelwakeup I again disabled that module, but when I did another reload the results were the same minus the hotelwakeup undefined constant notice:

==> /tmp/freepbx_debug.log <==
2011-Aug-08 02:34:52    /var/www/html/admin/modules/iaxsettings/functions.inc.php:155
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:34:52    /var/www/html/admin/modules/iaxsettings/functions.inc.php:167
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:34:52    /var/www/html/admin/modules/iaxsettings/functions.inc.php:168
[NOTICE]: Undefined variable: interim_settings

2011-Aug-08 02:34:52    /var/www/html/admin/modules/iaxsettings/functions.inc.php:199
[NOTICE]: Undefined variable: iax_settings

08/08/11 01:49:28 changed by mbrevda

@tm1000, disabling dbug logging wont disable apache logging

@michigantelephone, "Undefined variable" error's are 99.9% harmless and are almost NEVER error's that the user needs to worry about

08/08/11 01:53:48 changed by tm1000

@mbrevda I never said that. Anywhere. What I did say was 'Turn "Disable FreePBX dbug Logging" to FALSE' so that the dbug commands would work.

08/08/11 03:59:20 changed by mbrevda

@ tm1000, my bad

(follow-up: ↓ 20 ) 02/16/12 13:29:10 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to fixed.

testing this on 2.10, appears to work fine so closing as fixed at some point.

(in reply to: ↑ 19 ) 03/01/12 01:22:33 changed by Socs28

Replying to p_lindheimer:

testing this on 2.10, appears to work fine so closing as fixed at some point.

I just updated my 2.10 systems to final and 2 of seven are now having this same problem. All my modules are basic or extended, and all my systems are on 1.89.210.57.

03/01/12 13:29:25 changed by p_lindheimer

if you can provide some repro steps that we can make the same happen then we can re-open or file a new bug. Can you check to see if there are any php errors in your httpd error log, as well as in the debug log?

03/08/12 19:58:30 changed by Socs28

Sorry this has taken so long. The repro steps would just be updating the modules via the web interface. I found similar undefined variable messages to what have been posted previously. I finally got back to looking at them tonight and decided to run the update script to 1.89.210.52-2 which ran the last two updates that came through. I know fw_ari was one of them. Well, that has fixed the problem. I had updated other modules since without fixing this issue, but running that update did fix it.