Httpd-admin service not working

Hi!
I need your help. I saw the advice that httpd-admin service was not running. If I do a service httpd-admin status -l, I got this:

[root@server ~]# service httpd-admin status -l
Redirecting to /bin/systemctl status  -l httpd-admin.service
● httpd-admin.service - Server Manager UI httpd instance
   Loaded: loaded (/usr/lib/systemd/system/httpd-admin.service; enabled; vendor                                                                                                              preset: disabled)
   Active: failed (Result: exit-code) since Wed 2023-02-08 22:17:46 CET; 38s ago
     Docs: https://github.com/NethServer/nethserver-httpd-admin
  Process: 32253 ExecStart=/usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -                                                                                                             c MaxConnectionsPerChild 12 -DFOREGROUND (code=exited, status=1/FAILURE)
 Main PID: 32253 (code=exited, status=1/FAILURE)
   CGroup: /system.slice/httpd-admin.service
           β”œβ”€5262 /usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConn                                                                                                             ectionsPerChild 12 -DFOREGROUND
           β”œβ”€5263 /usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConn                                                                                                             ectionsPerChild 12 -DFOREGROUND
           β”œβ”€5264 /usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConn                                                                                                             ectionsPerChild 12 -DFOREGROUND
           β”œβ”€5265 /usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConn                                                                                                             ectionsPerChild 12 -DFOREGROUND
           └─5266 /usr/sbin/httpd -f /etc/httpd/admin-conf/httpd.conf -c MaxConn                                                                                                             ectionsPerChild 12 -DFOREGROUND

Feb 08 22:17:46 server.domain.es systemd[1]: Started Server Manager UI httpd ins                                                                                                             tance.
Feb 08 22:17:46 server.domain.es httpd[32253]: [Wed Feb 08 22:17:46.679554 2023]                                                                                                              [so:warn] [pid 32253] AH01574: module php5_module is already loaded, skipping
Feb 08 22:17:46 server.domain.es httpd[32253]: (98)Address already in use: AH000                                                                                                             72: make_sock: could not bind to address [::]:980
Feb 08 22:17:46 server.domain.es httpd[32253]: (98)Address already in use: AH000                                                                                                             72: make_sock: could not bind to address 0.0.0.0:980
Feb 08 22:17:46 server.domain.es httpd[32253]: no listening sockets available, s                                                                                                             hutting down
Feb 08 22:17:46 server.domain.es httpd[32253]: AH00015: Unable to open logs
Feb 08 22:17:46 server.domain.es systemd[1]: httpd-admin.service: main process e                                                                                                             xited, code=exited, status=1/FAILURE
Feb 08 22:17:46 server.domain.es systemd[1]: Unit httpd-admin.service entered fa                                                                                                             iled state.
Feb 08 22:17:46 server.domain.es systemd[1]: httpd-admin.service failed.

What could be the problem??
Thanks in advance.

Does it work to manually restart the service?

systemctl restart httpd-admin

Maybe the service wasn’t stopped correctly. The lines in your error report are cropped so we can’t see the full error message.

2 Likes

Hi! And thaks for your answer @mrmarkuz but no luck.
The last thing I remember is the recent update about httpd-admin

Feb 08 22:29:31 server.domain.es systemd[1]: Started Server Manager UI httpd instance.
Feb 08 22:29:31 server.domain.es httpd[42015]: [Wed Feb 08 22:29:31.600729 2023] [so:warn] [pid 42015] AH01574: module php5_module is already loaded, skipping
Feb 08 22:29:31 server.domain.es httpd[42015]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:980
Feb 08 22:29:31 server.domain.es httpd[42015]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:980
Feb 08 22:29:31 server.domain.es httpd[42015]: no listening sockets available, shutting down

httpd-admin service is for the old server-manager. The output is incomplete (so we are missing some error codes) but apparently something is using the port or socket (another process or a zombie httpd-admin process).

2 Likes

Hi @dnutan and thanks you too!
So, if I restart the server, could resolve the issue?

maybe. If you want you can use netstat (netstat -lnp | grep 980) or something else to check if there is something listening on the 980 port.

1 Like

[root@server ~]# netstat -lnp | grep 980
tcp6       0      0 :::980                  :::*                    LISTEN      5262/httpd

This is the output. I’m gonna try to restart it and see what happens.

That seems the problem

Thank you soo much!

1 Like