XHR response code: 503 XHR responseText: undefined jQuery status: error

freepbx
configuration
Tags: #<Tag:0x00007f702a71aba0> #<Tag:0x00007f702a71a948>

(Lmon) #1

Hi,
I get exactly the error and behavior described in this github. From my understanding ,it is solved ???
I read a workaround increasing the timeout but I don’t really understand where this value is ? ( apache , freepbx , asterisk ? )
thanks

Error: Did not receive valid response from server

XHR response code: 503 XHR responseText: undefined jQuery status: error

Link : Lien Github


(Lmon) #2

anyone ?


(Shahin Nazir) #3

Hi @lmon
I saw below issue on my PBX 15 once time. I fixed this issue running below command.
fwconsole chown
fwconsole r --verbose


Thanks.


(Lmon) #4

Hi
Thanks a lot for your interest.
No changes unfortunatly :

root@FreePBX~# fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 19815 [============================]
Finished setting permissions
root@FreePBX~# fwconsole r --verbose
Reload Started
Reload Complete
root@FreePBX~#

(Shahin Nazir) #5

Hi
you are still seeing same issue? Which version FreePBX is this ?
Could you pls pass here your error screenshot pls.
On CLI we do not see any Asterisk Apply config error… fwconsole r --verbose clear.

You can try and this command.
‘chown -R /var/lib/php/session’


(Lmon) #6

HI @snazir,
Yes same error.
Here are all infos :
it is so on Ubuntu 18.04.4 LTS
I have installed FreePBX 15.0.16.49
I’m running #CLI> core show version
Asterisk 16.9.0 built by root @ MyIP on a x86_64 running Linux on 2020-04-02 20:12:36 UTC

And I already tried ( modified command with appropriate username ) ‘chown -R asterisk /var/lib/php/session’ , with out sucess
Here is the screenshot :

image


(Dave Burgess) #7

Did you search the forum and look at some of the “XHR Response” threads there? Many of them refer to incorrect version or bad installs of some of the “yum” updateable software components which you may need to upgrade.


(Lmon) #8

@cynjut hi ,
yes, I checked the different solutions even if it was not the same error code ( ie : do the Chown manually on session directory, fwconsole chown, update modules to the latest version manually …etc… )
nothing …


(Dave Burgess) #9

I’m done guessing.

Without more information, there’s no way anyone on this forum is going to be able to help you.


(Lmon) #10

Well That’s all my point :
the unique output / notification I have so far is that error message.
Otherwise, I have no errors

apache error logs : no lines at all

FreePBX.log :

[2020-Apr-30 16:05:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71 [] []
[2020-Apr-30 16:05:01] [freepbx.INFO]: Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80 [] []
[2020-Apr-30 16:05:02] [freepbx.INFO]: Deprecated way to add Console commands for module api, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-Apr-30 16:05:02] [freepbx.INFO]: Deprecated way to add Console commands for module backup, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
[2020-Apr-30 16:05:02] [freepbx.INFO]: Deprecated way to add Console commands for module voicemail, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []

restarting the daemon :

root@FreePBX/var/log/asterisk# fwconsole r --verbose
Reload Started
Reload Complete

full log file :

[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'app_playback.so' (Sound File Playback Application)
[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'app_amd.so' (Answering Machine Detection Application)
[2020-04-30 14:06:06] VERBOSE[11137] app_amd.c: AMD defaults: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] maximumWordLength [5000]
[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'res_http_post.so' (HTTP POST support)
[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System))
[2020-04-30 14:06:06] WARNING[11137] app_voicemail.c: maxsilence should be less than minsecs or you may get empty messages
[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'codec_dahdi.so' (Generic DAHDI Transcoder Codec Translator)
[2020-04-30 14:06:06] VERBOSE[11137] loader.c: Reloading module 'app_queue.so' (True Call Queueing)
[2020-04-30 14:06:06] NOTICE[11137] app_queue.c: No queuerules.conf file found, queues will not follow penalty rules
[2020-04-30 14:06:06] VERBOSE[11137] asterisk.c: Remote UNIX connection disconnected

any other file or error output that you would need ?


(Shahin Nazir) #11

Hi @lmon
I agree with @cynjut. you need to give us good description and more information.

So Could you pls try to upgrade your PBX All Modules to --EDGE version.
fwconsole sa u
fwconsole ma refreshsignatures
fwconsole ma --edge upgradeall
fwconsole chown
fwconsole r --verbose
fwconsole restart

Thanks.


(Lorne Gaetz) #12

When posting for help in this forum begin ALL posts with the fact that you are running a self install on ubuntu.


(Lmon) #13

Thanks , so here are the full results of the comands.
somehting maybe weird : I don’t have the sysadmin command available ( alias or full command )

root@FreePBX/var/log/asterisk# fwconsole ma refreshsignatures
Getting Data from Online Server...
Done
Checking Signatures of Modules...
Checking accountcodepreserve...
Good
Checking amd...
Good
Checking announcement...
Good
Checking api...
Good
Checking arimanager...
Good
Checking asterisk-cli...
Good
Checking asteriskinfo...
Good
Checking backup...
Good
Checking blacklist...
Good
Checking builtin...
Checking bulkhandler...
Good
Checking calendar...
Good
Checking callback...
Good
Checking callforward...
Good
Checking callrecording...
Good
Checking callwaiting...
Good
Checking cdr...
Good
Checking cel...
Good
Checking certman...
Good
Checking cidlookup...
Good
Checking conferences...
Good
Checking configedit...
Good
Checking contactmanager...
Good
Checking core...
Good
Checking customappsreg...
Good
Checking customcontexts...
Good
Checking cxpanel...
Good
Checking dahdiconfig...
Good
Checking dashboard...
Good
Checking daynight...
Good
Checking dictate...
Good
Checking directory...
Good
Checking disa...
Good
Checking donotdisturb...
Good
Checking dundicheck...
Good
Checking extensionsettings...
Good
Checking fax...
Good
Checking featurecodeadmin...
Good
Checking filestore...
Good
Checking findmefollow...
Good
Checking framework...
Good
Checking fw_langpacks...
Good
Checking hotelwakeup...
Good
Checking iaxsettings...
Good
Checking infoservices...
Good
Checking irc...
Good
Checking ivr...
Good
Checking languages...
Good
Checking logfiles...
Good
Checking manager...
Good
Checking miscapps...
Good
Checking miscdests...
Good
Checking music...
Good
Checking outroutemsg...
Good
Checking paging...
Good
Checking parking...
Good
Checking pbdirectory...
Good
Checking phonebook...
Good
Checking phpinfo...
Good
Checking pinsets...
Good
Checking pm2...
Good
Checking presencestate...
Good
Checking printextensions...
Good
Checking queueprio...
Good
Checking queues...
Good
Checking recordings...
Good
Checking restapi...
Good
Checking restart...
Good
Checking ringgroups...
Good
Checking setcid...
Good
Checking sipsettings...
Good
Checking sipstation...
Good
Checking sms...
Good
Checking soundlang...
Good
Checking speeddial...
Good
Checking superfecta...
Good
Checking timeconditions...
Good
Checking tts...
Good
Checking ttsengines...
Good
Checking ucp...
Good
Checking userman...
Good
Checking vmblast...
Good
Checking voicemail...
Good
Checking weakpasswords...
Good
Checking webrtc...
Good
Done
Updating Hooks...Done
root@FreePBX/var/log/asterisk# fwconsole ma --edge upgradeall
Edge repository temporarily enabled
No repos specified, using: [extended,standard,unsupported] from last GUI settings

Module(s) requiring upgrades: backup, callback, core, filestore, framework, logfiles, paging, queues, sms, userman
Upgrading module 'framework' from 15.0.16.49 to 15.0.16.52
Downloading module 'framework'
Processing framework
Downloading...
 16076263/16076263 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 8 seconds
Updating tables admin, ampusers, cronmanager, featurecodes, freepbx_log, freepbx_settings, globals, module_xml, modules, notifications, cron_jobs...Done
installing files to /var/www/html..done
installing files to /var/lib/asterisk/bin..done
installing files to /var/lib/asterisk/agi-bin..done
Checking for upgrades..
No further upgrades necessary
framework file install done, removing packages from module
file/directory: /var/www/html/admin/modules/framework/amp_conf removed successfully
file/directory: /var/www/html/admin/modules/framework/upgrades removed successfully
file/directory: /var/www/html/admin/modules/framework/start_asterisk removed successfully
file/directory: /var/www/html/admin/modules/framework/install removed successfully
file/directory: /var/www/html/admin/modules/framework/installlib removed successfully
Compressing Framework CSS...Done
Setting Framework Version...Done
Running SQL cleanup...Done
Building Packaged Scripts...Done
Refreshing GPG Keys...Done
Generating CSS...Done
Module framework version 15.0.16.52 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'core' from 15.0.9.94 to 15.0.12.4
Downloading module 'core'
Processing core
Downloading...
 1153899/1153899 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 5 seconds
Updating tables trunks, pjsip, sip, dahdi, iax, indications_zonelist, devices, users, incoming, outbound_routes, dahdichandids, outbound_route_patterns, outbound_route_sequence, outbound_route_trunks, outbound_routes, outbound_route_email, trunk_dialpatterns...Done
Adding emergencydevices table..Done
Migrating pickup groups to named pickup groups
Migrating call groups to named call groups
Checking for possibly invalid emergency caller id fields..none found
Migrating old media encryption values...done
Removing encoding on incoming routes alertinfo values...done
Generating CSS...Done
Module core version 15.0.12.4 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'backup' from 15.0.8.94 to 15.0.10.1
Downloading module 'backup'
Processing backup
Downloading...
 565938/565938 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 3 seconds
Generating CSS...Done
Module backup version 15.0.10.1 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'callback' from 15.0.8 to 15.0.9
Downloading module 'callback'
Processing callback
Downloading...
 45048/45048 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 2 seconds
Updating tables callback...Done
Generating CSS...Done
Module callback version 15.0.9 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'filestore' from 15.0.3.7 to 15.0.3.8
Downloading module 'filestore'
Processing filestore
Downloading...
 2003476/2003476 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 3 seconds
Generating CSS...Done
Module filestore version 15.0.3.8 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'logfiles' from 13.0.10.7 to 13.0.10.8
Downloading module 'logfiles'
Processing logfiles
Downloading...
 57486/57486 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 1 seconds
Generating CSS...Done
Module logfiles version 13.0.10.8 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'paging' from 15.0.4.21 to 15.0.4.22
Downloading module 'paging'
Processing paging
Downloading...
 126924/126924 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 1 seconds
Updating tables paging_groups, paging_autoanswer, paging_config, paging_core_routing...Done
Generating CSS...Done
Module paging version 15.0.4.22 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'queues' from 15.0.17 to 15.0.18
Downloading module 'queues'
Processing queues
Downloading...
 442124/442124 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 3 seconds
Updating tables queues_details, queues_config...Done
Generating CSS...Done
Module queues version 15.0.18 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'sms' from 15.0.4 to 15.0.6
Downloading module 'sms'
Processing sms
Downloading...
 70495/70495 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 1 seconds
Updating tables sms_messages, sms_dids, sms_routing, sms_media...Done
Generating CSS...Done
Module sms version 15.0.6 successfully installed
Updating Hooks...Done
Chowning directories...Done
Upgrading module 'userman' from 15.0.23 to 15.0.26
Downloading module 'userman'
Processing userman
Downloading...
 395403/395403 [============================] 100%
Finished downloading
Extracting...Done
Download completed in 2 seconds
Updating tables userman_users, userman_users_settings, userman_groups, userman_groups_settings, userman_directories...Done
Generating CSS...Done
Module userman version 15.0.26 successfully installed
Updating Hooks...Done
Chowning directories...Done
All upgrades completed successfully!
Updating Hooks...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Chowning directories...Done
Resetting temporarily repository state
root@TransmitCorp/var/log/asterisk# fwconsole chown
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Setting base permissions...Done
Setting specific permissions...
 19821 [============================]
Finished setting permissions
root@FreePBX/var/log/asterisk# fwconsole r --verbose
Reload Started
Reload Complete
root@FreePBX/var/log/asterisk# fwconsole restart
Running FreePBX shutdown...

Running Asterisk pre from Core module
Stopping Core FastAGI Server
Stopped FastAGI Server
Running Asterisk pre from Ucp module
UCP Node Server is not running
Shutting down Asterisk Gracefully. Will forcefully kill after 30 seconds.
Press C to Cancel
Press N to shut down NOW
[============================] < 1 sec
DAHDI NOT FOUND [Suggest Uninstalling the Dahdi Configuration Module]!
Running FreePBX startup...
Running Asterisk pre from Dahdiconfig module
DAHDI NOT FOUND [Suggest Uninstalling the Dahdi Configuration Module]!
Starting Asterisk...
[============================] 1 sec
Asterisk Started
Running Asterisk post from Core module
Starting Core FastAGI Server...
[>---------------------------] 1 sec
Started Core FastAGI Server. PID is 32334
Running Asterisk post from Dahdiconfig module
Running Asterisk post from Ucp module
Starting UCP Node Server...
[>---------------------------] < 1 sec
Started UCP Node Server. PID is 32509

It doesn’t change the behavior at the end , same error.


(Lmon) #14

ok ! understood the idea and the point


(Lmon) #15

Hi, so , any insights anyone ?
Thanks


(Lmon) #16

Hi all,
for beenfits of the forum,
Issue was on the size of the AWS instance. Increasing ressources helped to solve this issue.
I would suggest anyhow, to add some error logging for such situation … iwould have helped a lot
Thx


(system) closed #17

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