GUI doesn't load after update, httpd.service failed

So I ran fwconsole ma upgradeall and yum update-y on a pbxact 60 appliance with version 15, (I think) Noticed the logs showed
Failed to start the Apache server
Unit httpd.service entered the failed state
httpd.service failed

I checked and indeed the GUI is not reachable. HTTPS is on port 8443.
I ran fwconsole reload and fwconsole restart.

I ran systemctl restart httpd.service
[root@phonesystem ~]# 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.

[root@phonesystem ~]# 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 2022-05-10 23:19:25 CDT; 49s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 25933 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 25933 (code=exited, status=1/FAILURE)

May 10 23:19:25 phonesystem.domain.com httpd[25933]: [Tue May 10 23:19:25.308152 2022] [so:warn] [pid 25933] AH01574: module ssl_module is already loaded, skipping
May 10 23:19:25 phonesystem.domain.com httpd[25933]: AH00112: Warning: DocumentRoot [/invalid/folder/name] does not exist
May 10 23:19:25 phonesystem.domain.com httpd[25933]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8443
May 10 23:19:25 phonesystem.domain.com httpd[25933]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8443
May 10 23:19:25 phonesystem.domain.com httpd[25933]: no listening sockets available, shutting down
May 10 23:19:25 phonesystem.domain.com httpd[25933]: AH00015: Unable to open logs
May 10 23:19:25 phonesystem.domain.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
May 10 23:19:25 phonesystem.domain.com systemd[1]: Failed to start The Apache HTTP Server.
May 10 23:19:25 phonesystem.domain.com systemd[1]: Unit httpd.service entered failed state.
May 10 23:19:25 phonesystem.domain.com systemd[1]: httpd.service failed.

– Unit session-481297.scope has finished starting up.

– The start-up result is done.
May 10 23:21:01 phonesystem.domain.com CROND[26148]: (asterisk) CMD ([ -e /usr/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null)
May 10 23:21:01 phonesystem.domain.com systemd[1]: Started Session 481298 of user asterisk.
– Subject: Unit session-481298.scope has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit session-481298.scope has finished starting up.

– The start-up result is done.
May 10 23:21:01 phonesystem.domain.com CROND[26149]: (asterisk) CMD (/usr/sbin/fwconsole queuestats --syncall >> /tmp/reader.log 2>&1)
May 10 23:21:10 phonesystem.domain.com runuser[26172]: pam_unix(runuser:session): session opened for user asterisk by (uid=0)
May 10 23:21:19 phonesystem.domain.com runuser[26172]: pam_unix(runuser:session): session closed for user asterisk
May 10 23:21:19 phonesystem.domain.com crontab[26206]: (asterisk) LIST (asterisk)
May 10 23:21:19 phonesystem.domain.com crontab[26208]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26235]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26237]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26239]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26240]: (asterisk) REPLACE (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26242]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26244]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26245]: (asterisk) REPLACE (asterisk)
May 10 23:21:20 phonesystem.domain.com crontab[26247]: (asterisk) LIST (asterisk)
May 10 23:21:20 phonesystem.domain.com systemd[1]: Removed slice User Slice of asterisk.
– Subject: Unit user-995.slice has finished shutting down
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit user-995.slice has finished shutting down.
May 10 23:21:54 phonesystem.domain.com runuser[26257]: pam_unix(runuser:session): session opened for user asterisk by (uid=0)
May 10 23:22:01 phonesystem.domain.com crond[1027]: (asterisk) RELOAD (/var/spool/cron/asterisk)
May 10 23:22:01 phonesystem.domain.com systemd[1]: Created slice User Slice of asterisk.
– Subject: Unit user-995.slice has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit user-995.slice has finished starting up.

– The start-up result is done.
May 10 23:22:01 phonesystem.domain.com systemd[1]: Started Session 481300 of user asterisk.
– Subject: Unit session-481300.scope has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit session-481300.scope has finished starting up.

– The start-up result is done.
May 10 23:22:01 phonesystem.domain.com systemd[1]: Started Session 481299 of user asterisk.
– Subject: Unit session-481299.scope has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit session-481299.scope has finished starting up.

– The start-up result is done.
May 10 23:22:01 phonesystem.domain.com CROND[26277]: (asterisk) CMD (/usr/sbin/fwconsole queuestats --syncall >> /tmp/reader.log 2>&1)
May 10 23:22:01 phonesystem.domain.com CROND[26278]: (asterisk) CMD ([ -e /usr/sbin/fwconsole ] && sleep $((RANDOM%30)) && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null)
May 10 23:22:03 phonesystem.domain.com runuser[26257]: pam_unix(runuser:session): session closed for user asterisk
May 10 23:22:15 phonesystem.domain.com crontab[26311]: (asterisk) LIST (asterisk)
May 10 23:22:15 phonesystem.domain.com crontab[26313]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26339]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26341]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26343]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26344]: (asterisk) REPLACE (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26346]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26348]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26349]: (asterisk) REPLACE (asterisk)
May 10 23:22:17 phonesystem.domain.com crontab[26351]: (asterisk) LIST (asterisk)
May 10 23:22:17 phonesystem.domain.com systemd[1]: Removed slice User Slice of asterisk.
– Subject: Unit user-995.slice has finished shutting down
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit user-995.slice has finished shutting down.
lines 1845-1921/1921 (END)

What do I try next?

Following another article,
I ran
mv /etc/httpd/conf.d/ssl.conf /etc/httpd/conf.d/ssl.conf.old
systemctl restart httpd

No change

[root@phonesystem ~]# netstat -ltnp | grep :80
tcp 0 0 0.0.0.0:8002 0.0.0.0:* LISTEN 21984/node /var/www
tcp6 0 0 :::8088 :::* LISTEN 19642/asterisk
tcp6 0 0 :::8089 :::* LISTEN 19642/asterisk
tcp6 0 0 :::8001 :::* LISTEN 21477/node /var/www
tcp6 0 0 :::8003 :::* LISTEN 21477/node /var/www
tcp6 0 0 :::80 :::* LISTEN 27808/httpd
[root@phonesystem ~]# netstat -ltnp | grep :8443
tcp 0 0 127.0.0.1:8443 0.0.0.0:* LISTEN 20994/node /var/www
[root@phonesystem ~]#
[root@phonesystem ~]# netstat -ltnp | grep :80

Hi @ozarktech
I think you have SSL-Certificate selected wrong port or HTTPS setup to another port.
You have to check your PBX settings
fwconsole certificates --list
fwconsole setting --list|grep -i cert
fwconsole sysadmin ports

^^ i hope you will get some idea.

Thanks.

Shahin

Thanks.
If I’m reading this right, nothing is setup for 8443?
How do I enable that through the cli?

If i try to access the gui on port 80 or 2001, that doesn’t work either

[root@phonesystem ~]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2022-05-10 23:32:44 CDT; 18h ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 27808 (httpd)
Status: “Total requests: 1667; Current requests/sec: 0; Current traffic: 0 B/sec”
CGroup: /system.slice/httpd.service
├─14408 /usr/sbin/httpd -DFOREGROUND
├─27808 /usr/sbin/httpd -DFOREGROUND
├─27809 /usr/sbin/httpd -DFOREGROUND
├─27810 /usr/sbin/httpd -DFOREGROUND
├─27811 /usr/sbin/httpd -DFOREGROUND
├─27812 /usr/sbin/httpd -DFOREGROUND
└─27813 /usr/sbin/httpd -DFOREGROUND

May 10 23:32:43 phonesystem.domain.com systemd[1]: Starting The Apache HTTP Server…
May 10 23:32:43 phonesystem.domain.com httpd[27808]: AH00112: Warning: DocumentRoot [/invalid/folder/name] does not exist
May 10 23:32:44 phonesystem.domain.com systemd[1]: Started The Apache HTTP Server.

I’m guessing the next to last line warning about invalid folder name is the problem? But I’m not sure how to fix it.

Warning: DocumentRoot [/invalid/folder/name] does not exist

So how do I create it?

We would have to ask you 'where in the world did you ever invent '/invalid/folder/name/" ?

How did you install your system ?

I never created anything with /invalid/folder/name.
It’s a pbxact uc60 appliance. I forget, I may have reloaded pbxact on it but otherwise should be standard configuration.

I would take that to ‘Sangoma Support’

1 Like

I tried to create a ticket under Pbxact Bug Report Assistance but get a message:

In order to submit a support ticket you require a POMPs. Please contact your point of purchase to obtain your POMPs or contact sales.

in the etc/httpd/conf.d/schmoozecom.conf I found:

# Starting leport # Warning - The directory '/invalid/folder/name' doesn't exist # leport Listen 80 Alias /.well-known /var/www/html/.well-known Alias /.freepbx-known /var/www/html/.freepbx-known RewriteEngine on RewriteRule ^/\.(well-known|freepbx-known)/ - [H=text/plain,L] RewriteRule (^\.|/\.) - [F] DocumentRoot /invalid/folder/name

I checked DocumentRoot on another working pbx and it has the same /invalid/folder/name

Now when I run systemctl status httpd.service
Address already in use: AH00072: make_sock: could not bind to address [::]:8443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8443

Thanks! Finally got it figured out. Some reason I couldn’t access the pbx over the vpn, but locally I could on port 2001. There was a dashboard message warning about sangoma smartmobile port conflicting. Changed it in advanced settings to 9443, renewed the cert and was able to change the https port back to 8443. Not sure why the update assigns a conflicting port?!

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