GUI access suddenly failed

I have no access to GUI from browser suddenly, was fine yesterday. I access via port 8080 and checked via ssh that this is correct. System is working all lines and calls and no updates required for linux or freepbx.
I changed from port 80 when I installed lets encrypt 2 weeks ago and fine until today.
Any ideas please

Ralph Graham

Hi @RalphGraham if you can ssh to freepbx then execute ā€œfwconsole sa portsā€ to check ā€œacpā€ port to confirm you are using right port to access gui ?

if thats fine then check ā€œfwconsole dbugā€ if you find any error or ā€œtail -f /var/log/httpd/error_logā€ log for apache error.

Regards
Kapil

dbug output

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

==> /var/log/httpd/error_log <==

==> /var/log/asterisk/freepbx_security.log <==
[2018-11-26 18:56:52] Possible proxy detected, forwarded headers forAdmin set to
[2018-11-26 19:10:32] Authentication failure for Admin from 192.168.1.149
[2018-11-26 19:10:32] Possible proxy detected, forwarded headers forAdmin set to
[2019-02-25 09:02:16] Authentication failure for rbg from 192.168.1.149
[2019-02-25 09:08:18] Authentication failure for Admin from 192.168.1.149
[2019-02-25 09:12:16] Authentication failure for rbg from 192.168.1.149
[2019-02-25 09:14:12] Authentication failure for 350 from 192.168.1.149
[2019-09-26 10:46:22] Authentication failure for rbg from 192.168.1.149
[2019-09-26 10:46:30] Authentication successful for 350 from 192.168.1.149
[2019-09-27 08:49:18] Authentication successful for 350 from 192.168.1.149

==> /var/log/asterisk/freepbx.log <==
[2020-Apr-27 13:43:18] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
[2020-Apr-27 13:43:18] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
[2020-Apr-27 13:43:18] [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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module contactmanager, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module pm2, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module versionupgrade, 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-27 13:43:18] [freepbx.INFO]: Deprecated way to add Console commands for module zulu, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
OUT > [2020-Apr-27 13:44:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
[2020-Apr-27 13:44:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
[2020-Apr-27 13:44:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 71
OUT > [2020-Apr-27 13:44:02] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 80
OUT > [2020-Apr-27 13:44: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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module contactmanager, adding console commands this way can have negative performance impacts. Please use module.xml. See: https://wiki.freepbx.org/display/FOP/Adding+fwconsole+commands [] []
OUT > [2020-Apr-27 13:44: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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, 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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module pm2, 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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module queuestats, 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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module qxact_reports, 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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module contactmanager, 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-27 13:44:02] [freepbx.INFO]: Deprecated way to add Console commands for module pagingpro, 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-27 13:44:02] [freepbx.INFO]:

much more that overran limit is this helpful?

did you also checked , ā€œfwconsole sa portsā€ and confirmed ā€œacpā€ port is same you are using to access GUI ?

yes 8080
also the tail command returned ā€œtailā€ is not defined

tail without fwconsole just hangs

As it should. The command ā€˜tailā€™ without any options is using your keyboard for input and the screen for output.

I did input after tail the suggested file, there was no output

Still looking for help with this issue please

I had that happen to one of mine today right after a broadcast started. Once it finished (it was running 50ish concurrent calls) I still couldnā€™t log in and after screwing around with it for a while I rebooted it and it came back up fine.

Over the weekend I noticed one of those automated emails about SEC-2020-004 upgrades. Donā€™t know if that is what caused it but a fair percentage of the time after those emergency auto updates at the very least Iā€™ll have to click Apply Config. Sometimes Iā€™ll also have to do an fwconsole chown from the command prompt.

Thanks Bob for suggestion.chown tried no help.
How can I apply config from CLI as I can only ssh into the pbx?

fwconsole reload should do it without breaking calls. fwconsole restart will definitely do it but it restarts asterisk.

fwconsole chown is something I try when I get an error when opening a module page in the GUI.

1 Like

Thanks Bob, unfortunately no change.
I am not getting access denied but simply unable to connect.
I am wondering if this is a windows issue or freepbx.
Any suggestions from anyone would be most welcome.

In addition in the log posted at the start there are lines like
Possible proxy detected, forwarded headers forAdmin set to
but no completion of what set to.
Does this help identify my problem?

Try restarting Apache

service httpd restart

Thanks for suggestion Itzik result was

[root@Grahome ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See ā€œsystemctl status httpd.serviceā€ and ā€œjournalctl -xeā€ for details.

I know some stuff but would appreciate clear instructions on how to access the error code
thanks

Did status request, result below

systemctl status httpd.service
ā— httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset : disabled)
Active: failed (Result: exit-code) since Tue 2020-04-28 12:33:28 UTC; 12min a go
Docs: man:httpd(8)
man:apachectl(8)
Process: 31592 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAI LURE)
Process: 31590 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE)
Main PID: 31590 (code=exited, status=1/FAILURE)

Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: (98)Address already in ā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: (98)Address already in ā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: no listening sockets avā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: AH00015: Unable to openā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service: main proceā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org kill[31592]: kill: cannot find procesā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service: control prā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: Failed to start The Apachā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: Unit httpd.service entereā€¦
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@Grahome ~]#

The ā€˜addresss alreadyā€™ lines might be pointers, use the -l to show in full.

Ok see below

systemctl status httpd.service -l
ā— httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-04-28 12:33:28 UTC; 34min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 31592 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 31590 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 31590 (code=exited, status=1/FAILURE)

Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: no listening sockets available, shutting down
Apr 28 12:33:28 Grahome.ralphgraham.org httpd[31590]: AH00015: Unable to open logs
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Apr 28 12:33:28 Grahome.ralphgraham.org kill[31592]: kill: cannot find process ā€œā€
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service: control process exited, code=exited status=1
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: Failed to start The Apache HTTP Server.
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: Unit httpd.service entered failed state.
Apr 28 12:33:28 Grahome.ralphgraham.org systemd[1]: httpd.service failed.
[root@Grahome ~]#

Apache config files are in /etc/httpd/conf.d and config files generated by sysadmin are schmoozecom.conf and ssl.conf possibly others. There is corruption/misconfig there somewhere.