Description

The following error messages on the switch can be seen on the log messages with communication issues on GUI access: 

core-vc1-1 httpd[72838]: httpd error: : httpd: Error: Must have a Listen directive
core-vc1-1 httpd[72840]: httpd error: : httpd: Error: Must have a Listen directive
core-vc1-1 httpd[72841]: httpd error: : httpd: Error: Must have a Listen directive
core-vc1-1 httpd[72844]: httpd error: : httpd: Error: Must have a Listen directive

Symptoms

Check the following by running the command show system processes | match http and confirm if the httpd is in sync with --config:

root@top-switch> show system processes | match http
44133  ??  I      0:00.29 /usr/sbin/httpd-gk -N
44149  ??  I      0:05.96 /usr/sbin/httpd --config /jail/var/etc/httpd.conf  <<<<<< This line will not be found during the issue. 

If the second line is not found then the logs messages are expected. 

Example 

root@top-switch> show system processes | match http
44133  ??  I      0:00.29 /usr/sbin/httpd-gk -N

Solution

1. In order to fix this issue, please follow either of these steps. 

  • Give a commit full  command and check if the logs are still found. 

  • Restart the httpd process. Enter shell prompt and follow these steps. 
root@top-switch:RE:0% ps -aux | grep http
nobody 44264 38.5  0.7  7084  3752  ??  S     2:52AM   0:02.22 /usr/sbin/httpd
root   44254  1.5  1.4 15460  7096  ??  S     2:52AM   0:00.29 /usr/sbin/httpd-
root   44266  0.0  0.2  2268  1180  u0  S+    2:52AM   0:00.03 grep http

root@top-switch:RE:0% kill -9 44264   <<<< restarting the process

root@top-switch:RE:0% ps -aux | grep http
root 44254  0.0  1.4 15460  7096  ??  S     2:52AM   0:00.29 /usr/sbin/httpd-gk
root 44267  0.0  0.7  7016  3432  ??  R     2:52AM   0:00.11 /usr/sbin/httpd --
root 44269  0.0  0.2  2268  1180  u0  S+    2:52AM   0:00.03 grep http

root@top-switch> show system processes | match http
44254  ??  I      0:00.29 /usr/sbin/httpd-gk -N
44267  ??  I      0:02.38 /usr/sbin/httpd --config /jail/var/etc/httpd.conf

2. If you are still not able to see the --config line then either swap the primary ship if it is a VC, or reboot the switch. 

If any of the above does not work then please call into JTAC for further assistance.