GUI access suddenly failed


(Ralph) #1

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


(Kapil Gupta) #2

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


(Ralph) #3

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?


(Kapil Gupta) #4

did you also checked , “fwconsole sa ports” and confirmed “acp” port is same you are using to access GUI ?


(Ralph) #5

yes 8080
also the tail command returned “tail” is not defined


(Ralph) #6

tail without fwconsole just hangs


(Dave Burgess) #7

As it should. The command ‘tail’ without any options is using your keyboard for input and the screen for output.


(Ralph) #8

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


(Ralph) #9

Still looking for help with this issue please


(Bob Reiber) #10

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.


(Ralph) #11

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


(Bob Reiber) #12

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.


(Ralph) #13

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.


(Ralph) #14

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?


(Itzik) #15

Try restarting Apache

service httpd restart

(Ralph) #16

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


(Ralph) #17

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 ~]#


(Lorne Gaetz) #18

The ‘addresss already’ lines might be pointers, use the -l to show in full.


(Ralph) #19

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 ~]#


(Lorne Gaetz) #20

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.